1 Star 1 Fork 0

lin-mt / json-schema-editor-antd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 699 Bytes
一键复制 编辑 原始数据 按行查看 历史
lin-mt 提交于 2022-04-18 14:36 . feat: update README.

Json Schema 可视化编辑器(Antd)

快速开始

# 开发
npm run dev

# 构建
npm run build

# 发布前预览
npm run prepublishOnly && arco preview

# 发布至物料平台(需先发布 NPM 包)
arco sync

示例

import JsonSchemaEditor from '@quiet-front-end/json-schema-editor-antd';
import '@quiet-front-end/json-schema-editor-antd/dist/css/index.css';
import { useEffect } from 'react';

export default () => {

  const [jsonData, setJsonData] = useEffect({});

  return (
    <JsonSchemaEditor
      mock={true}
      data={jsonData}
      onChange={(data) => {
        setJsonData(data);
      }}
    />
  )
}

示例

1
https://gitee.com/lin-mt/json-schema-editor-antd.git
git@gitee.com:lin-mt/json-schema-editor-antd.git
lin-mt
json-schema-editor-antd
json-schema-editor-antd
master

搜索帮助