eo-form-item
Insider
<eo-form-item>
Alias:
<form.general-form-item>
通用输入框构件
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
formElement | Form | |||
curElement | HTMLElement | |||
name | 字段名称 | string | ||
label | string | |||
pattern | string | |||
message | Record<string, string> | |||
type | string | |||
max | number | |||
min | number | |||
required | 表单项是否为必填 | boolean | ||
value | 初始值 | string | ||
valuePropsName | string | |||
layout | Layout | |||
size | ComponentSize | |||
trim | 是否自动去除前后的空白字符 | boolean | true | |
trigger | 事件触发方法名 | string | ||
validator | 表单项校验方法 | ((value: any) => MessageBody) | ||
needValidate | 值变化时是否主动出发校验 | boolean |
Slots
Name | Description |
---|---|
(default) | 表单项内容 |
Type references
Layout
"horizontal" | "vertical" | "inline"
ComponentSize
"large" | "medium" | "small" | "xs"