[new feauture] Notify: add onClose option

This commit is contained in:
陈嘉涵
2019-05-30 12:00:47 +08:00
parent 82134fe402
commit 333666f506
6 changed files with 18 additions and 3 deletions

1
types/notify.d.ts vendored
View File

@@ -9,6 +9,7 @@ export type NotifyOptions = {
duration?: number;
className?: any;
background?: string;
onClose?: (() => void) | null;
onClick?: ((event: Event) => void) | null;
}