[new feature] ImagePreview: add className prop (#2433)

This commit is contained in:
neverland
2019-01-03 23:20:24 +08:00
committed by GitHub
parent fad49ea1c7
commit 5c3388c8a9
6 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export type DialogOptions = {
title?: string;
message?: string;
overlay?: boolean;
className?: string;
className?: any;
lockScroll?: boolean;
messageAlign?: string;
confirmButtonText?: string;
+3
View File
@@ -1,9 +1,12 @@
import { VanPopupMixin } from './mixins/popup';
export type ImagePreviewOptions = string[] | {
loop?: boolean;
images: string[];
className?: any;
startPosition?: number;
showIndex?: boolean;
asyncClose?: boolean;
showIndicators?: boolean;
onClose?: () => any;
};