颜色选择器 ColorInput
基于Element的el-color-picker组件二次封装
基础用法
basic.vue
组件配置
ColorInput Props
属性
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 参数类型 | string | - |
| showAlpha | 是否显示透明度滑块 | Boolean | false |
| placeholder | 输入框占位符 | string | '' |
| colorFormat | 颜色格式,可选值为 'hsl', 'hsv', 'hex', 'rgb'。当 showAlpha 为 false 时,默认为 'hex';当 showAlpha 为 true 时,默认为 'rgb' | string | 'hex' |
| teleported | 是否将组件挂载到 body 上 | Boolean | true |
