first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user