vue2-keyboard

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vue2-keyboard

Weekly Downloads

4

Version

1.2.0

License

MIT

Unpacked Size

99.8 kB

Total Files

13

Last publish

Collaborators

  • scyuan