mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
chore: prettier packages codes
This commit is contained in:
34
types/image-preview.d.ts
vendored
34
types/image-preview.d.ts
vendored
@@ -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
2
types/index.d.ts
vendored
@@ -110,5 +110,5 @@ export {
|
||||
SwipeCell,
|
||||
Tabs,
|
||||
Toast,
|
||||
Uploader
|
||||
Uploader,
|
||||
};
|
||||
|
4
types/lazyload.d.ts
vendored
4
types/lazyload.d.ts
vendored
@@ -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
5
types/toast.d.ts
vendored
@@ -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