Git Product home page Git Product logo

vue-pay-pwd's Introduction

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

name Description type default required
getPassword 拿到一个密码参数,建议必填 Function function
isCursor 是否显示光标 Boolean true
pwdWidth 设置宽度 Number 260
pwdHeight 设置高度 Number 36

感谢您的阅读,欢迎start一起学习,[email protected]

vue-pay-pwd's People

Contributors

mrhaoxiaojun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.