颜色选择器

介绍
表单组件,用于用户选择颜色
API
Props
| 参数名 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| status | 状态 | 'default' |'disabled'| 'hide'| 'readonly' | 'default' |
| title | 标题 | string | - |
| showLabel | 显示标题 | boolean | true |
| format | 格式 | 'rgb' | 'hex' | 'rgb' |
| valueType | 默认值 | 'custom' | 'formula' | 'custom' |
| value | 编辑默认值 | string | {formulaValue:string,value:string} | - |
| placeholder | 占位提示 | string | '请选择' |
| width | 字段占比 | '25%'|'50%'|'75%'|'100%' | '100%' |
| labelWidth | 标签宽度 | string | - |
| name | 数据字段 | string | ${组件编码}_${长度为8的随机字符串} |
| allowClear | 允许清除 | boolean | false |
| baseStyle | 自定义样式 | string | - |
| customClass | 类名绑定 , 绑定类的名称 | string | - |
| boxStyle | 盒模型 , margin,border,padding设置 | BoxStyle | - |
| uniqueKey | 唯一标识 , 组件的唯一标识 | string | - |
| extra | 补充说明 | string | - |
| tip | 气泡提醒 | string | - |
| validate | 校验 | Validate | - |
| loop | 循环, 循环渲染设置 | Loop | - |
Events
| 事件名 | 描述 | 参数 |
|---|---|---|
| onInput | 用户输入时 | ctx params: {value:string} loop:LoopParams |
| onChange | 输入框失焦或按下回车时 | ctx loop: LoopParams |
| onFocus | 获得焦点时 | ctx params:FocusEvent loop: LoopParams |
| onBlur | 失去焦点时 | ctx params:FocusEvent loop: LoopParams |
| onPressEnter | 按下回车时 | ctx params: {value:string} loop:LoopParams |
| onClear | 点击清除按钮时 | ctx params:PointerEvent loop: LoopParams |
| onPaste | 粘贴内容时 | ctx params:{value:string,event:ClipboardEvent} loop: LoopParams |