完善README

This commit is contained in:
zyqwst
2020-06-28 00:53:57 +08:00
parent 0feb3876be
commit 06afae37e7

View File

@@ -1,24 +1,41 @@
# json-schema-editor-vue
## Project setup
A json-schema editor of high efficient and easy-to-use, base on Vue
### Usage
```
npm install
npm install json-schema-editor-vue
```
### Compiles and hot-reloads for development
```
npm run serve
import JsonSchemaEditor from '../packages/index'
Vue.use(JsonSchemaEditor)
```
```
<template>
<div id="app">
...
<json-schema-editor :value="tree"/>
...
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
tree:
{
root: {
type: "object"
}
}
}
}
}
</script>
```
### Compiles and minifies for production
```
npm run build
```
Don't forget to star if it helped!
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
如果对您有帮助,别忘记给个星哦