mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
24 lines
565 B
TypeScript
24 lines
565 B
TypeScript
import type { ElementOf } from './type';
|
|
import { tuple } from './type';
|
|
|
|
export const PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const PresetColorTypes = tuple(
|
|
'pink',
|
|
'red',
|
|
'yellow',
|
|
'orange',
|
|
'cyan',
|
|
'green',
|
|
'blue',
|
|
'purple',
|
|
'geekblue',
|
|
'magenta',
|
|
'volcano',
|
|
'gold',
|
|
'lime',
|
|
);
|
|
|
|
export type PresetColorType = ElementOf<typeof PresetColorTypes>;
|
|
export type PresetStatusColorType = ElementOf<typeof PresetStatusColorTypes>;
|