[improvement] ImagePreview: add show-index prop (#1889)

This commit is contained in:
neverland
2018-10-02 21:24:25 +08:00
committed by GitHub
parent 8bd447a130
commit a4bebfbb8d
15 changed files with 84 additions and 21 deletions

View File

@@ -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;
}