types(ImagePreview): swipeTo should be optional (#6727)
This commit is contained in:
Vendored
+3
-3
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user