Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json数据导入组件数据字段有问题 #4

Open
anzhihe opened this issue Nov 3, 2022 · 0 comments
Open

Json数据导入组件数据字段有问题 #4

anzhihe opened this issue Nov 3, 2022 · 0 comments

Comments

@anzhihe
Copy link

anzhihe commented Nov 3, 2022

问题:
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
			},

辛苦大佬看看~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant