Skip to content
On this page

form表单组件

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

基础用法

通常用法

远程返回的表单数据

自定义指令

属性

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

filedList属性

属性名说明类型默认值
label左侧显示的label值string, slot, render-
prop值对应的属性string-
comp要渲染的组件名称string'o-input'
formAttrsform绑定的属性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