2021-11-12 05:30:10 +08:00
|
|
|
interface BaseNotification {
|
2023-04-10 09:29:10 +08:00
|
|
|
data: any;
|
|
|
|
ticks: number;
|
|
|
|
type: string;
|
|
|
|
message: string;
|
|
|
|
icon: string;
|
|
|
|
toast: boolean;
|
|
|
|
position: string;
|
|
|
|
showConfirmButton: boolean;
|
|
|
|
timer: number;
|
|
|
|
timerProgressBar: boolean;
|
2021-11-12 05:30:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAlert extends BaseNotification {}
|
2021-12-13 00:20:48 +08:00
|
|
|
export interface IToast extends BaseNotification {}
|
|
|
|
|
2023-04-10 09:29:10 +08:00
|
|
|
export interface INotification extends BaseNotification {
|
2023-04-16 19:32:26 +08:00
|
|
|
uid: string;
|
2023-04-10 09:29:10 +08:00
|
|
|
message: string;
|
2021-12-13 00:20:48 +08:00
|
|
|
}
|