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

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[];

2
types/index.d.ts vendored
View File

@@ -110,5 +110,5 @@ export {
SwipeCell,
Tabs,
Toast,
Uploader
Uploader,
};

4
types/lazyload.d.ts vendored
View File

@@ -1,7 +1,7 @@
import Vue, { PluginFunction } from 'vue';
import { PluginFunction } from 'vue';
export interface Lazyload {
install: PluginFunction<void>
install: PluginFunction<void>;
}
export const Lazyload: Lazyload;

5
types/toast.d.ts vendored
View File

@@ -41,7 +41,10 @@ export interface Toast {
fail(options?: ToastOptions | ToastMessage): VanToast;
clear(all?: boolean): void;
install(): void;
setDefaultOptions(type: ToastType | ToastOptions, options?: ToastOptions): void;
setDefaultOptions(
type: ToastType | ToastOptions,
options?: ToastOptions
): void;
resetDefaultOptions(options?: string): void;
allowMultiple(allow: boolean): void;
}