chore: prettier packages codes

This commit is contained in:
陈嘉涵
2020-01-19 14:09:32 +08:00
parent 389d68884d
commit 1575bea6f5
18 changed files with 113 additions and 80 deletions
+18 -16
View File
@@ -1,21 +1,23 @@
import { VanPopupMixin } from './mixins/popup';
export type ImagePreviewOptions = string[] | {
loop?: boolean;
images: string[];
maxZoom?: number;
minZoom?: number;
className?: any;
lazyLoad?: boolean;
showIndex?: boolean;
asyncClose?: boolean;
swipeDuration?: number;
startPosition?: number;
showIndicators?: boolean;
closeOnPopstate?: boolean;
onClose?: () => void;
onChange?: (index: number) => void;
};
export type ImagePreviewOptions =
| string[]
| {
loop?: boolean;
images: string[];
maxZoom?: number;
minZoom?: number;
className?: any;
lazyLoad?: boolean;
showIndex?: boolean;
asyncClose?: boolean;
swipeDuration?: number;
startPosition?: number;
showIndicators?: boolean;
closeOnPopstate?: boolean;
onClose?: () => void;
onChange?: (index: number) => void;
};
export class VanImagePreview extends VanPopupMixin {
images: string[];