mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
[improvement] ImagePreview: add show-index prop (#1889)
This commit is contained in:
2
types/image-preview.d.ts
vendored
2
types/image-preview.d.ts
vendored
@@ -3,11 +3,13 @@ import { VanPopupMixin } from './mixins/popup';
|
||||
export type ImagePreviewOptions = string[] | {
|
||||
images: string[];
|
||||
startPosition?: number;
|
||||
showIndex?: boolean;
|
||||
onClose?: () => any;
|
||||
};
|
||||
|
||||
export class VanImagePreview extends VanPopupMixin {
|
||||
images: string[];
|
||||
showIndex: boolean;
|
||||
startPosition: number;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user