跳到主要内容

eo-form-item

Insider
<eo-form-item>
Alias: <form.general-form-item>

通用输入框构件

Properties

NameDescriptionTypeDefaultRequired
formElementForm
curElementHTMLElement
name

字段名称

string
labelstring
patternstring
messageRecord<string, string>
typestring
maxnumber
minnumber
required

表单项是否为必填

boolean
value

初始值

string
valuePropsNamestring
layoutLayout
sizeComponentSize
trim

是否自动去除前后的空白字符

boolean true
trigger

事件触发方法名

string
validator

表单项校验方法

((value: any) => MessageBody)
needValidate

值变化时是否主动出发校验

boolean

Slots

NameDescription
(default)

表单项内容

Type references

Layout

"horizontal" | "vertical" | "inline"

ComponentSize

"large" | "medium" | "small" | "xs"