eo-dynamic-form-item
<eo-dynamic-form-item>
Alias:
<form.dynamic-form-item>
动态表单构件。
Examples
Label
Value
Hide or disable buttons
Event
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | 字段名称 | string | ||
label | 字段说明 | string | ||
required | 是否必填 | boolean | ||
value | 值 | DynamicFormValuesItem[] | ||
message | 校验文本 | Record<string, string> | ||
hideRemoveButton | 是否隐藏每一行删除的按钮 | boolean | ((row: Record<string, any>, index: number) => boolean) | ||
disabledRemoveButton | 是否禁止每一行删除的按钮 | boolean | ((row: Record<string, any>, index: number) => boolean) | ||
hideAddButton | 是否隐藏添加的按钮 | boolean | ((value: Record<string, any>[]) => boolean) | ||
disabledAddButton | 是否禁止添加的按钮 | boolean | ((value: Record<string, any>[]) => boolean) | ||
useBrick | 动态表单子项构件列表 | UseBrickConf |
Events
Name | Description | Event Detail |
---|---|---|
change | DynamicFormValuesItem[] | |
row.add | 增加一行时触发,detail为该行的默认值,index为该行的位置 | rowDataType |
row.remove | 移除一行时触发,detail为该行的值,index为该行的位置 | rowDataType |
Type references
rowDataType
Name | Type | Required | Description |
---|---|---|---|
detail | Record<string, any> | ✅ | |
index | number | ✅ |
DynamicFormValuesItem
Record<string, any>