You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
背景:
1、vue3中使用JSON schema形式创建表单时,schema中字段的key中带有'.'字符,导致渲染出来的组件和数据没办法完全匹配。
例如:
{
"type": "void",
"x-index": 270000,
"x-component": "FormCollapse.Item",
"x-component-props": {
"header": "· 产品自动续订说明",
"value": "title_autorenew"
},
"properties": {
"product_auto_renew.product_auto_renew": {
"title": "产品自动续订说明",
"type": "string",
"enum": [],
"sceneCanChange": "insert,updateOffline,updateOnline",
"multiple": false,
"x-index": 270001,
"x-decorator": "FormItem",
"x-component": "Input",
"x-component-props": {}
}
}
}
问题:
1、渲染出来表单后,数据并不是
{
"product_auto_renew.product_auto_renew": XXX,
}
而是
{
"product_auto_renew":{
"product_auto_renew": XXX,
},
}
导致输入框没有展示任何数据,请问可以关掉这个默认识别字段key的点语法嘛?
Beta Was this translation helpful? Give feedback.
All reactions