[new feature] ImagePreview: add onChange option (#3630)

This commit is contained in:
neverland
2019-06-25 15:49:17 +08:00
committed by GitHub
parent 045c75669b
commit fbd751a641
7 changed files with 64 additions and 13 deletions

View File

@@ -12,7 +12,8 @@ export type ImagePreviewOptions = string[] | {
asyncClose?: boolean;
showIndicators?: boolean;
closeOnPopstate?: boolean;
onClose?: () => any;
onClose?: () => void;
onChange?: (index: number) => void;
};
export class VanImagePreview extends VanPopupMixin {