mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
export type ToastOptions = {
|
|
type?: string;
|
|
mask?: boolean;
|
|
message?: string;
|
|
position?: string;
|
|
duration?: number;
|
|
forbidClick?: boolean;
|
|
}
|
|
|
|
export interface Toast {
|
|
(message: ToastOptions | string, options?: ToastOptions): void;
|
|
loading(options?: ToastOptions): void;
|
|
success(options?: ToastOptions): void;
|
|
fail(options?: ToastOptions): void;
|
|
clear(): void;
|
|
}
|
|
|
|
export const Toast: Toast;
|