vue-keyboard2
v0.0.3
Published
a vue keyboard component
Downloads
6
Readme
vue-keyboard
a vue keyboard component
Install
npm install vue-keyboard2 -S
yarn install vue-keyboard2
Quickstart
require('vue-keyboard/dist/vue-keyboard.css');
// in ES6 modules
import keyboard from 'vue-keyboard';
// in CommonJS
const keyboard = require('vue-keyboard');
// in Global variable
const keyboard = VueKeyboard;
Vue.component('c-keyboard',keyboard);
<c-keyboard :pwd="pwd" :len="len"></c-keyboard>
Params
props
show
: whether show the keyboard, type Boolean, default is falseheadbar
: whether show the headbar, type Boolean, default is falseloading
: whether show the loading, type Boolean, default is false
events
onchange
: get the num clicked, type Function, params is numonhide
: trigger when the keyboard hide