mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 01:37:55 +08:00
完善README
This commit is contained in:
47
README.md
47
README.md
@@ -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/).
|
||||
如果对您有帮助,别忘记给个星哦
|
||||
Reference in New Issue
Block a user