Skip to content

guixianleng/vue-licence-plate

Repository files navigation

licence-plate-keyboard

安装依赖

npm install vue-licence-plate --save-dev
or
yarn add vue-licence-plate

引入组件

import Vue from 'vue'
// 自带车牌显示
import licencePlate from 'vue-licence-plate'
// 只有键盘
import licenceKeyboard from 'vue-licence-keyboard'
// 注册引入
Vue.use(licencePlate)
Vue.use(licenceKeyboard)

使用

<licence-keyboard v-model="caoNo"></licence-keyboard>
<licence-plate @done="handleDone"></licence-plate>

<script>
  ...
  methods: {
    handleDone (str) {
      console.log(str)
    }
  }
</script>

效果图示

Image

About

基于Vue的移动端车牌键盘

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published