1 | import { type PropType, type CSSProperties, type ExtractPropTypes, type TeleportProps } from 'vue';
|
2 | import { Interceptor } from '../utils';
|
3 | import { PopupCloseIconPosition } from '../popup';
|
4 | export declare const imagePreviewProps: {
|
5 | show: BooleanConstructor;
|
6 | loop: {
|
7 | type: BooleanConstructor;
|
8 | default: true;
|
9 | };
|
10 | images: {
|
11 | type: PropType<string[]>;
|
12 | default: () => never[];
|
13 | };
|
14 | minZoom: {
|
15 | type: (NumberConstructor | StringConstructor)[];
|
16 | default: number;
|
17 | };
|
18 | maxZoom: {
|
19 | type: (NumberConstructor | StringConstructor)[];
|
20 | default: number;
|
21 | };
|
22 | overlay: {
|
23 | type: BooleanConstructor;
|
24 | default: true;
|
25 | };
|
26 | vertical: BooleanConstructor;
|
27 | closeable: BooleanConstructor;
|
28 | showIndex: {
|
29 | type: BooleanConstructor;
|
30 | default: true;
|
31 | };
|
32 | className: PropType<unknown>;
|
33 | closeIcon: {
|
34 | type: PropType<string>;
|
35 | default: string;
|
36 | };
|
37 | transition: StringConstructor;
|
38 | beforeClose: PropType<Interceptor>;
|
39 | doubleScale: {
|
40 | type: BooleanConstructor;
|
41 | default: true;
|
42 | };
|
43 | overlayClass: PropType<unknown>;
|
44 | overlayStyle: PropType<CSSProperties>;
|
45 | swipeDuration: {
|
46 | type: (NumberConstructor | StringConstructor)[];
|
47 | default: number;
|
48 | };
|
49 | startPosition: {
|
50 | type: (NumberConstructor | StringConstructor)[];
|
51 | default: number;
|
52 | };
|
53 | showIndicators: BooleanConstructor;
|
54 | closeOnPopstate: {
|
55 | type: BooleanConstructor;
|
56 | default: true;
|
57 | };
|
58 | closeOnClickImage: {
|
59 | type: BooleanConstructor;
|
60 | default: true;
|
61 | };
|
62 | closeOnClickOverlay: {
|
63 | type: BooleanConstructor;
|
64 | default: true;
|
65 | };
|
66 | closeIconPosition: {
|
67 | type: PropType<PopupCloseIconPosition>;
|
68 | default: PopupCloseIconPosition;
|
69 | };
|
70 | teleport: PropType<TeleportProps["to"]>;
|
71 | };
|
72 | export type ImagePreviewProps = ExtractPropTypes<typeof imagePreviewProps>;
|
73 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
74 | show: BooleanConstructor;
|
75 | loop: {
|
76 | type: BooleanConstructor;
|
77 | default: true;
|
78 | };
|
79 | images: {
|
80 | type: PropType<string[]>;
|
81 | default: () => never[];
|
82 | };
|
83 | minZoom: {
|
84 | type: (NumberConstructor | StringConstructor)[];
|
85 | default: number;
|
86 | };
|
87 | maxZoom: {
|
88 | type: (NumberConstructor | StringConstructor)[];
|
89 | default: number;
|
90 | };
|
91 | overlay: {
|
92 | type: BooleanConstructor;
|
93 | default: true;
|
94 | };
|
95 | vertical: BooleanConstructor;
|
96 | closeable: BooleanConstructor;
|
97 | showIndex: {
|
98 | type: BooleanConstructor;
|
99 | default: true;
|
100 | };
|
101 | className: PropType<unknown>;
|
102 | closeIcon: {
|
103 | type: PropType<string>;
|
104 | default: string;
|
105 | };
|
106 | transition: StringConstructor;
|
107 | beforeClose: PropType<Interceptor>;
|
108 | doubleScale: {
|
109 | type: BooleanConstructor;
|
110 | default: true;
|
111 | };
|
112 | overlayClass: PropType<unknown>;
|
113 | overlayStyle: PropType<CSSProperties>;
|
114 | swipeDuration: {
|
115 | type: (NumberConstructor | StringConstructor)[];
|
116 | default: number;
|
117 | };
|
118 | startPosition: {
|
119 | type: (NumberConstructor | StringConstructor)[];
|
120 | default: number;
|
121 | };
|
122 | showIndicators: BooleanConstructor;
|
123 | closeOnPopstate: {
|
124 | type: BooleanConstructor;
|
125 | default: true;
|
126 | };
|
127 | closeOnClickImage: {
|
128 | type: BooleanConstructor;
|
129 | default: true;
|
130 | };
|
131 | closeOnClickOverlay: {
|
132 | type: BooleanConstructor;
|
133 | default: true;
|
134 | };
|
135 | closeIconPosition: {
|
136 | type: PropType<PopupCloseIconPosition>;
|
137 | default: PopupCloseIconPosition;
|
138 | };
|
139 | teleport: PropType<TeleportProps["to"]>;
|
140 | }>, () => 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<ExtractPropTypes<{
|
141 | show: BooleanConstructor;
|
142 | loop: {
|
143 | type: BooleanConstructor;
|
144 | default: true;
|
145 | };
|
146 | images: {
|
147 | type: PropType<string[]>;
|
148 | default: () => never[];
|
149 | };
|
150 | minZoom: {
|
151 | type: (NumberConstructor | StringConstructor)[];
|
152 | default: number;
|
153 | };
|
154 | maxZoom: {
|
155 | type: (NumberConstructor | StringConstructor)[];
|
156 | default: number;
|
157 | };
|
158 | overlay: {
|
159 | type: BooleanConstructor;
|
160 | default: true;
|
161 | };
|
162 | vertical: BooleanConstructor;
|
163 | closeable: BooleanConstructor;
|
164 | showIndex: {
|
165 | type: BooleanConstructor;
|
166 | default: true;
|
167 | };
|
168 | className: PropType<unknown>;
|
169 | closeIcon: {
|
170 | type: PropType<string>;
|
171 | default: string;
|
172 | };
|
173 | transition: StringConstructor;
|
174 | beforeClose: PropType<Interceptor>;
|
175 | doubleScale: {
|
176 | type: BooleanConstructor;
|
177 | default: true;
|
178 | };
|
179 | overlayClass: PropType<unknown>;
|
180 | overlayStyle: PropType<CSSProperties>;
|
181 | swipeDuration: {
|
182 | type: (NumberConstructor | StringConstructor)[];
|
183 | default: number;
|
184 | };
|
185 | startPosition: {
|
186 | type: (NumberConstructor | StringConstructor)[];
|
187 | default: number;
|
188 | };
|
189 | showIndicators: BooleanConstructor;
|
190 | closeOnPopstate: {
|
191 | type: BooleanConstructor;
|
192 | default: true;
|
193 | };
|
194 | closeOnClickImage: {
|
195 | type: BooleanConstructor;
|
196 | default: true;
|
197 | };
|
198 | closeOnClickOverlay: {
|
199 | type: BooleanConstructor;
|
200 | default: true;
|
201 | };
|
202 | closeIconPosition: {
|
203 | type: PropType<PopupCloseIconPosition>;
|
204 | default: PopupCloseIconPosition;
|
205 | };
|
206 | teleport: PropType<TeleportProps["to"]>;
|
207 | }>> & Readonly<{
|
208 | onChange?: ((...args: any[]) => any) | undefined;
|
209 | onClose?: ((...args: any[]) => any) | undefined;
|
210 | onClosed?: ((...args: any[]) => any) | undefined;
|
211 | "onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
212 | onScale?: ((...args: any[]) => any) | undefined;
|
213 | onLongPress?: ((...args: any[]) => any) | undefined;
|
214 | }>, {
|
215 | loop: boolean;
|
216 | overlay: boolean;
|
217 | show: boolean;
|
218 | vertical: boolean;
|
219 | closeOnClickOverlay: boolean;
|
220 | closeIcon: string;
|
221 | closeable: boolean;
|
222 | closeOnPopstate: boolean;
|
223 | closeIconPosition: PopupCloseIconPosition;
|
224 | swipeDuration: string | number;
|
225 | showIndicators: boolean;
|
226 | startPosition: string | number;
|
227 | minZoom: string | number;
|
228 | maxZoom: string | number;
|
229 | doubleScale: boolean;
|
230 | closeOnClickImage: boolean;
|
231 | images: string[];
|
232 | showIndex: boolean;
|
233 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
234 | export default _default;
|
235 |
|
\ | No newline at end of file |