feat(Toast): add closeOnClick option (#4192)

This commit is contained in:
neverland
2019-08-22 17:57:25 +08:00
committed by GitHub
parent 5603da5c73
commit d2b28432cd
6 changed files with 35 additions and 2 deletions

1
types/toast.d.ts vendored
View File

@@ -13,6 +13,7 @@ export type ToastOptions = {
onClose?(): void;
onOpened?(): void;
forbidClick?: boolean;
closeOnClick?: boolean;
loadingType?: string;
message?: ToastMessage;
getContainer?: string | (() => HTMLElement);