跳到主要内容

eo-auto-complete

<eo-auto-complete>

构件 eo-auto-complete

Examples

Basic

Playground

caption

Playground

分组

Playground

filterByCaption

Playground

disabled

Playground

events

Playground

With Form

Playground

Properties

NameDescriptionTypeDefaultRequired
name

字段名称

string
placeholder

占位说明

string
label

字段文本

string
inputStyle

输入框样式

React.CSSProperties
disabled

是否禁用

boolean
required

是否必填

boolean
valuestring
options

选项列表

string[] | OptionType[]
filterByCaption

搜索时是否根据caption过滤options

boolean
validator

表单项校验方法

((value: any) => MessageBody)
pattern

正则校验规则

string
message

校验文本信息

Record<string, string>

Events

NameDescriptionEvent Detail
change

值改变事件

string

Type references

Option

NameTypeRequiredDescription
labelstring
captionstring
valueany

OptionGroup

NameTypeRequiredDescription
labelstring
optionsOption[]

OptionType

Option | OptionGroup