ColorPicker 颜色选择器
基础用法
禁用
三种大小
禁用透明度
清除颜色
自定义触发器
预设颜色
ColorPicker API
ColorPicker Attributes
Name | Description | Type | Default | Version |
---|---|---|---|---|
allowClear | 允许清除选择的颜色 | boolean | false | |
disabled | 禁用颜色选择器 | boolean | false | |
disabledAlpha | 禁用透明度 | boolean | false | |
format | 颜色格式 | auto | rgb | hex | hsl | auto | |
presets | 预设的颜色 | string[] | [] | |
value(v-model) | 颜色的值 | string | — | |
size | 输入框尺寸 | large | default | small | — |
ColorPicker Events
Name | Description | Type |
---|---|---|
change | 颜色变化的回调 | (color: string) => void |
clear | 清除的回调 | () => void |
ColorPicker Slots
Name | Description |
---|---|
default | 自定义触发器 |