mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +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;
|
||||
closeIconPosition?: string;
|
||||
getContainer?: string | (() => Element);
|
||||
onClose?: () => void;
|
||||
onChange?: (index: number) => void;
|
||||
swipeTo(index: number, options?: SwipeToOptions): void;
|
||||
onClose?(): void;
|
||||
onChange?(index: number): void;
|
||||
swipeTo?(index: number, options?: SwipeToOptions): void;
|
||||
};
|
||||
|
||||
export class VanImagePreview extends VanPopupMixin {
|
||||
|
Loading…
x
Reference in New Issue
Block a user