vue-devui
Version:
DevUI components based on Vite and Vue3
41 lines (40 loc) • 1.1 kB
TypeScript
import type { PropType, ExtractPropTypes } from 'vue';
export type BadgeStatusType = 'danger' | 'warning' | 'waiting' | 'success' | 'info' | 'common';
export type BadgePositionType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
export declare const badgeProps: {
count: {
type: (StringConstructor | NumberConstructor)[];
};
maxCount: {
type: NumberConstructor;
default: number;
};
showDot: {
type: BooleanConstructor;
default: boolean;
};
status: {
type: PropType<BadgeStatusType>;
validator: (val: string) => boolean;
default: string;
};
position: {
type: PropType<BadgePositionType>;
default: string;
validator: (val: string) => boolean;
};
offset: {
type: PropType<number[]>;
};
bgColor: {
type: StringConstructor;
};
textColor: {
type: StringConstructor;
};
hidden: {
type: BooleanConstructor;
default: boolean;
};
};
export type BadgeProps = ExtractPropTypes<typeof badgeProps>;