UNPKG

5.62 kBTypeScriptView Raw
1import type { ImagePreviewProps } from './ImagePreview';
2export declare const ImagePreview: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3 show: BooleanConstructor;
4 loop: {
5 type: BooleanConstructor;
6 default: true;
7 };
8 images: {
9 type: import("vue").PropType<string[]>;
10 default: () => never[];
11 };
12 minZoom: {
13 type: (NumberConstructor | StringConstructor)[];
14 default: number;
15 };
16 maxZoom: {
17 type: (NumberConstructor | StringConstructor)[];
18 default: number;
19 };
20 overlay: {
21 type: BooleanConstructor;
22 default: true;
23 };
24 vertical: BooleanConstructor;
25 closeable: BooleanConstructor;
26 showIndex: {
27 type: BooleanConstructor;
28 default: true;
29 };
30 className: import("vue").PropType<unknown>;
31 closeIcon: {
32 type: import("vue").PropType<string>;
33 default: string;
34 };
35 transition: StringConstructor;
36 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
37 doubleScale: {
38 type: BooleanConstructor;
39 default: true;
40 };
41 overlayClass: import("vue").PropType<unknown>;
42 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
43 swipeDuration: {
44 type: (NumberConstructor | StringConstructor)[];
45 default: number;
46 };
47 startPosition: {
48 type: (NumberConstructor | StringConstructor)[];
49 default: number;
50 };
51 showIndicators: BooleanConstructor;
52 closeOnPopstate: {
53 type: BooleanConstructor;
54 default: true;
55 };
56 closeOnClickImage: {
57 type: BooleanConstructor;
58 default: true;
59 };
60 closeOnClickOverlay: {
61 type: BooleanConstructor;
62 default: true;
63 };
64 closeIconPosition: {
65 type: import("vue").PropType<import("..").PopupCloseIconPosition>;
66 default: import("..").PopupCloseIconPosition;
67 };
68 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
69}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70 show: BooleanConstructor;
71 loop: {
72 type: BooleanConstructor;
73 default: true;
74 };
75 images: {
76 type: import("vue").PropType<string[]>;
77 default: () => never[];
78 };
79 minZoom: {
80 type: (NumberConstructor | StringConstructor)[];
81 default: number;
82 };
83 maxZoom: {
84 type: (NumberConstructor | StringConstructor)[];
85 default: number;
86 };
87 overlay: {
88 type: BooleanConstructor;
89 default: true;
90 };
91 vertical: BooleanConstructor;
92 closeable: BooleanConstructor;
93 showIndex: {
94 type: BooleanConstructor;
95 default: true;
96 };
97 className: import("vue").PropType<unknown>;
98 closeIcon: {
99 type: import("vue").PropType<string>;
100 default: string;
101 };
102 transition: StringConstructor;
103 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
104 doubleScale: {
105 type: BooleanConstructor;
106 default: true;
107 };
108 overlayClass: import("vue").PropType<unknown>;
109 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
110 swipeDuration: {
111 type: (NumberConstructor | StringConstructor)[];
112 default: number;
113 };
114 startPosition: {
115 type: (NumberConstructor | StringConstructor)[];
116 default: number;
117 };
118 showIndicators: BooleanConstructor;
119 closeOnPopstate: {
120 type: BooleanConstructor;
121 default: true;
122 };
123 closeOnClickImage: {
124 type: BooleanConstructor;
125 default: true;
126 };
127 closeOnClickOverlay: {
128 type: BooleanConstructor;
129 default: true;
130 };
131 closeIconPosition: {
132 type: import("vue").PropType<import("..").PopupCloseIconPosition>;
133 default: import("..").PopupCloseIconPosition;
134 };
135 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
136}>> & Readonly<{
137 onChange?: ((...args: any[]) => any) | undefined;
138 onClose?: ((...args: any[]) => any) | undefined;
139 onClosed?: ((...args: any[]) => any) | undefined;
140 "onUpdate:show"?: ((...args: any[]) => any) | undefined;
141 onScale?: ((...args: any[]) => any) | undefined;
142 onLongPress?: ((...args: any[]) => any) | undefined;
143}>, {
144 loop: boolean;
145 overlay: boolean;
146 show: boolean;
147 vertical: boolean;
148 closeOnClickOverlay: boolean;
149 closeIcon: string;
150 closeable: boolean;
151 closeOnPopstate: boolean;
152 closeIconPosition: import("..").PopupCloseIconPosition;
153 swipeDuration: string | number;
154 showIndicators: boolean;
155 startPosition: string | number;
156 minZoom: string | number;
157 maxZoom: string | number;
158 doubleScale: boolean;
159 closeOnClickImage: boolean;
160 images: string[];
161 showIndex: boolean;
162}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
163export default ImagePreview;
164export { imagePreviewProps } from './ImagePreview';
165export { showImagePreview } from './function-call';
166export type { ImagePreviewProps };
167export type { ImagePreviewOptions, ImagePreviewInstance, ImagePreviewThemeVars, ImagePreviewScaleEventParams, } from './types';
168declare module 'vue' {
169 interface GlobalComponents {
170 VanImagePreview: typeof ImagePreview;
171 }
172}
173
\No newline at end of file