form-create
| Install | |
|---|---|
npm install form-create |
|
| Latest Version: | 1.6.6 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Oct 8, 2026 |
| Links: | GitHub · npm |
form-create
Form builder with dynamic rendering, data collection, validation and submission capabilities, built-in 17 common form components, support for two-way data binding, event extension, and support for building built-in components and any vue components using json.
Support
- iViewUI 2.13.0+
- iViewUI 3.x
- ElementUI 2.5.2+
If it helps, you can click on "Star" in the upper right corner. Thank you! The project is still being developed and improved. If there are any 'recommendations or questions, please ask here
Form-create V2 is coming soon!!! Faster, smaller, and simpler to expand. If you expect it, please star support.

Docs
Files
| Name | Description |
|---|---|
| form-create.js | iViewUI Version |
| form-create.elm.js | ElementUI Version |
Example
Legend

Install
npm install form-create
Import
CDN:
iviewUI
<!-- import Vue.js -->
<script src="//vuejs.org/js/vue.min.js"></script>
<!-- import stylesheet -->
<link rel="stylesheet" href="//unpkg.com/iview/dist/styles/iview.css">
<!-- import iView -->
<script src="//unpkg.com/iview/dist/iview.min.js"></script>
<!-- import form-create/iview -->
<script src="//unpkg.com/form-create/dist/form-create.min.js"></script>
elementUI
<!-- import Vue.js -->
<script src="//vuejs.org/js/vue.min.js"></script>
<!-- import stylesheet -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- import element -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!-- import form-create/element -->
<script src="//unpkg.com/form-create/dist/form-create.elm.min.js"></script>
NodeJs:
iviewUI
import formCreate from 'form-create'
import { maker } from 'form-create'
Vue.use(formCreate)
ElementUI
import formCreate from 'form-create/element'
import { maker } from 'form-create/element'
Vue.use(formCreate)
Usage
<form-create ref="fc" v-model="fApi" :rule="rule" :option="option"></form-create>
NodeJs
import {maker} from 'form-create'
export default {
data () {
return {
fApi:{},
model: {},
rule:[
maker.input('goods_name','goods_name'),
maker.date('create_at','created_at')
],
option:{
onSubmit:function (formData) {
alert(JSON.stringify(formData));
}
}
};
},
mounted:function(){
this.model = this.fApi.model();
}
};
Browser
new Vue({
el:'#app1',
data:{
fApi:{},
model: {},
rule:[
formCreate.maker.input('goods_name','goods_name'),
formCreate.maker.date('create_at','created_at')
],
option:{
onSubmit:function (formData) {
alert(JSON.stringify(formData));
}
}
},
mounted:function () {
this.model = this.fApi.model();
}
});
Reference
Thank
时光弧线 | wxxtqk | williamBoss | HeyMrLin | djkloop
Donation

Contact
email : xaboy2005@qq.com
License
Copyright (c) 2018-present xaboy
Related Packages
element-ui动态表单|form-create is a form generation component that can generate...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.6.6 | ^2.5.2 | MIT | |
| 1.6.5 | ^2.5.2 | MIT | |
| 1.6.4 | ^2.5.2 | MIT | |
| 1.6.3 | ^2.5.2 | MIT | |
| 1.6.2 | ^2.5.2 | MIT | |
| 1.6.1 | ^2.5.2 | MIT | |
| 1.6.0 | ^2.5.2 | MIT | |
| 1.5.5 | ^2.5.2 | MIT | |
| 1.5.4 | ^2.5.2 | MIT | |
| 1.5.3 | ^2.5.2 | MIT | |
| 1.5.2 | ^2.5.2 | MIT | |
| 1.5.1 | ^2.5.2 | MIT | |
| 1.5.0 | ^2.5.2 | MIT | |
| 1.4.6 | ^2.5.13 | MIT | |
| 1.4.5 | ^2.5.13 | MIT | |
| 1.4.4 | ^2.5.13 | MIT | |
| 1.4.3 | ^2.5.13 | MIT | |
| 1.4.2 | ^2.5.13 | MIT | |
| 1.4.0 | ^2.5.13 | MIT | |
| 1.3.3 | 2.5.13 | MIT | |
| 1.3.2 | 2.5.13 | MIT | |
| 1.3.1 | 2.5.13 | MIT | |
| 1.2.3 | 2.5.13 | MIT | |
| 1.2.2 | 2.5.13 | MIT | |
| 1.1.7 | 2.5.13 | MIT | |
| 1.1.6 | 2.5.13 | MIT | |
| 1.1.5 | 2.5.13 | MIT | |
| 1.1.4 | ^2.5.13 | MIT | |
| 1.1.2 | ^2.5.13 | MIT | |
| 1.0.3 | ^2.5.13 | ISC |
Showing the latest 30 of 33. See every release on npm
Pre-releases (1)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.6.0-bata.2 | ^2.5.2 | MIT |