跳到主要内容

eo-dynamic-form-item

<eo-dynamic-form-item>
Alias: <form.dynamic-form-item>

动态表单构件。

Playground

Examples

Label

Playground

Value

Playground

Hide or disable buttons

Playground

Event

Playground

Properties

NameDescriptionTypeDefaultRequired
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

NameDescriptionEvent Detail
changeDynamicFormValuesItem[]
row.add

增加一行时触发,detail为该行的默认值,index为该行的位置

rowDataType
row.remove

移除一行时触发,detail为该行的值,index为该行的位置

rowDataType

Type references

rowDataType

NameTypeRequiredDescription
detailRecord<string, any>
indexnumber

DynamicFormValuesItem

Record<string, any>