fix: form 表单不支持field.xxx.xx格式的defaultValue配置 (#4965)

* fix: form 表单不支持field.xxx.xx格式的defaultValue配置

* chore: 修复代码规范问题
This commit is contained in:
leizhiyou
2024-12-01 21:48:54 +08:00
committed by GitHub
parent ae3f7cb909
commit 12f216c0e7
6 changed files with 38 additions and 3 deletions

View File

@@ -291,6 +291,12 @@ const [CustomLayoutForm] = useVbenForm({
formItemClass: 'col-start-1',
label: '字符串',
},
{
component: 'Input',
defaultValue: 'field4.path',
fieldName: 'field4.path',
label: 'field4.path',
},
],
// 一共三列
wrapperClass: 'grid-cols-3',