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';
|
||||
|
||||
export type ImagePreviewOptions = string[] | {
|
||||
images: string[];
|
||||
startPosition?: number;
|
||||
onClose?: () => any;
|
||||
};
|
||||
|
||||
export class VanImagePreview extends VanPopupMixin {
|
||||
images: string[];
|
||||
startPosition: number;
|
||||
}
|
||||
|
||||
export interface ImagePreview {
|
||||
(images: string[], startPosition?: number): VanImagePreview;
|
||||
(options: ImagePreviewOptions, startPosition?: number): VanImagePreview;
|
||||
install(): void;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user