Open-Federation / json-schema-editor-visual

A json-schema editor of high efficient and easy-to-use, base on React.
https://hellosean1025.github.io/json-schema-visual-editor/
MIT License
998 stars 220 forks source link

如何在antd pro中使用 #13

Open daimazai opened 5 years ago

daimazai commented 5 years ago

有详细的使用文档么,使用antd pro安装插件启动失败 image image

hellosean1025 commented 5 years ago

webpack 配置问题,配置下 css loader 试试

330595524 commented 5 years ago

问题解决了吗

zeyueguo commented 5 years ago

我这边临时的处理方式是 把 /dist/main.css 和 /dist/js.css 文件 单独在一个目录存放,不经过umi处理 再在页面直接引用

require('../../../../../public/json-schema-editor-visual.css')

const schemaEditor = require('../../../../../public/json-schema-editor-visual.js');

const SchemaEditor = schemaEditor({ lang: 'zh_CN', mock: variable.MOCK_SOURCE });
linonetwo commented 4 years ago

我成功使用

import schemaEditor from '@yued/json-schema-editor-visual/dist/main';

import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import 'antd/dist/antd.css';
import '@yued/json-schema-editor-visual/dist/main.css';

没有其它特殊配置

wll8 commented 2 years ago

没人维护吗

linonetwo commented 2 years ago

我改为使用 https://github.com/rjsf-team/react-jsonschema-form

wll8 commented 2 years ago

怪不得我说按你上面的没跑起来。已经准备慢慢抠代码了。。。