- ColorPicker 颜色选择器
- 基础用法
- 选择透明度
- Attributes
- Events
ColorPicker 颜色选择器
用于颜色选择,支持多种格式。
基础用法

选择透明度

Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| showAlpha | 是否支持透明度选择 | boolean | — | false |
| colorFormat | 写入 value 的颜色的格式 | string | hsl / hsv / hex / rgb | hex(show-alpha 为 false)/ rgb(show-alpha 为 true) |
Events
| 事件名称 | 说明 | 回调参数 |
|---|---|---|
| onChange | 当绑定值变化时触发 | 当前值 |
