anye931123 / react-visual-editor
- вторник, 25 февраля 2020 г. в 00:19:14
TypeScript
React可视化编辑
// 下载项目单独运行
git clone https://github.com/anye931123/react-visual-editor.git
npm install
npm run dev
// umi项目可通过添加block方式添加此项目
umi block add https://github.com/anye931123/react-visual-editor- src
|- components
|- configs //全局配置信息
|- componentConfgs //组件配置信息包括react和html的组件信息
|- Ant //Antd组件配置信息
|- HTML //html标签配置信息
|- htmlCategory.ts //html组件分类
|- index.ts // 配置信息汇总
|- reactCategory.ts //react组件分类组件分类
|- locales
|- modules
|- service
|- types
|- utils
通过配置config可以实现拖拽组件库的替换,更改为你需要的组件库或者组件。具体配置如下
MIT