update readme
This commit is contained in:
parent
d3de664344
commit
2094a6bf81
71
README.md
71
README.md
@ -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>
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user