v-unicode:ue Vue指令通过unicode值限制输入

时间:2021-05-09 10:48:23
【文件属性】:
文件名称:v-unicode:ue Vue指令通过unicode值限制输入
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-09 10:48:23
vuejs vue vue-directive JavaScript 统一码 Vue指令通过unicode值限制输入。 它允许输入仅与定义的unicode一起使用。 当将无效的unicode粘贴到输入中时,它也会清除该值。 安装 $ npm install --save v-unicode $ yarn add v-unicode 用 import Vue from 'vue' import vUnicode from 'v-unicode' Vue . use ( vUnicode ) < template> <!-- Allow only numeric values --> < input type =" text " v-unicode =" { from: 48, to: 57 } " > < input type =" text " v-unicode =" [48, 49, 50, 51, 52, 53, 54, 55,
【文件预览】:
v-unicode-master
----.gitignore(43B)
----README.md(2KB)
----rollup.config.js(763B)
----test()
--------v-unicode.test.js(4KB)
----LICENSE(1KB)
----.eslintrc(27B)
----package.json(1KB)
----.babelrc(28B)
----.npmignore(41B)
----yarn.lock(125KB)
----lib()
--------v-unicode.js(2KB)
--------index.js(154B)

网友评论