# react-form-editor **Repository Path**: faberxu/react-form-editor ## Basic Information - **Project Name**: react-form-editor - **Description**: react-form-editor based on ant-design自定义表单编辑器 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-11-10 - **Last Updated**: 2022-12-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-form-editor > Made with create-react-library [![NPM](https://img.shields.io/npm/v/react-form-editor.svg)](https://www.npmjs.com/package/react-form-editor) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ## Still In Working Progress ## Example [https://FaberSober.github.io/react-form-editor](https://FaberSober.github.io/react-form-editor) Form Edit Panel ![Form Edit Panel](./doc/img/edit.png) Form Show Panel ![Form Show Panel](./doc/img/preview.png) ## Install ```bash npm install --save react-form-editor ``` ## Usage ```jsx import React, { Component } from 'react' import FormEditPanel from 'react-form-editor' import 'react-form-editor/dist/index.css' class Example extends Component { render() { return } } ``` ## Export Form JSON ``` [ { id: 'abcdefgh', // 8位随机字母ID type: 'Input', // form组件类型 label: '单行文本', // form组件Label标签 layout: { w: 12, h: 1 } }, // 组件布局(网格布局,分为12格):w-宽/h-高 options: [ { label: 'A', value: 'A' }, ], // 多选组件候选项 properties: { }, // 组件补充配置属性 }, ] ``` ## License MIT © [FaberSober](https://github.com/FaberSober)