Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Open-Federation/json-schema-editor-visual
A json-schema editor of high efficient and easy-to-use, base on React.
https://github.com/Open-Federation/json-schema-editor-visual
Last synced: about 1 month ago
JSON representation
A json-schema editor of high efficient and easy-to-use, base on React.
- Host: GitHub
- URL: https://github.com/Open-Federation/json-schema-editor-visual
- Owner: Open-Federation
- License: mit
- Created: 2018-03-13T02:37:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T15:32:54.000Z (about 1 year ago)
- Last Synced: 2024-11-21T21:03:35.404Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://hellosean1025.github.io/json-schema-visual-editor/
- Size: 2.64 MB
- Stars: 1,029
- Watchers: 24
- Forks: 226
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-schema-editor-visual
A json-schema editor of high efficient and easy-to-use, base on React.![avatar](json-schema-editor-visual.jpg)
## Usage
```
npm install json-schema-editor-visual
``````js
const option = {}
import 'antd/dist/antd.css'
require('json-schema-editor-visual/dist/main.css')
const schemaEditor = require("json-schema-editor-visual/dist/main.js");
const SchemaEditor = schemaEditor(option)render(
,
document.getElementById('root')
)
```## Option Object
| name | desc | default |
| ---- | ----------- | --------- |
| `lang` | language, support `en_US` or `zh_CN` | en_US## SchemaEditor Props
| name | type | default | desc
| ---- | ----------- | --------- | --------- |
| `data` | string | null | the data of editor
| `onChange`| function | null |
| `showEditor` | boolean | false |## Links
https://github.com/zyqwst/json-schema-editor-vue