1.0.2 • Published 6 years ago

vue-pay-pwd v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-pay-pwd

A Vue pulgin to vue-pay-pwd

使用说明

小编借助vue-cli和vue的插件功能,实现六位密码插件,主要服务于pc站点

使用方法

import Vue from 'vue'
import vuePayPwd from 'vue-pay-pwd'

Vue.use(vuePayPwd)

配置

<vue-pay-pwd 
:isCursor = "isCursor"
:pwdWidth = "300"
:pwdHeight = "38"
:getPassword = "payPw">
</vue-pay-pwd>
data () {
    return {
      msg: 'Welcome to my vue-pay-pwd',
      isCursor:true,//是否开启光标
    }
  },
   methods: {
    payPw(pw){
      console.log("获取支付密码",pw)
    }
  },

Props

nameDescriptiontypedefaultrequired
getPassword拿到一个密码参数,建议必填Functionfunction
isCursor是否显示光标Booleantrue
pwdWidth设置宽度Number260
pwdHeight设置高度Number36

感谢您的阅读,欢迎start一起学习,1458149969@qq.com