UNPKG

@antv/s2-react-components

Version:

React components for S2

47 lines (46 loc) 1.26 kB
/** 默认色板 */ export declare const DEFAULT_THEME_COLOR_LIST: string[]; /** * 当 sheetThemeColorType=自选色 且 sheetThemeType=basic 时 * 需要自定义色板取色规则 * 详见 s2 底表内置 palette 的 basicColorRelations 字段 * 未定义关系的 basicColorIndex,底表会赋值为 #ffffff */ export declare const BASIC_SHEET_THEME_TYPE_COLOR_RELATIONS: { basicColorIndex: number; standardColorIndex: number; }[]; export declare const SECONDARY_THEME_COLOR_TYPE_RELATIONS: { basicColorIndex: number; standardColorIndex: number; }[]; export declare const HISTORY_COLOR_LIST_STORAGE_KEY: string; export declare const HISTORY_COLOR_LIST_MAX_COUNT = 6; /** * 主题色系类型 */ export declare enum SheetThemeColorType { /** 深色主题(默认取值) */ PRIMARY = "primary", /** 浅色主题 */ SECONDARY = "secondary", /** 灰色 */ GRAY = "gray", /** 自定义 */ CUSTOM = "custom" } /** * 主题类型 */ export declare enum SheetThemeType { /** 默认 (使用 S2 默认主题) */ DEFAULT = "default", /** 多彩 */ COLORFUL = "colorful", /** 简约 */ NORMAL = "normal", /** 极简 */ BASIC = "basic", /** 斑马纹 */ ZEBRA = "zebra" }