mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
[bugfix] ImagePreview: fix ts definition (#1767)
This commit is contained in:
parent
6bbecc8a90
commit
ddeb0892d9
8
types/image-preview.d.ts
vendored
8
types/image-preview.d.ts
vendored
@ -1,12 +1,18 @@
|
|||||||
import { VanPopupMixin } from './mixins/popup';
|
import { VanPopupMixin } from './mixins/popup';
|
||||||
|
|
||||||
|
export type ImagePreviewOptions = string[] | {
|
||||||
|
images: string[];
|
||||||
|
startPosition?: number;
|
||||||
|
onClose?: () => any;
|
||||||
|
};
|
||||||
|
|
||||||
export class VanImagePreview extends VanPopupMixin {
|
export class VanImagePreview extends VanPopupMixin {
|
||||||
images: string[];
|
images: string[];
|
||||||
startPosition: number;
|
startPosition: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImagePreview {
|
export interface ImagePreview {
|
||||||
(images: string[], startPosition?: number): VanImagePreview;
|
(options: ImagePreviewOptions, startPosition?: number): VanImagePreview;
|
||||||
install(): void;
|
install(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user