mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 03:16:35 +08:00
types(ImagePreview): swipeTo should be optional (#6727)
This commit is contained in:
parent
67be6f4f02
commit
bf0f655c72
6
types/image-preview.d.ts
vendored
6
types/image-preview.d.ts
vendored
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user