ColorPicker 颜色选择器

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

基础用法

ColorPicker 颜色选择器 - 图1

选择透明度

ColorPicker 颜色选择器 - 图2

Attributes

参数说明类型可选值默认值
showAlpha是否支持透明度选择booleanfalse
colorFormat写入 value 的颜色的格式stringhsl / hsv / hex / rgbhex(show-alpha 为 false)/ rgb(show-alpha 为 true)

Events

事件名称说明回调参数
onChange当绑定值变化时触发当前值