1.2.0 • Published 6 years ago
vue2-keyboard v1.2.0
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
option
property | Defaults | description | optional |
---|---|---|---|
type | text | Input type (text or password) | yes |
accurate | 2 | The accurate of a number when input type is text | yes |
placeholder | "" | placeholder text of input | yes |
setClass | default-class | Component style | yes |
value | "" | return value callback | no |