vir-keyboard

虚拟键盘和input

Usage no npm install needed!

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

README

vir-keyboard

以vue框架为基础的虚拟键盘和虚拟input,如有bug,请邮箱联系。

props

v-model双向绑定值,单项则:value绑定 focus则表示是否聚焦,默认false

event

焦点发生改变:changeFocus(bool) bool 为true时,表示聚焦 值的改变change({value, isFocus})

局部引入

import virKeyboard from 'vir-keyboard' export default { components: { virKeyboard },

全局引入

import virKeyboard from 'vir-keyboard' import Vue from 'vue' Vue.use(virKeyboard)