# vue-keyboards

> A Vue keyboard component

Latest version **1.0.1** (published 2018-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-keyboards
pnpm add vue-keyboards
yarn add vue-keyboards
bun add vue-keyboards
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-30 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | azumia |
| Maintainers | azumia |
| Keywords | DigitalKeyboard, Digital, Keyboard, Vue Keyboard |

## Links

- npm: https://www.npmjs.com/package/vue-keyboards
- npm.io page: https://npm.io/package/vue-keyboards

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.11

## Recent versions

- 1.0.1 (latest) — 2018-05-30
- 1.0.0 — 2018-05-30

## README

# vue-keyboards



- 一个基于Vue的移动端虚拟键盘插件
- 支持身份证、手机号、整数、小数多类型输入

## demo演示

![](src\assets\000.gif)
![](src\assets\001.gif)
![](src\assets\002.gif)

## 安装

```JS
npm i -S vue-keyboards
```

## 使用

```js
// ES6
import vueKeyboards from 'vue-keyboards.js'
// require
var vueKeyboards = require('vue-keyboards.js')

Vue.use(vueKeyboards)

// 或者直接使用script导入
<script src="./node_modules/vue/dist/vue-keyboards.js"></script>

// 作为组件的方式使用
<vue-keyboards></vue-keyboards>
```

### 配置

```html
   <vue-keyboards 
   :isShow='isKeyboardShow' 
   type="idcard" 
   @onHide="onHide" 
   :value.sync="result">
   </vue-keyboards>
```

```javascript
methods:{
    focus() {
      this.isKeyboardShow = true
    },
    onHide(val) {
      this.isKeyboardShow = false
    }
}
```

### Props

|    name    |    Description   |   type   |default|
| -----------------  | ---------------- | :--------: | :----------: |
| isShow       | 显示键盘 |Boolean| false
| type        | 键盘类型(decimals 、 int 、 phone 、 idcard) |String | decimals
| value        | 得到的数值 |String | ''


### Events

| name | Description   |
| :--------:   | -----  |
|    onHide    |  关闭键盘

---
_Source: https://npm.io/package/vue-keyboards · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
