Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

31 lines
570 B
TypeScript

export const MessageType = {
info: 'info',
success: 'success',
warning: 'warning',
error: 'error',
};
export interface MessageMarquee {
speed?: number;
loop?: number;
delay?: number;
}
export interface MessageProps {
visible?: boolean;
content: string;
align?: string;
theme?: keyof typeof MessageType;
icon?: boolean | string;
link?: string | object;
closeBtn?: boolean;
action?: string;
marquee?: MessageMarquee;
offset?: object;
duration?: number;
zIndex?: number;
id?: string;
gap?: string | number;
single?: boolean;
}