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

6 lines
175 B
TypeScript

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