chore: prettier packages codes
This commit is contained in:
Vendored
+18
-16
@@ -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[];
|
||||
|
||||
Vendored
+1
-1
@@ -110,5 +110,5 @@ export {
|
||||
SwipeCell,
|
||||
Tabs,
|
||||
Toast,
|
||||
Uploader
|
||||
Uploader,
|
||||
};
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user