1 Star 0 Fork 2

家有虎妞 / car-plate-keyboard

forked from Baboon / car-plate-keyboard 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

car-plate-keyboard

介绍

  • car-plate-keyboard 是基于 Vue 的一款虚拟键盘,用于车牌号输入。

示例

如何使用

  • 安装
npm install car-plate-keyboard --save
  • vue 中注册插件
import carPlateKeyboard from 'car-plate-keyboard'
import 'car-plate-keyboard/lib/carPlateKeyboard.css'

Vue.use(carPlateKeyboard)
  • 页面使用
<car-plate-keyboard @submit="submit"></car-plate-keyboard>

API

Props

参数 说明 类型 默认值
value 默认值 String ""
open-keyboard-on-init 初始化时就弹出键盘(在弹窗中使用时) Boolean false
close-on-click-overlay 点击遮罩关闭键盘 Boolean true
overlay 是否使用遮罩 Boolean true
preview-on-keyboard 是否在键盘上预览输入的值 Boolean true
check-input-blocked 检查键盘是否挡住输入框 Boolean false
readonly (1.0.2) 是否只读 Boolean false

Events

参数 说明 参数
cancel 取消 value: string (当前输入的值)
submit 确定 value: string (当前输入的值)

Slots

参数 说明 slotProps
default 自定义输入框 value:Array
backspace 自定义退格(删除)按钮内容 -

声明

Change Log

1.0.5

  • 修复 小屏设备 (iPhone 5) 超出问题

1.0.4

  • 修复 遮罩覆盖键盘问题

1.0.3

  • 修复 ios 上打开键盘时,定位错误问题

1.0.2

  • 增加 只读 readonly api

1.0.1

  • none

1.0.0

  • 首个版本
MIT License Copyright (c) 2020 BaboonKing Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

car-plate-keyboard 是基于 Vue 的一款虚拟键盘,用于车牌号输入。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/jiangzhengjun77/car-plate-keyboard.git
git@gitee.com:jiangzhengjun77/car-plate-keyboard.git
jiangzhengjun77
car-plate-keyboard
car-plate-keyboard
master

搜索帮助