dongj0316 / keyboard-license-plate

vue车牌号模拟键盘
MIT License
9 stars 3 forks source link

keyboard-license-plate

vue车牌号模拟键盘

online demo

Installation

Use

$ npm install keyboard-license-plate -S
import Vue from 'vue'
import KeyboardLicensePlate from 'keyboard-license-plate'

Vue.use(KeyboardLicensePlate)
<keyboard-license-plate ref="keyboard" v-model="licensePlateNumber"/>

API

component attributes:

Attr. Name Type Description Required Default Value
value String 绑定值 N -
placeholder String 占位文本 N 车牌号码
default-province String 车牌号首位默认值 N
z-index Number 键盘z-index样式值 N 5000
disabled-keys Array 禁用按钮值 N ['I', 'O']

instance methods:

instance attributes:

Local setup

npm install
npm run serve

License

MIT