# form-create **Repository Path**: hzst_cc/form-create ## Basic Information - **Project Name**: form-create - **Description**: 🔥🔥🔥 强大的动态表单生成器,通过数据驱动表单渲染,支持可视化设计。提高开发者对表单的开发效率。目前在OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: next - **Homepage**: https://www.form-create.com/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 245 - **Created**: 2024-05-21 - **Last Updated**: 2024-05-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

FormCreate

[![MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/xaboy/form-create) [![github](https://img.shields.io/badge/Author-xaboy-blue.svg)](https://github.com/xaboy) [![document](https://img.shields.io/badge/Doc-welcome-red.svg)](https://www.form-create.com/v3/) [![vue3](https://img.shields.io/badge/VUE-3.0-green.svg)](https://www.form-create.com/v3/) **FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的表单生成组件。支持5个UI框架,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。** [![FcDesigner](https://static.form-create.com/file/img/146171715603824_.pic.jpg)](https://pro.form-create.com/view) > [开源的vue可视化表单设计器组件](https://form-create.com/v3/designer) ## 文档 [帮助文档](https://www.form-create.com/v3/) ## 支持 - **element-plus** - **ant-design-vue** - **naive-ui** - **arco-design** - **tdesign** > 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢!本项目还在不断开发完善中,如有任何建议或问题[请在这里提出](https://github.com/xaboy/form-create/issues/new) > 本项目QQ讨论群[629709230](https://jq.qq.com/?_wv=1027&k=F1FlEFIV) > [更新日志](https://www.form-create.com/v3/guide/update.html) - **预览** ![demo1](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live3.gif)
更多 - **操作表单** [详细说明](https://www.form-create.com/v3/instance.html) ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live2.gif) - **`group` 组件** [详细说明](https://www.form-create.com/v3/guide/group.html) ![demo3](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-group.gif) - **`control` 配置项** [详细说明](https://www.form-create.com/v3/guide/control.html) ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live4.gif)
## 包说明 | 包名 | 说明 | | ------------------ | ---------------------------------------------------------- | | @form-create/element-ui [![version](https://img.shields.io/npm/v/@form-create/element-ui/next.svg)](https://www.npmjs.com/package/@form-create/element-ui) [![npm](https://img.shields.io/npm/dt/@form-create/element-ui.svg)](https://www.npmjs.com/package/@form-create/element-ui) | [element-plus 版本](http://form-create.com/v3/element-ui/) | | @form-create/ant-design-vue [![version](https://img.shields.io/npm/v/@form-create/ant-design-vue/next.svg)](https://www.npmjs.com/package/@form-create/ant-design-vue) [![npm](https://img.shields.io/npm/dt/@form-create/ant-design-vue.svg)](https://www.npmjs.com/package/@form-create/ant-design-vue) | [ant-design-vue 版本](http://form-create.com/v3/ant-design-vue/) | | @form-create/arco-design [![version](https://img.shields.io/npm/v/@form-create/arco-design/next.svg)](https://www.npmjs.com/package/@form-create/arco-design) [![npm](https://img.shields.io/npm/dt/@form-create/arco-design.svg)](https://www.npmjs.com/package/@form-create/arco-design) | [arco-design 版本](http://form-create.com/v3/arco-design/) | | @form-create/naive-ui [![version](https://img.shields.io/npm/v/@form-create/naive-ui/next.svg)](https://www.npmjs.com/package/@form-create/naive-ui) [![npm](https://img.shields.io/npm/dt/@form-create/naive-ui.svg)](https://www.npmjs.com/package/@form-create/naive-ui) | [naive-ui 版本](http://form-create.com/v3/naive-ui/) | | @form-create/tdesign [![version](https://img.shields.io/npm/v/@form-create/tdesign/next.svg)](https://www.npmjs.com/package/@form-create/tdesign) [![npm](https://img.shields.io/npm/dt/@form-create/tdesign.svg)](https://www.npmjs.com/package/@form-create/tdesign) | [tdesign 版本](http://form-create.com/v3/tdesign/) | | @form-create/designer [![version](https://img.shields.io/npm/v/@form-create/designer.svg)](https://www.npmjs.com/package/@form-create/designer) [![npm](https://img.shields.io/npm/dt/@form-create/designer.svg)](https://www.npmjs.com/package/@form-create/designer) | [表单设计器](http://form-create.com/designer) (已适配 Vue3) | ## 示例 - [使用生成器生成](https://jsrun.net/NQhKp/edit) - [使用 json 生成](https://jsrun.net/NQhKp/edit) - [各种示例](https://www.form-create.com/v3/guide/demo.html)
图例 ![https://raw.githubusercontent.com/xaboy/form-create/dev/images/sample110.jpg](https://raw.githubusercontent.com/xaboy/form-create/dev/images/sample110.jpg)
## 安装 > 根据自己使用的 UI 安装对应的版本 element-ui ```shell npm install @form-create/element-ui@next ``` ant-design-vue ```shell npm install @form-create/ant-design-vue@next ``` arco-design ```shell npm install @form-create/arco-design@next ``` naive-ui ```shell npm install @form-create/naive-ui@next ``` tdesign ```shell npm install @form-create/tdesign@next ``` ## 引入 **CDN:** element-plus ```html ``` ant-design-vue ```html ``` **NodeJs:** element-plus ^2.0 ```js import formCreate from '@form-create/element-ui' app.use(formCreate) ``` element-plus (with unplugin-vue-components/vite & ElementPlusResolver) ```js import formCreate from '@form-create/element-ui' import install from '@form-create/element-ui/auto-import' formCreate.use(install) app.use(formCreate) ``` ant-design-vue ^3.0 ```js import formCreate from '@form-create/ant-design-vue' app.use(formCreate) ``` arco-design ^2.0 ```js import formCreate from '@form-create/arco-design' app.use(formCreate) ``` naive-ui ^2.0 ```js import formCreate from '@form-create/naive-ui' app.use(formCreate) ``` tdesign ^0.17.3 ```js import formCreate from '@form-create/tdesign' app.use(formCreate) ``` ## 使用 ```html ``` ```javascript export default { data(){ return { fApi:{}, value:{field1:'111',field2:'222',time:'11:11:11'}, options:{ onSubmit:(formData)=>{ alert(JSON.stringify(formData)) } }, rule:[ {type:'input', field:'field1',title:'field1',value:'aaa'}, {type:'input', field:'field2',title:'field2',value:'sss'}, {type:'timePicker', field:'time',title:'time',value:'12:12:12'}, { type:'ElButton', title:'修改 field1', native: false, on:{ click: ()=>{ this.rule[0].value+='a' } }, children: ['点击'], } ] } } } ``` ## 示例 下载项目 ```sh $ git clone https://github.com/xaboy/form-create.git $ cd form-create ``` 安装依赖 ```sh $ npm run bootstrap ``` 查看 element-ui 示例 ```sh $ npm run dev:ele ``` 查看 ant-design-vue 示例 ```sh $ npm run dev:antd ``` ## 感谢 [时光弧线](https://github.com/shiguanghuxian) | [wxxtqk](https://github.com/wxxtqk) | [williamBoss](https://github.com/williamBoss) | [HeyMrLin](https://github.com/HeyMrLin) | [djkloop](https://github.com/djkloop) | [daiwenyong](https://github.com/daiwenyong) | [JetBrains](https://www.jetbrains.com/?from=form-create) ## 联系 ##### email : xaboy2005@qq.com ## License [MIT](http://opensource.org/licenses/MIT) Copyright (c) 2018-present xaboy