license-plate-keyboard

vue Mobile terminal China license plate keyboard input plug-in

Usage no npm install needed!

<script type="module">
  import licensePlateKeyboard from 'https://cdn.skypack.dev/license-plate-keyboard';
</script>

README

插件安装

npm install license-plate-keyboard

插件使用

import Vue form 'Vue'
import LicensePlateKeyboard from 'license-plate-keyboard'
Vue.use(LicensePlateKeyboard)

基本用法

<LicensePlateKeyboard :keyboardShow.sync="keyboardShow" :plateInfo="plateInfo" @plateInput="handleInput"></LicensePlateKeyboard>

参数说明

keyboardShow: Boolean 是否显示键盘 默认值 false
plateInfo: Object 车牌信息 默认值 {
                                    plateType:1,// 车牌类型 1-普通车牌 2-新能源车牌
                                    plateArray:[],// 车牌号 数组
                                    plateLen:7// 车牌长度
                                 }
plateInput:function 键盘输入返回