Skip to content

Open-Federation/json-schema-editor-visual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
suwenxiong
Nov 29, 2021
5e191d9 · Nov 29, 2021
Nov 29, 2021
Jul 20, 2020
Nov 1, 2019
Nov 29, 2021
Apr 10, 2018
Nov 1, 2019
Apr 10, 2018
Mar 13, 2018
Nov 26, 2021
Sep 20, 2018
Mar 19, 2018
Nov 29, 2021
Mar 20, 2018
Apr 10, 2018
Apr 10, 2018

Repository files navigation

json-schema-editor-visual

A json-schema editor of high efficient and easy-to-use, base on React.

avatar

Usage

npm install json-schema-editor-visual
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(
    <SchemaEditor />,
  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