跳到主要内容

eo-color-picker

<eo-color-picker>

构件 eo-color-picker

Examples

Basic

Playground

Size

Playground

ShowText

Playground

AllowClear

Playground

Formats

Playground

With Form

Playground

Properties

NameDescriptionTypeDefaultRequired
name

字段名称

string
label

字段说明

string
value

string
defaultValue

颜色默认的值

string | Color
required

是否必填

boolean
allowClear

允许清除选择的颜色

boolean
size

设置触发器大小

"small" | "middle" | "large" middle
showText

显示颜色文本

boolean
disabled

是否禁用

boolean
format

颜色格式

"rgb" | "hex" | "hsb" hex
configProps

透传 antd ColorPicker 属性 ColorPickerProps

Partial<ColorPickerProps>

Events

NameDescriptionEvent Detail
change

颜色变化事件, 返回值格式和format格式一致

string | undefined