@icreate/ics-basic-form-builder
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name":"@icreate/ics-basic-form-builder", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "vue组件封装的表单设计器", | ||
@@ -5,0 +5,0 @@ "main": "form-builder.umd.min.js", |
@@ -63,2 +63,4 @@ | ||
>formJson:需要渲染的表单的json数据(从设计器复制json数据)(必传) | ||
>formData:需要渲染的表单数据(选传) | ||
>optionData:动态传入的选项数据(例如:多选框的选项)(选传) | ||
>appendButtonClickHandler : 输入框后置按钮的回调函数(选传) | ||
@@ -381,3 +383,18 @@ >submitForm: 可以获取到表单数据formData | ||
formData: {}, | ||
optionData: {}, | ||
optionData: { //动态传入的选项数据 | ||
checkbox: [ //checkbox 是name名称 | ||
{ | ||
label: "动态选项1", | ||
value: "1", | ||
}, | ||
{ | ||
label: "动态选项2", | ||
value: "2", | ||
}, | ||
{ | ||
label: "动态选项3", | ||
value: "3", | ||
}, | ||
], | ||
}, | ||
}; | ||
@@ -384,0 +401,0 @@ }, |
Sorry, the diff of this file is too big to display
1429361
5125
424