eo-color-picker
<eo-color-picker>
构件 eo-color-picker
Examples
Basic
Size
ShowText
AllowClear
Formats
With Form
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
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
Name | Description | Event Detail |
---|---|---|
change | 颜色变化事件, 返回值格式和 | string | undefined |