Skip to content

Commit

Permalink
feat(color-picker): update COLOR_MODES,add FORMATS (#1986)
Browse files Browse the repository at this point in the history
* feat: update COLOR_MODES

* feat: add FORMATS
  • Loading branch information
liweijie0812 authored Nov 27, 2024
1 parent addb5d0 commit 94e21e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/color-picker/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const TD_COLOR_USED_COLORS_MAX_SIZE = 100; // 每行10个

// 颜色模式options配置
export const COLOR_MODES = {
monochrome: '单色',
'linear-gradient': '渐变',
monochrome: 'singleColor',
'linear-gradient': 'gradientColor',
};

// 默认颜色
Expand Down Expand Up @@ -59,6 +59,9 @@ export const DEFAULT_SYSTEM_SWATCH_COLORS = [
'#033017',
];

// 非透明色格式化类型
export const FORMATS = ['HEX', 'RGB', 'HSL', 'HSV', 'CMYK', 'CSS'];

// saturation-panel default rect
export const SATURATION_PANEL_DEFAULT_WIDTH = 230;
export const SATURATION_PANEL_DEFAULT_HEIGHT = 168;
Expand Down

0 comments on commit 94e21e2

Please sign in to comment.