Color 颜色
July 24, 2026Less than 1 minute
Some documentation on this page is available in Chinese only. Component built-in messages follow English; untranslated example text remains in its original language.
Color
表单颜色字段(带触发器)。内部使用 ColorPicker。
纯面板请使用 ColorPicker(默认无触发器)。设计 Token 色板见 颜色 Color。
Examples
基本用法
尺寸
API
Props
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
model-value | 绑定值 | string | - |
format | 颜色格式 | hex | rgb | - |
size | 尺寸 | xs | sm | md | lg | xl | md |
show-text | 显示颜色值 | boolean | false |
show-history | 显示历史颜色 | boolean | false |
show-preset | 显示预设颜色 | boolean | false |
disabled | 禁用 | boolean | false |
disabled-alpha | 禁用透明通道 | boolean | false |
color-picker-props | 透传给 ColorPicker | object | {} |
