颜色选择器 ColorInput

基于Element的el-color-picker组件二次封装

基础用法

basic.vue

组件配置

ColorInput Props

属性

属性说明类型默认值
type参数类型string-
showAlpha是否显示透明度滑块Booleanfalse
placeholder输入框占位符string''
colorFormat颜色格式,可选值为 'hsl', 'hsv', 'hex', 'rgb'
showAlphafalse 时,默认为 'hex';当 showAlphatrue 时,默认为 'rgb'
string'hex'
teleported是否将组件挂载到 body 上Booleantrue