Color-picker 颜色选择器

用于颜色选择,支持多种格式。

Attributes

参数 说明 类型 可选值 默认值
value / v-model 绑定值 String
disabled 是否禁用 Boolean false
size 尺寸 String medium / small / mini
show-alpha 是否支持透明度选择 Boolean false
color-format 写入 v-model 的颜色的格式 String 'hsl' | 'hsv' | 'hex' | 'rgb' 'hex'(show-alpha 为 false)| 'rgb'(show-alpha 为 true)
popper-class ColorPicker 下拉框的类名 String
predefine 预定义颜色 Array

Events

事件名称 说明 回调参数
change 当绑定值变化时触发 当前值
active-change 面板中当前显示的颜色发生改变时触发 当前显示的颜色值

贡献者

类型 参与者
设计者 UED视觉组
维护者 UED前端组
上次更新: 7/28/2021, 9:46:32 AM