Skip to content
On this page

form表单组件 ​

https://element-plus.org/zh-CN/component/form.html

Hidden Title ​

基础用法 ​

表单校验规则 ​

动态显隐 isShow ​

多个属性 ​

添加/删除表单项 ​

每行展示多少项 ​

插槽 ​

自定义 label jsx 渲染 ​

事件 ​

属性 ​

属性名说明类型默认值
fieldListfieldList值object-
modelmodel值object-

filedList属性 ​

属性名说明类型默认值
label左侧显示的label值string, slot, render-
prop值对应的属性string-
comp要渲染的组件名称string'o-input'
attrsform绑定的属性object-
rules每一项对应的rules规则object-
labelRender对label的render渲染Function-
imgAttrs左侧图片的属性object-
useSlot使用插槽boolean-
directives自定义指令object-

Form Exposes ​

名称说明类型
validate校验form表单是否通过Function(isResetFields = false, otherParams = {})
resetFields重置form表单Function