0.0.3 • Published 6 years ago

vue-keyboard2 v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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 false
  • headbar : whether show the headbar, type Boolean, default is false
  • loading: whether show the loading, type Boolean, default is false

events

  • onchange : get the num clicked, type Function, params is num
  • onhide: trigger when the keyboard hide

Preview

keyboard image

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago