[new feature] Toast: add onOpened option

This commit is contained in:
陈嘉涵
2019-05-28 20:27:20 +08:00
parent 999be8064a
commit fecc82e69b
6 changed files with 37 additions and 9 deletions

1
types/toast.d.ts vendored
View File

@@ -10,6 +10,7 @@ export type ToastOptions = {
duration?: number;
className?: any;
onClose?(): void;
onOpened?(): void;
forbidClick?: boolean;
loadingType?: string;
message?: ToastMessage;