npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-license-keyboard

v1.0.5

Published

一个基于vue的车牌专用输入键盘

Readme

vue-license-keyboard

直接安装使用

npm i vue-license-keyboard --save
import LicenseKeyboard from 'vue-license-keyboard';
import 'vue-license-keyboard/lib/vue-license-keyboard.css';

Vue.use(LicenseKeyboard);

图片展示 输入带预览


车牌汉字输入 车牌汉字输入

车牌数字输入 车牌数字输入

车牌数字输入 车牌字母输入

移动端竖屏展示 移动端竖屏展示 移动端横屏展示 移动端横屏展示

更多功能正在完善中...... 如果您有什么好的建议请留言

在线演示

你可以这样使用: 

<el-input
slot="query-4"
v-model.trim="table.queryData.licenseNumber"
placeholder="车牌号"
>
    <template slot="prepend">
        <LicenseKeyboard v-model="table.queryData.licenseNumber" title="软键盘" />
    </template>
</el-input>

直接使用v-model 进行绑定

也可以使用 @confirm="handleInput"  进行回调

methods:{
     handleInput(value){
        console.log('您输入的车牌为:',value);
     }
}

也可以使用

<LicenseKeyboard v-model="table.queryData.licenseNumber" title="软键盘" > 
    这里是你的自定义图标或者内容
</LicenseKeyboard>

新增的props属性配置

    //顶级节点自定义的class
    customClass: {
        required: false,
        type: [String],
        default: null
    },

    //键盘容器节点自定义的class
    customLicenseClass: {
        required: false,
        type: [String],
        default: null
    },

    //键盘背景
    keyboardBg:{
        required: false,
        type: [String],
        default: null
    },

    //键盘字体颜色
    fontColor:{
        required: false,
        type: [String],
        default: null
    },

    //键盘按钮的边框颜色
    keyBorderColor:{
        required: false,
        type: [String],
        default: theme
    },

    //键盘背景
    keyBg:{ 
        required: false,
        type: [String],
        default: null
    },

    //键盘的透明度
    opacity:{
        required: false,
        type: [Number],
        default: 1
    },

    //默认的字体大小 16px => 1rem
    fontSize:{
        required: false,
        type: [String],
        default: '1rem'
    },

    //键盘的默认圆角
    borderRadius:{  
        required: false,
        type: [String],
        default: null
    },

    //是否只在移动端使用 默认false,在pc端使用的时候,建议全部使用手动配置字体大小的方法,区别在于是否会开启字体响应,其中使用了autosize的方法,会改变跟元素的font-size
    isMobile:{
        required: false,
        type: [Boolean],
        default: false
    }

ps: 如果目前的样式无法满足需求,可以使用自定义的class去覆盖原有的style样式.

## 二次开发 下载项目

## Project setup

npm install


### Compiles and hot-reloads for development

npm run dev


### Compiles and minifies for production

npm run build


### Run your tests

npm run test


### Lints and fixes files

npm run lint

## 缺陷 & 后期计划

> 车牌输入中并未加入车牌验证.即可能会出现乱输入的情况,这个后期会考虑的;
> 根据有网友留言说想加入搜索功能(可能有些人并不知道某些省的简称是什么);

## 更新日志

> v1.0.5 新增适应移动端,且增加自定义属性和样式;
> v1.0.4 修复bug,目前已迁移到dev_v1.0.4 分支

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).