update readme

This commit is contained in:
LittleBoy 2021-02-08 20:04:17 +08:00
parent d3de664344
commit 2094a6bf81

View File

@ -1,24 +1,55 @@
# keybord
## Installation
```
npm install git+https://git.wm-app.xyz/dev/vue-keyborad.git
```
or
```
yarn add git+https://git.wm-app.xyz/dev/vue-keyborad.git
```
## Initialization
```javascript
import Vue from 'vue'
import Keyborad from 'keyborad'
Vue.use(Keyborad);
```
## Usage
```vue
<template>
<div id="app">
<h1>{{val}}</h1>
<keyborad v-model="val" />
</div>
</template>
## Project setup
```
yarn install
<script>
export default {
data() {
return {
val: ''
}
},
}
</script>
```
## Page Usage
```vue
<template>
<div id="app">
<h1>{{val}}</h1>
<keyborad v-model="val" />
</div>
</template>
### Compiles and hot-reloads for development
```
yarn serve
```
<script>
import Keyborad from 'keyborad'
### Compiles and minifies for production
```
yarn build
```
### Lints and fixes files
```
yarn lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
export default {
components: {Keyborad},
data() {
return {
val: ''
}
},
}
</script>
```