1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-28 04:16:35 +08:00
vant/types/image-preview.d.ts

23 lines
513 B
TypeScript

import { VanPopupMixin } from './mixins/popup';
export type ImagePreviewOptions = string[] | {
images: string[];
startPosition?: number;
showIndex?: boolean;
showIndicators?: boolean;
onClose?: () => any;
};
export class VanImagePreview extends VanPopupMixin {
images: string[];
showIndex: boolean;
startPosition: number;
}
export interface ImagePreview {
(options: ImagePreviewOptions, startPosition?: number): VanImagePreview;
install(): void;
}
export const ImagePreview: ImagePreview;