breaking change(ImagePreview): remove asyncClose and add beforeClose

This commit is contained in:
chenjiahan
2020-09-06 10:31:14 +08:00
parent 21c30cbbf8
commit 89a39f05bc
8 changed files with 39 additions and 21 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export type ImagePreviewOptions =
showIndex?: boolean;
closeable?: boolean;
closeIcon?: string;
asyncClose?: boolean;
beforeClose?: (active: number) => boolean | Promise<boolean>;
swipeDuration?: number;
startPosition?: number;
showIndicators?: boolean;