Json数据导入组件数据字段有问题
anzhihe opened this issue · comments
问题:
json数据导入的时候,组件的数据字段还是初始的值。
版本:
"v-form-antd": "^0.1.8",
"vue": "^2.6.11",
"ant-design-vue": "1.7.2",
比如导出json格式如下:
"formItems": [
{
"type": "input",
"label": "弹性组名称",
"field": "groupName",
"span": 12,
"props": {
"type": "text",
"placeholder": "AWS或Azure必填",
"allowClear": false,
"disabled": false,
"addonBefore": "",
"addonAfter": "",
"maxLength": 256
},
......
导入时field值是input_1,而不是groupName了。
{
"formItems": [
{
"type": "input",
"label": "弹性组名称",
"field": "input_1",
"span": 12,
"props": {
"type": "text",
"placeholder": "AWS或Azure必填",
"allowClear": false,
"disabled": false,
"addonBefore": "",
"addonAfter": "",
"maxLength": 256
},
辛苦大佬看看~