Skip to content

ColorPicker 颜色选择框

规则

js
{
    type: "ColorPicker",
    field: "color",
    title: "颜色",
    value: '#ff7271',
}

完整配置项:Element_ColorPicker

value :String

Props

属性名说明类型默认值
disabled是否禁用booleanfalse
size尺寸enum
showAlpha是否支持透明度选择booleanfalse
colorFormat写入 v-model 的颜色的格式enum
popperClassColorPicker 下拉框的类名string
predefine预定义颜色object
validateEvent输入时是否触发表单的校验booleantrue
tabindexColorPicker 的 tabindexstring / number0
ariaLabelColorPicker 的 aria-labelstring
idColorPicker 的 idstring
teleported是否将 popover 的下拉列表渲染至 body 下booleantrue

Events

事件名说明类型
change当绑定值变化时触发Function
active-change面板中当前显示的颜色发生改变时触发Function
focus当获得焦点时触发Function
blur当失去焦点时触发Function

FormCreate 是一个开源项目,基于 MIT 许可证发布,欢迎个人和企业用户免费使用