1.2.0 • Published 6 years ago

vue2-keyboard v1.2.0

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

vue-keyboard

一个基于vue的移动端数字键盘组件(A vue-based mobile-side numeric keyboard assembly)。

install

npm install vue2-keyboard --save

quick start

main.js

import vueKeyboard from 'vue2-keyboard'
Vue.use(vueKeyboard)

component.vue

<vue-keyboard type='text' setClass="input" accurate='3' @value='getValue' placeholder='请输入金额'></vue-keyboard>

demo

npm.io

option

propertyDefaultsdescriptionoptional
typetextInput type (text or password)yes
accurate2The accurate of a number when input type is textyes
placeholder""placeholder text of inputyes
setClassdefault-classComponent styleyes
value""return value callbackno
1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago