ant-design-vue/components/badge/utils.ts

6 lines
172 B
TypeScript

import { PresetColorTypes } from '../_util/colors';
export function isPresetColor(color?: string): boolean {
return (PresetColorTypes as any[]).indexOf(color) !== -1;
}