types(ImagePreview): swipeTo should be optional (#6727)

This commit is contained in:
neverland
2020-07-07 17:07:33 +08:00
committed by GitHub
parent 67be6f4f02
commit bf0f655c72
+3 -3
View File
@@ -20,9 +20,9 @@ export type ImagePreviewOptions =
closeOnPopstate?: boolean; closeOnPopstate?: boolean;
closeIconPosition?: string; closeIconPosition?: string;
getContainer?: string | (() => Element); getContainer?: string | (() => Element);
onClose?: () => void; onClose?(): void;
onChange?: (index: number) => void; onChange?(index: number): void;
swipeTo(index: number, options?: SwipeToOptions): void; swipeTo?(index: number, options?: SwipeToOptions): void;
}; };
export class VanImagePreview extends VanPopupMixin { export class VanImagePreview extends VanPopupMixin {