delta-comic-core 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,51 +13,337 @@ declare function __VLS_template(): {
13
13
  slots: Readonly<{
14
14
  default(): void;
15
15
  smallTopInfo(): void;
16
+ cover(): void;
16
17
  }> & {
17
18
  default(): void;
18
19
  smallTopInfo(): void;
20
+ cover(): void;
19
21
  };
20
22
  refs: {
21
23
  container: HTMLDivElement;
22
- cover: {
24
+ cover: ({
23
25
  $: import('vue').ComponentInternalInstance;
24
26
  $data: {};
25
- $props: Partial<{
26
- fetchpriority: "high" | "low" | "auto";
27
- retryMax: number;
28
- }> & Omit<{
29
- readonly src?: uni.image.Image_;
30
- readonly alt?: string;
31
- readonly previewable?: boolean;
32
- readonly retryMax?: number;
33
- readonly round?: boolean;
34
- readonly fit?: import('naive-ui').ImageProps["objectFit"];
27
+ $props: {
28
+ readonly src?: uni.image.Image_ | undefined;
29
+ readonly alt?: string | undefined;
30
+ readonly previewable?: boolean | undefined;
31
+ readonly retryMax?: number | undefined;
32
+ readonly round?: boolean | undefined;
33
+ readonly fit?: "fill" | "none" | "contain" | "cover" | "scale-down" | undefined;
35
34
  readonly class?: any;
36
- readonly hideLoading?: boolean;
37
- readonly hideError?: boolean;
38
- readonly inline?: boolean;
35
+ readonly hideLoading?: boolean | undefined;
36
+ readonly hideError?: boolean | undefined;
37
+ readonly inline?: boolean | undefined;
39
38
  readonly style?: StyleValue;
40
- readonly imgProp?: import('vue').ImgHTMLAttributes;
39
+ readonly imgProp?: import('vue').ImgHTMLAttributes | undefined;
41
40
  readonly useList?: {
42
41
  loaded: Set<string>;
43
42
  error: Set<string>;
44
- };
45
- readonly fetchpriority?: "high" | "low" | "auto";
46
- readonly fallback?: uni.image.Image_;
47
- readonly onLoad?: (...args: any[]) => any;
48
- readonly onClick?: () => any;
49
- readonly onError?: () => any;
50
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "fetchpriority" | "retryMax">;
43
+ } | undefined;
44
+ readonly fetchpriority?: "high" | "low" | "auto" | undefined;
45
+ readonly fallback?: uni.image.Image_ | undefined;
46
+ readonly onLoad?: ((...args: any[]) => any) | undefined;
47
+ readonly onClick?: (() => any) | undefined;
48
+ readonly onError?: (() => any) | undefined;
49
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
51
50
  $attrs: {
52
51
  [x: string]: unknown;
53
52
  };
54
53
  $refs: {
55
54
  [x: string]: unknown;
56
55
  } & {
57
- img: unknown;
56
+ img: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
57
+ onPreviewPrev: import('vue').PropType<() => void>;
58
+ onPreviewNext: import('vue').PropType<() => void>;
59
+ showToolbar: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ showToolbarTooltip: BooleanConstructor;
64
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
65
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
66
+ toolbarIconColor: string;
67
+ toolbarColor: string;
68
+ toolbarBoxShadow: string;
69
+ toolbarBorderRadius: string;
70
+ }, {
71
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
72
+ borderRadius: string;
73
+ boxShadow: string;
74
+ color: string;
75
+ textColor: string;
76
+ padding: string;
77
+ }, {
78
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
79
+ fontSize: string;
80
+ borderRadius: string;
81
+ color: string;
82
+ dividerColor: string;
83
+ textColor: string;
84
+ boxShadow: string;
85
+ space: string;
86
+ spaceArrow: string;
87
+ arrowOffset: string;
88
+ arrowOffsetVertical: string;
89
+ arrowHeight: string;
90
+ padding: string;
91
+ }, any>;
92
+ }>;
93
+ }>>;
94
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
95
+ toolbarIconColor: string;
96
+ toolbarColor: string;
97
+ toolbarBoxShadow: string;
98
+ toolbarBorderRadius: string;
99
+ }, {
100
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
101
+ borderRadius: string;
102
+ boxShadow: string;
103
+ color: string;
104
+ textColor: string;
105
+ padding: string;
106
+ }, {
107
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
108
+ fontSize: string;
109
+ borderRadius: string;
110
+ color: string;
111
+ dividerColor: string;
112
+ textColor: string;
113
+ boxShadow: string;
114
+ space: string;
115
+ spaceArrow: string;
116
+ arrowOffset: string;
117
+ arrowOffsetVertical: string;
118
+ arrowHeight: string;
119
+ padding: string;
120
+ }, any>;
121
+ }>;
122
+ }>>>;
123
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
124
+ toolbarIconColor: string;
125
+ toolbarColor: string;
126
+ toolbarBoxShadow: string;
127
+ toolbarBorderRadius: string;
128
+ }, {
129
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
130
+ borderRadius: string;
131
+ boxShadow: string;
132
+ color: string;
133
+ textColor: string;
134
+ padding: string;
135
+ }, {
136
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
137
+ fontSize: string;
138
+ borderRadius: string;
139
+ color: string;
140
+ dividerColor: string;
141
+ textColor: string;
142
+ boxShadow: string;
143
+ space: string;
144
+ spaceArrow: string;
145
+ arrowOffset: string;
146
+ arrowOffsetVertical: string;
147
+ arrowHeight: string;
148
+ padding: string;
149
+ }, any>;
150
+ }>;
151
+ }>>>;
152
+ alt: StringConstructor;
153
+ height: import('vue').PropType<string | number>;
154
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
155
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
156
+ lazy: BooleanConstructor;
157
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
158
+ objectFit: {
159
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
160
+ default: string;
161
+ };
162
+ previewSrc: StringConstructor;
163
+ fallbackSrc: StringConstructor;
164
+ width: import('vue').PropType<string | number>;
165
+ src: StringConstructor;
166
+ previewDisabled: BooleanConstructor;
167
+ loadDescription: StringConstructor;
168
+ onError: import('vue').PropType<(e: Event) => void>;
169
+ onLoad: import('vue').PropType<(e: Event) => void>;
170
+ }>> & Readonly<{}>, {
171
+ click: () => void;
172
+ mergedClsPrefix: import('vue').Ref<string, string>;
173
+ groupId: string | undefined;
174
+ previewInstRef: import('vue').Ref<{
175
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
176
+ setPreviewSrc: (src?: string) => void;
177
+ toggleShow: () => void;
178
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
179
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
180
+ setPreviewSrc: (src?: string) => void;
181
+ toggleShow: () => void;
182
+ } | null>;
183
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
184
+ showError: import('vue').Ref<boolean, boolean>;
185
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
186
+ loaded: import('vue').Ref<boolean, boolean>;
187
+ mergedOnClick: (e: MouseEvent) => void;
188
+ mergedOnError: (e: Event) => void;
189
+ mergedOnLoad: (e: Event) => void;
190
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
191
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
192
+ lazy: boolean;
193
+ showToolbar: boolean;
194
+ showToolbarTooltip: boolean;
195
+ previewDisabled: boolean;
196
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
197
+ P: {};
198
+ B: {};
199
+ D: {};
200
+ C: {};
201
+ M: {};
202
+ Defaults: {};
203
+ }, Readonly<import('vue').ExtractPropTypes<{
204
+ onPreviewPrev: import('vue').PropType<() => void>;
205
+ onPreviewNext: import('vue').PropType<() => void>;
206
+ showToolbar: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ showToolbarTooltip: BooleanConstructor;
211
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
212
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
213
+ toolbarIconColor: string;
214
+ toolbarColor: string;
215
+ toolbarBoxShadow: string;
216
+ toolbarBorderRadius: string;
217
+ }, {
218
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
219
+ borderRadius: string;
220
+ boxShadow: string;
221
+ color: string;
222
+ textColor: string;
223
+ padding: string;
224
+ }, {
225
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
226
+ fontSize: string;
227
+ borderRadius: string;
228
+ color: string;
229
+ dividerColor: string;
230
+ textColor: string;
231
+ boxShadow: string;
232
+ space: string;
233
+ spaceArrow: string;
234
+ arrowOffset: string;
235
+ arrowOffsetVertical: string;
236
+ arrowHeight: string;
237
+ padding: string;
238
+ }, any>;
239
+ }>;
240
+ }>>;
241
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
242
+ toolbarIconColor: string;
243
+ toolbarColor: string;
244
+ toolbarBoxShadow: string;
245
+ toolbarBorderRadius: string;
246
+ }, {
247
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
248
+ borderRadius: string;
249
+ boxShadow: string;
250
+ color: string;
251
+ textColor: string;
252
+ padding: string;
253
+ }, {
254
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
255
+ fontSize: string;
256
+ borderRadius: string;
257
+ color: string;
258
+ dividerColor: string;
259
+ textColor: string;
260
+ boxShadow: string;
261
+ space: string;
262
+ spaceArrow: string;
263
+ arrowOffset: string;
264
+ arrowOffsetVertical: string;
265
+ arrowHeight: string;
266
+ padding: string;
267
+ }, any>;
268
+ }>;
269
+ }>>>;
270
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
271
+ toolbarIconColor: string;
272
+ toolbarColor: string;
273
+ toolbarBoxShadow: string;
274
+ toolbarBorderRadius: string;
275
+ }, {
276
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
277
+ borderRadius: string;
278
+ boxShadow: string;
279
+ color: string;
280
+ textColor: string;
281
+ padding: string;
282
+ }, {
283
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
284
+ fontSize: string;
285
+ borderRadius: string;
286
+ color: string;
287
+ dividerColor: string;
288
+ textColor: string;
289
+ boxShadow: string;
290
+ space: string;
291
+ spaceArrow: string;
292
+ arrowOffset: string;
293
+ arrowOffsetVertical: string;
294
+ arrowHeight: string;
295
+ padding: string;
296
+ }, any>;
297
+ }>;
298
+ }>>>;
299
+ alt: StringConstructor;
300
+ height: import('vue').PropType<string | number>;
301
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
302
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
303
+ lazy: BooleanConstructor;
304
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
305
+ objectFit: {
306
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
307
+ default: string;
308
+ };
309
+ previewSrc: StringConstructor;
310
+ fallbackSrc: StringConstructor;
311
+ width: import('vue').PropType<string | number>;
312
+ src: StringConstructor;
313
+ previewDisabled: BooleanConstructor;
314
+ loadDescription: StringConstructor;
315
+ onError: import('vue').PropType<(e: Event) => void>;
316
+ onLoad: import('vue').PropType<(e: Event) => void>;
317
+ }>> & Readonly<{}>, {
318
+ click: () => void;
319
+ mergedClsPrefix: import('vue').Ref<string, string>;
320
+ groupId: string | undefined;
321
+ previewInstRef: import('vue').Ref<{
322
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
323
+ setPreviewSrc: (src?: string) => void;
324
+ toggleShow: () => void;
325
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
326
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
327
+ setPreviewSrc: (src?: string) => void;
328
+ toggleShow: () => void;
329
+ } | null>;
330
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
331
+ showError: import('vue').Ref<boolean, boolean>;
332
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
333
+ loaded: import('vue').Ref<boolean, boolean>;
334
+ mergedOnClick: (e: MouseEvent) => void;
335
+ mergedOnError: (e: Event) => void;
336
+ mergedOnLoad: (e: Event) => void;
337
+ }, {}, {}, {}, {
338
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
339
+ lazy: boolean;
340
+ showToolbar: boolean;
341
+ showToolbarTooltip: boolean;
342
+ previewDisabled: boolean;
343
+ }> | null;
58
344
  };
59
345
  $slots: Readonly<{
60
- [name: string]: import('vue').Slot<any>;
346
+ [name: string]: import('vue').Slot<any> | undefined;
61
347
  }>;
62
348
  $root: import('vue').ComponentPublicInstance | null;
63
349
  $parent: import('vue').ComponentPublicInstance | null;
@@ -84,20 +370,307 @@ declare function __VLS_template(): {
84
370
  fetchpriority?: "high" | "low" | "auto";
85
371
  fallback?: uni.image.Image_;
86
372
  }> & Readonly<{
87
- onLoad?: (...args: any[]) => any;
88
- onClick?: () => any;
89
- onError?: () => any;
373
+ onLoad?: ((...args: any[]) => any) | undefined;
374
+ onClick?: (() => any) | undefined;
375
+ onError?: (() => any) | undefined;
90
376
  }>, {
91
377
  isLoaded: import('vue').ComputedRef<boolean>;
92
- imageEl: any;
93
- imageIns: unknown;
378
+ imageEl: HTMLImageElement | null | undefined;
379
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
380
+ onPreviewPrev: import('vue').PropType<() => void>;
381
+ onPreviewNext: import('vue').PropType<() => void>;
382
+ showToolbar: {
383
+ type: BooleanConstructor;
384
+ default: boolean;
385
+ };
386
+ showToolbarTooltip: BooleanConstructor;
387
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
388
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
389
+ toolbarIconColor: string;
390
+ toolbarColor: string;
391
+ toolbarBoxShadow: string;
392
+ toolbarBorderRadius: string;
393
+ }, {
394
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
395
+ borderRadius: string;
396
+ boxShadow: string;
397
+ color: string;
398
+ textColor: string;
399
+ padding: string;
400
+ }, {
401
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
402
+ fontSize: string;
403
+ borderRadius: string;
404
+ color: string;
405
+ dividerColor: string;
406
+ textColor: string;
407
+ boxShadow: string;
408
+ space: string;
409
+ spaceArrow: string;
410
+ arrowOffset: string;
411
+ arrowOffsetVertical: string;
412
+ arrowHeight: string;
413
+ padding: string;
414
+ }, any>;
415
+ }>;
416
+ }>>;
417
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
418
+ toolbarIconColor: string;
419
+ toolbarColor: string;
420
+ toolbarBoxShadow: string;
421
+ toolbarBorderRadius: string;
422
+ }, {
423
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
424
+ borderRadius: string;
425
+ boxShadow: string;
426
+ color: string;
427
+ textColor: string;
428
+ padding: string;
429
+ }, {
430
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
431
+ fontSize: string;
432
+ borderRadius: string;
433
+ color: string;
434
+ dividerColor: string;
435
+ textColor: string;
436
+ boxShadow: string;
437
+ space: string;
438
+ spaceArrow: string;
439
+ arrowOffset: string;
440
+ arrowOffsetVertical: string;
441
+ arrowHeight: string;
442
+ padding: string;
443
+ }, any>;
444
+ }>;
445
+ }>>>;
446
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
447
+ toolbarIconColor: string;
448
+ toolbarColor: string;
449
+ toolbarBoxShadow: string;
450
+ toolbarBorderRadius: string;
451
+ }, {
452
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
453
+ borderRadius: string;
454
+ boxShadow: string;
455
+ color: string;
456
+ textColor: string;
457
+ padding: string;
458
+ }, {
459
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
460
+ fontSize: string;
461
+ borderRadius: string;
462
+ color: string;
463
+ dividerColor: string;
464
+ textColor: string;
465
+ boxShadow: string;
466
+ space: string;
467
+ spaceArrow: string;
468
+ arrowOffset: string;
469
+ arrowOffsetVertical: string;
470
+ arrowHeight: string;
471
+ padding: string;
472
+ }, any>;
473
+ }>;
474
+ }>>>;
475
+ alt: StringConstructor;
476
+ height: import('vue').PropType<string | number>;
477
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
478
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
479
+ lazy: BooleanConstructor;
480
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
481
+ objectFit: {
482
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
483
+ default: string;
484
+ };
485
+ previewSrc: StringConstructor;
486
+ fallbackSrc: StringConstructor;
487
+ width: import('vue').PropType<string | number>;
488
+ src: StringConstructor;
489
+ previewDisabled: BooleanConstructor;
490
+ loadDescription: StringConstructor;
491
+ onError: import('vue').PropType<(e: Event) => void>;
492
+ onLoad: import('vue').PropType<(e: Event) => void>;
493
+ }>> & Readonly<{}>, {
494
+ click: () => void;
495
+ mergedClsPrefix: import('vue').Ref<string, string>;
496
+ groupId: string | undefined;
497
+ previewInstRef: import('vue').Ref<{
498
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
499
+ setPreviewSrc: (src?: string) => void;
500
+ toggleShow: () => void;
501
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
502
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
503
+ setPreviewSrc: (src?: string) => void;
504
+ toggleShow: () => void;
505
+ } | null>;
506
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
507
+ showError: import('vue').Ref<boolean, boolean>;
508
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
509
+ loaded: import('vue').Ref<boolean, boolean>;
510
+ mergedOnClick: (e: MouseEvent) => void;
511
+ mergedOnError: (e: Event) => void;
512
+ mergedOnLoad: (e: Event) => void;
513
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
514
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
515
+ lazy: boolean;
516
+ showToolbar: boolean;
517
+ showToolbarTooltip: boolean;
518
+ previewDisabled: boolean;
519
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
520
+ P: {};
521
+ B: {};
522
+ D: {};
523
+ C: {};
524
+ M: {};
525
+ Defaults: {};
526
+ }, Readonly<import('vue').ExtractPropTypes<{
527
+ onPreviewPrev: import('vue').PropType<() => void>;
528
+ onPreviewNext: import('vue').PropType<() => void>;
529
+ showToolbar: {
530
+ type: BooleanConstructor;
531
+ default: boolean;
532
+ };
533
+ showToolbarTooltip: BooleanConstructor;
534
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
535
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
536
+ toolbarIconColor: string;
537
+ toolbarColor: string;
538
+ toolbarBoxShadow: string;
539
+ toolbarBorderRadius: string;
540
+ }, {
541
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
542
+ borderRadius: string;
543
+ boxShadow: string;
544
+ color: string;
545
+ textColor: string;
546
+ padding: string;
547
+ }, {
548
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
549
+ fontSize: string;
550
+ borderRadius: string;
551
+ color: string;
552
+ dividerColor: string;
553
+ textColor: string;
554
+ boxShadow: string;
555
+ space: string;
556
+ spaceArrow: string;
557
+ arrowOffset: string;
558
+ arrowOffsetVertical: string;
559
+ arrowHeight: string;
560
+ padding: string;
561
+ }, any>;
562
+ }>;
563
+ }>>;
564
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
565
+ toolbarIconColor: string;
566
+ toolbarColor: string;
567
+ toolbarBoxShadow: string;
568
+ toolbarBorderRadius: string;
569
+ }, {
570
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
571
+ borderRadius: string;
572
+ boxShadow: string;
573
+ color: string;
574
+ textColor: string;
575
+ padding: string;
576
+ }, {
577
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
578
+ fontSize: string;
579
+ borderRadius: string;
580
+ color: string;
581
+ dividerColor: string;
582
+ textColor: string;
583
+ boxShadow: string;
584
+ space: string;
585
+ spaceArrow: string;
586
+ arrowOffset: string;
587
+ arrowOffsetVertical: string;
588
+ arrowHeight: string;
589
+ padding: string;
590
+ }, any>;
591
+ }>;
592
+ }>>>;
593
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
594
+ toolbarIconColor: string;
595
+ toolbarColor: string;
596
+ toolbarBoxShadow: string;
597
+ toolbarBorderRadius: string;
598
+ }, {
599
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
600
+ borderRadius: string;
601
+ boxShadow: string;
602
+ color: string;
603
+ textColor: string;
604
+ padding: string;
605
+ }, {
606
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
607
+ fontSize: string;
608
+ borderRadius: string;
609
+ color: string;
610
+ dividerColor: string;
611
+ textColor: string;
612
+ boxShadow: string;
613
+ space: string;
614
+ spaceArrow: string;
615
+ arrowOffset: string;
616
+ arrowOffsetVertical: string;
617
+ arrowHeight: string;
618
+ padding: string;
619
+ }, any>;
620
+ }>;
621
+ }>>>;
622
+ alt: StringConstructor;
623
+ height: import('vue').PropType<string | number>;
624
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
625
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
626
+ lazy: BooleanConstructor;
627
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
628
+ objectFit: {
629
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
630
+ default: string;
631
+ };
632
+ previewSrc: StringConstructor;
633
+ fallbackSrc: StringConstructor;
634
+ width: import('vue').PropType<string | number>;
635
+ src: StringConstructor;
636
+ previewDisabled: BooleanConstructor;
637
+ loadDescription: StringConstructor;
638
+ onError: import('vue').PropType<(e: Event) => void>;
639
+ onLoad: import('vue').PropType<(e: Event) => void>;
640
+ }>> & Readonly<{}>, {
641
+ click: () => void;
642
+ mergedClsPrefix: import('vue').Ref<string, string>;
643
+ groupId: string | undefined;
644
+ previewInstRef: import('vue').Ref<{
645
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
646
+ setPreviewSrc: (src?: string) => void;
647
+ toggleShow: () => void;
648
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
649
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
650
+ setPreviewSrc: (src?: string) => void;
651
+ toggleShow: () => void;
652
+ } | null>;
653
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
654
+ showError: import('vue').Ref<boolean, boolean>;
655
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
656
+ loaded: import('vue').Ref<boolean, boolean>;
657
+ mergedOnClick: (e: MouseEvent) => void;
658
+ mergedOnError: (e: Event) => void;
659
+ mergedOnLoad: (e: Event) => void;
660
+ }, {}, {}, {}, {
661
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
662
+ lazy: boolean;
663
+ showToolbar: boolean;
664
+ showToolbarTooltip: boolean;
665
+ previewDisabled: boolean;
666
+ }> | null;
94
667
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
95
668
  load: (...args: any[]) => any;
96
669
  click: () => any;
97
670
  error: () => any;
98
671
  }, string, {
99
- fetchpriority: "high" | "low" | "auto";
100
672
  retryMax: number;
673
+ fetchpriority: "high" | "low" | "auto";
101
674
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
102
675
  beforeCreate?: (() => void) | (() => void)[];
103
676
  created?: (() => void) | (() => void)[];
@@ -119,8 +692,8 @@ declare function __VLS_template(): {
119
692
  $nextTick: typeof import('vue').nextTick;
120
693
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
121
694
  } & Readonly<{
122
- fetchpriority: "high" | "low" | "auto";
123
695
  retryMax: number;
696
+ fetchpriority: "high" | "low" | "auto";
124
697
  }> & Omit<Readonly<{
125
698
  src?: uni.image.Image_;
126
699
  alt?: string;
@@ -141,13 +714,300 @@ declare function __VLS_template(): {
141
714
  fetchpriority?: "high" | "low" | "auto";
142
715
  fallback?: uni.image.Image_;
143
716
  }> & Readonly<{
144
- onLoad?: (...args: any[]) => any;
145
- onClick?: () => any;
146
- onError?: () => any;
147
- }>, ("fetchpriority" | "retryMax") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
717
+ onLoad?: ((...args: any[]) => any) | undefined;
718
+ onClick?: (() => any) | undefined;
719
+ onError?: (() => any) | undefined;
720
+ }>, ("retryMax" | "fetchpriority") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
148
721
  isLoaded: import('vue').ComputedRef<boolean>;
149
- imageEl: any;
150
- imageIns: unknown;
722
+ imageEl: HTMLImageElement | null | undefined;
723
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
724
+ onPreviewPrev: import('vue').PropType<() => void>;
725
+ onPreviewNext: import('vue').PropType<() => void>;
726
+ showToolbar: {
727
+ type: BooleanConstructor;
728
+ default: boolean;
729
+ };
730
+ showToolbarTooltip: BooleanConstructor;
731
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
732
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
733
+ toolbarIconColor: string;
734
+ toolbarColor: string;
735
+ toolbarBoxShadow: string;
736
+ toolbarBorderRadius: string;
737
+ }, {
738
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
739
+ borderRadius: string;
740
+ boxShadow: string;
741
+ color: string;
742
+ textColor: string;
743
+ padding: string;
744
+ }, {
745
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
746
+ fontSize: string;
747
+ borderRadius: string;
748
+ color: string;
749
+ dividerColor: string;
750
+ textColor: string;
751
+ boxShadow: string;
752
+ space: string;
753
+ spaceArrow: string;
754
+ arrowOffset: string;
755
+ arrowOffsetVertical: string;
756
+ arrowHeight: string;
757
+ padding: string;
758
+ }, any>;
759
+ }>;
760
+ }>>;
761
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
762
+ toolbarIconColor: string;
763
+ toolbarColor: string;
764
+ toolbarBoxShadow: string;
765
+ toolbarBorderRadius: string;
766
+ }, {
767
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
768
+ borderRadius: string;
769
+ boxShadow: string;
770
+ color: string;
771
+ textColor: string;
772
+ padding: string;
773
+ }, {
774
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
775
+ fontSize: string;
776
+ borderRadius: string;
777
+ color: string;
778
+ dividerColor: string;
779
+ textColor: string;
780
+ boxShadow: string;
781
+ space: string;
782
+ spaceArrow: string;
783
+ arrowOffset: string;
784
+ arrowOffsetVertical: string;
785
+ arrowHeight: string;
786
+ padding: string;
787
+ }, any>;
788
+ }>;
789
+ }>>>;
790
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
791
+ toolbarIconColor: string;
792
+ toolbarColor: string;
793
+ toolbarBoxShadow: string;
794
+ toolbarBorderRadius: string;
795
+ }, {
796
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
797
+ borderRadius: string;
798
+ boxShadow: string;
799
+ color: string;
800
+ textColor: string;
801
+ padding: string;
802
+ }, {
803
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
804
+ fontSize: string;
805
+ borderRadius: string;
806
+ color: string;
807
+ dividerColor: string;
808
+ textColor: string;
809
+ boxShadow: string;
810
+ space: string;
811
+ spaceArrow: string;
812
+ arrowOffset: string;
813
+ arrowOffsetVertical: string;
814
+ arrowHeight: string;
815
+ padding: string;
816
+ }, any>;
817
+ }>;
818
+ }>>>;
819
+ alt: StringConstructor;
820
+ height: import('vue').PropType<string | number>;
821
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
822
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
823
+ lazy: BooleanConstructor;
824
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
825
+ objectFit: {
826
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
827
+ default: string;
828
+ };
829
+ previewSrc: StringConstructor;
830
+ fallbackSrc: StringConstructor;
831
+ width: import('vue').PropType<string | number>;
832
+ src: StringConstructor;
833
+ previewDisabled: BooleanConstructor;
834
+ loadDescription: StringConstructor;
835
+ onError: import('vue').PropType<(e: Event) => void>;
836
+ onLoad: import('vue').PropType<(e: Event) => void>;
837
+ }>> & Readonly<{}>, {
838
+ click: () => void;
839
+ mergedClsPrefix: import('vue').Ref<string, string>;
840
+ groupId: string | undefined;
841
+ previewInstRef: import('vue').Ref<{
842
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
843
+ setPreviewSrc: (src?: string) => void;
844
+ toggleShow: () => void;
845
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
846
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
847
+ setPreviewSrc: (src?: string) => void;
848
+ toggleShow: () => void;
849
+ } | null>;
850
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
851
+ showError: import('vue').Ref<boolean, boolean>;
852
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
853
+ loaded: import('vue').Ref<boolean, boolean>;
854
+ mergedOnClick: (e: MouseEvent) => void;
855
+ mergedOnError: (e: Event) => void;
856
+ mergedOnLoad: (e: Event) => void;
857
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
858
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
859
+ lazy: boolean;
860
+ showToolbar: boolean;
861
+ showToolbarTooltip: boolean;
862
+ previewDisabled: boolean;
863
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
864
+ P: {};
865
+ B: {};
866
+ D: {};
867
+ C: {};
868
+ M: {};
869
+ Defaults: {};
870
+ }, Readonly<import('vue').ExtractPropTypes<{
871
+ onPreviewPrev: import('vue').PropType<() => void>;
872
+ onPreviewNext: import('vue').PropType<() => void>;
873
+ showToolbar: {
874
+ type: BooleanConstructor;
875
+ default: boolean;
876
+ };
877
+ showToolbarTooltip: BooleanConstructor;
878
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
879
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
880
+ toolbarIconColor: string;
881
+ toolbarColor: string;
882
+ toolbarBoxShadow: string;
883
+ toolbarBorderRadius: string;
884
+ }, {
885
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
886
+ borderRadius: string;
887
+ boxShadow: string;
888
+ color: string;
889
+ textColor: string;
890
+ padding: string;
891
+ }, {
892
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
893
+ fontSize: string;
894
+ borderRadius: string;
895
+ color: string;
896
+ dividerColor: string;
897
+ textColor: string;
898
+ boxShadow: string;
899
+ space: string;
900
+ spaceArrow: string;
901
+ arrowOffset: string;
902
+ arrowOffsetVertical: string;
903
+ arrowHeight: string;
904
+ padding: string;
905
+ }, any>;
906
+ }>;
907
+ }>>;
908
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
909
+ toolbarIconColor: string;
910
+ toolbarColor: string;
911
+ toolbarBoxShadow: string;
912
+ toolbarBorderRadius: string;
913
+ }, {
914
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
915
+ borderRadius: string;
916
+ boxShadow: string;
917
+ color: string;
918
+ textColor: string;
919
+ padding: string;
920
+ }, {
921
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
922
+ fontSize: string;
923
+ borderRadius: string;
924
+ color: string;
925
+ dividerColor: string;
926
+ textColor: string;
927
+ boxShadow: string;
928
+ space: string;
929
+ spaceArrow: string;
930
+ arrowOffset: string;
931
+ arrowOffsetVertical: string;
932
+ arrowHeight: string;
933
+ padding: string;
934
+ }, any>;
935
+ }>;
936
+ }>>>;
937
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
938
+ toolbarIconColor: string;
939
+ toolbarColor: string;
940
+ toolbarBoxShadow: string;
941
+ toolbarBorderRadius: string;
942
+ }, {
943
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
944
+ borderRadius: string;
945
+ boxShadow: string;
946
+ color: string;
947
+ textColor: string;
948
+ padding: string;
949
+ }, {
950
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
951
+ fontSize: string;
952
+ borderRadius: string;
953
+ color: string;
954
+ dividerColor: string;
955
+ textColor: string;
956
+ boxShadow: string;
957
+ space: string;
958
+ spaceArrow: string;
959
+ arrowOffset: string;
960
+ arrowOffsetVertical: string;
961
+ arrowHeight: string;
962
+ padding: string;
963
+ }, any>;
964
+ }>;
965
+ }>>>;
966
+ alt: StringConstructor;
967
+ height: import('vue').PropType<string | number>;
968
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
969
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
970
+ lazy: BooleanConstructor;
971
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
972
+ objectFit: {
973
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
974
+ default: string;
975
+ };
976
+ previewSrc: StringConstructor;
977
+ fallbackSrc: StringConstructor;
978
+ width: import('vue').PropType<string | number>;
979
+ src: StringConstructor;
980
+ previewDisabled: BooleanConstructor;
981
+ loadDescription: StringConstructor;
982
+ onError: import('vue').PropType<(e: Event) => void>;
983
+ onLoad: import('vue').PropType<(e: Event) => void>;
984
+ }>> & Readonly<{}>, {
985
+ click: () => void;
986
+ mergedClsPrefix: import('vue').Ref<string, string>;
987
+ groupId: string | undefined;
988
+ previewInstRef: import('vue').Ref<{
989
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
990
+ setPreviewSrc: (src?: string) => void;
991
+ toggleShow: () => void;
992
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
993
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
994
+ setPreviewSrc: (src?: string) => void;
995
+ toggleShow: () => void;
996
+ } | null>;
997
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
998
+ showError: import('vue').Ref<boolean, boolean>;
999
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1000
+ loaded: import('vue').Ref<boolean, boolean>;
1001
+ mergedOnClick: (e: MouseEvent) => void;
1002
+ mergedOnError: (e: Event) => void;
1003
+ mergedOnLoad: (e: Event) => void;
1004
+ }, {}, {}, {}, {
1005
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1006
+ lazy: boolean;
1007
+ showToolbar: boolean;
1008
+ showToolbarTooltip: boolean;
1009
+ previewDisabled: boolean;
1010
+ }> | null;
151
1011
  }> & {} & import('vue').ComponentCustomProperties & {} & {
152
1012
  $slots: Readonly<{
153
1013
  loading?(): any;
@@ -156,7 +1016,7 @@ declare function __VLS_template(): {
156
1016
  loading?(): any;
157
1017
  fail?(): any;
158
1018
  };
159
- };
1019
+ }) | null;
160
1020
  };
161
1021
  rootEl: any;
162
1022
  };
@@ -164,50 +1024,334 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
164
1024
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
165
1025
  click: () => any;
166
1026
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
167
- onClick?: () => any;
1027
+ onClick?: (() => any) | undefined;
168
1028
  }>, {
169
1029
  type: "default" | "big" | "small";
170
1030
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
171
1031
  container: HTMLDivElement;
172
- cover: {
1032
+ cover: ({
173
1033
  $: import('vue').ComponentInternalInstance;
174
1034
  $data: {};
175
- $props: Partial<{
176
- fetchpriority: "high" | "low" | "auto";
177
- retryMax: number;
178
- }> & Omit<{
179
- readonly src?: uni.image.Image_;
180
- readonly alt?: string;
181
- readonly previewable?: boolean;
182
- readonly retryMax?: number;
183
- readonly round?: boolean;
184
- readonly fit?: import('naive-ui').ImageProps["objectFit"];
1035
+ $props: {
1036
+ readonly src?: uni.image.Image_ | undefined;
1037
+ readonly alt?: string | undefined;
1038
+ readonly previewable?: boolean | undefined;
1039
+ readonly retryMax?: number | undefined;
1040
+ readonly round?: boolean | undefined;
1041
+ readonly fit?: "fill" | "none" | "contain" | "cover" | "scale-down" | undefined;
185
1042
  readonly class?: any;
186
- readonly hideLoading?: boolean;
187
- readonly hideError?: boolean;
188
- readonly inline?: boolean;
1043
+ readonly hideLoading?: boolean | undefined;
1044
+ readonly hideError?: boolean | undefined;
1045
+ readonly inline?: boolean | undefined;
189
1046
  readonly style?: StyleValue;
190
- readonly imgProp?: import('vue').ImgHTMLAttributes;
1047
+ readonly imgProp?: import('vue').ImgHTMLAttributes | undefined;
191
1048
  readonly useList?: {
192
1049
  loaded: Set<string>;
193
1050
  error: Set<string>;
194
- };
195
- readonly fetchpriority?: "high" | "low" | "auto";
196
- readonly fallback?: uni.image.Image_;
197
- readonly onLoad?: (...args: any[]) => any;
198
- readonly onClick?: () => any;
199
- readonly onError?: () => any;
200
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "fetchpriority" | "retryMax">;
1051
+ } | undefined;
1052
+ readonly fetchpriority?: "high" | "low" | "auto" | undefined;
1053
+ readonly fallback?: uni.image.Image_ | undefined;
1054
+ readonly onLoad?: ((...args: any[]) => any) | undefined;
1055
+ readonly onClick?: (() => any) | undefined;
1056
+ readonly onError?: (() => any) | undefined;
1057
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
201
1058
  $attrs: {
202
1059
  [x: string]: unknown;
203
1060
  };
204
1061
  $refs: {
205
1062
  [x: string]: unknown;
206
1063
  } & {
207
- img: unknown;
1064
+ img: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1065
+ onPreviewPrev: import('vue').PropType<() => void>;
1066
+ onPreviewNext: import('vue').PropType<() => void>;
1067
+ showToolbar: {
1068
+ type: BooleanConstructor;
1069
+ default: boolean;
1070
+ };
1071
+ showToolbarTooltip: BooleanConstructor;
1072
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1073
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1074
+ toolbarIconColor: string;
1075
+ toolbarColor: string;
1076
+ toolbarBoxShadow: string;
1077
+ toolbarBorderRadius: string;
1078
+ }, {
1079
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1080
+ borderRadius: string;
1081
+ boxShadow: string;
1082
+ color: string;
1083
+ textColor: string;
1084
+ padding: string;
1085
+ }, {
1086
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1087
+ fontSize: string;
1088
+ borderRadius: string;
1089
+ color: string;
1090
+ dividerColor: string;
1091
+ textColor: string;
1092
+ boxShadow: string;
1093
+ space: string;
1094
+ spaceArrow: string;
1095
+ arrowOffset: string;
1096
+ arrowOffsetVertical: string;
1097
+ arrowHeight: string;
1098
+ padding: string;
1099
+ }, any>;
1100
+ }>;
1101
+ }>>;
1102
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1103
+ toolbarIconColor: string;
1104
+ toolbarColor: string;
1105
+ toolbarBoxShadow: string;
1106
+ toolbarBorderRadius: string;
1107
+ }, {
1108
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1109
+ borderRadius: string;
1110
+ boxShadow: string;
1111
+ color: string;
1112
+ textColor: string;
1113
+ padding: string;
1114
+ }, {
1115
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1116
+ fontSize: string;
1117
+ borderRadius: string;
1118
+ color: string;
1119
+ dividerColor: string;
1120
+ textColor: string;
1121
+ boxShadow: string;
1122
+ space: string;
1123
+ spaceArrow: string;
1124
+ arrowOffset: string;
1125
+ arrowOffsetVertical: string;
1126
+ arrowHeight: string;
1127
+ padding: string;
1128
+ }, any>;
1129
+ }>;
1130
+ }>>>;
1131
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1132
+ toolbarIconColor: string;
1133
+ toolbarColor: string;
1134
+ toolbarBoxShadow: string;
1135
+ toolbarBorderRadius: string;
1136
+ }, {
1137
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1138
+ borderRadius: string;
1139
+ boxShadow: string;
1140
+ color: string;
1141
+ textColor: string;
1142
+ padding: string;
1143
+ }, {
1144
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1145
+ fontSize: string;
1146
+ borderRadius: string;
1147
+ color: string;
1148
+ dividerColor: string;
1149
+ textColor: string;
1150
+ boxShadow: string;
1151
+ space: string;
1152
+ spaceArrow: string;
1153
+ arrowOffset: string;
1154
+ arrowOffsetVertical: string;
1155
+ arrowHeight: string;
1156
+ padding: string;
1157
+ }, any>;
1158
+ }>;
1159
+ }>>>;
1160
+ alt: StringConstructor;
1161
+ height: import('vue').PropType<string | number>;
1162
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1163
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1164
+ lazy: BooleanConstructor;
1165
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1166
+ objectFit: {
1167
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1168
+ default: string;
1169
+ };
1170
+ previewSrc: StringConstructor;
1171
+ fallbackSrc: StringConstructor;
1172
+ width: import('vue').PropType<string | number>;
1173
+ src: StringConstructor;
1174
+ previewDisabled: BooleanConstructor;
1175
+ loadDescription: StringConstructor;
1176
+ onError: import('vue').PropType<(e: Event) => void>;
1177
+ onLoad: import('vue').PropType<(e: Event) => void>;
1178
+ }>> & Readonly<{}>, {
1179
+ click: () => void;
1180
+ mergedClsPrefix: import('vue').Ref<string, string>;
1181
+ groupId: string | undefined;
1182
+ previewInstRef: import('vue').Ref<{
1183
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1184
+ setPreviewSrc: (src?: string) => void;
1185
+ toggleShow: () => void;
1186
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1187
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1188
+ setPreviewSrc: (src?: string) => void;
1189
+ toggleShow: () => void;
1190
+ } | null>;
1191
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1192
+ showError: import('vue').Ref<boolean, boolean>;
1193
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1194
+ loaded: import('vue').Ref<boolean, boolean>;
1195
+ mergedOnClick: (e: MouseEvent) => void;
1196
+ mergedOnError: (e: Event) => void;
1197
+ mergedOnLoad: (e: Event) => void;
1198
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1199
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1200
+ lazy: boolean;
1201
+ showToolbar: boolean;
1202
+ showToolbarTooltip: boolean;
1203
+ previewDisabled: boolean;
1204
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1205
+ P: {};
1206
+ B: {};
1207
+ D: {};
1208
+ C: {};
1209
+ M: {};
1210
+ Defaults: {};
1211
+ }, Readonly<import('vue').ExtractPropTypes<{
1212
+ onPreviewPrev: import('vue').PropType<() => void>;
1213
+ onPreviewNext: import('vue').PropType<() => void>;
1214
+ showToolbar: {
1215
+ type: BooleanConstructor;
1216
+ default: boolean;
1217
+ };
1218
+ showToolbarTooltip: BooleanConstructor;
1219
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1220
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1221
+ toolbarIconColor: string;
1222
+ toolbarColor: string;
1223
+ toolbarBoxShadow: string;
1224
+ toolbarBorderRadius: string;
1225
+ }, {
1226
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1227
+ borderRadius: string;
1228
+ boxShadow: string;
1229
+ color: string;
1230
+ textColor: string;
1231
+ padding: string;
1232
+ }, {
1233
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1234
+ fontSize: string;
1235
+ borderRadius: string;
1236
+ color: string;
1237
+ dividerColor: string;
1238
+ textColor: string;
1239
+ boxShadow: string;
1240
+ space: string;
1241
+ spaceArrow: string;
1242
+ arrowOffset: string;
1243
+ arrowOffsetVertical: string;
1244
+ arrowHeight: string;
1245
+ padding: string;
1246
+ }, any>;
1247
+ }>;
1248
+ }>>;
1249
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1250
+ toolbarIconColor: string;
1251
+ toolbarColor: string;
1252
+ toolbarBoxShadow: string;
1253
+ toolbarBorderRadius: string;
1254
+ }, {
1255
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1256
+ borderRadius: string;
1257
+ boxShadow: string;
1258
+ color: string;
1259
+ textColor: string;
1260
+ padding: string;
1261
+ }, {
1262
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1263
+ fontSize: string;
1264
+ borderRadius: string;
1265
+ color: string;
1266
+ dividerColor: string;
1267
+ textColor: string;
1268
+ boxShadow: string;
1269
+ space: string;
1270
+ spaceArrow: string;
1271
+ arrowOffset: string;
1272
+ arrowOffsetVertical: string;
1273
+ arrowHeight: string;
1274
+ padding: string;
1275
+ }, any>;
1276
+ }>;
1277
+ }>>>;
1278
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1279
+ toolbarIconColor: string;
1280
+ toolbarColor: string;
1281
+ toolbarBoxShadow: string;
1282
+ toolbarBorderRadius: string;
1283
+ }, {
1284
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1285
+ borderRadius: string;
1286
+ boxShadow: string;
1287
+ color: string;
1288
+ textColor: string;
1289
+ padding: string;
1290
+ }, {
1291
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1292
+ fontSize: string;
1293
+ borderRadius: string;
1294
+ color: string;
1295
+ dividerColor: string;
1296
+ textColor: string;
1297
+ boxShadow: string;
1298
+ space: string;
1299
+ spaceArrow: string;
1300
+ arrowOffset: string;
1301
+ arrowOffsetVertical: string;
1302
+ arrowHeight: string;
1303
+ padding: string;
1304
+ }, any>;
1305
+ }>;
1306
+ }>>>;
1307
+ alt: StringConstructor;
1308
+ height: import('vue').PropType<string | number>;
1309
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1310
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1311
+ lazy: BooleanConstructor;
1312
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1313
+ objectFit: {
1314
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1315
+ default: string;
1316
+ };
1317
+ previewSrc: StringConstructor;
1318
+ fallbackSrc: StringConstructor;
1319
+ width: import('vue').PropType<string | number>;
1320
+ src: StringConstructor;
1321
+ previewDisabled: BooleanConstructor;
1322
+ loadDescription: StringConstructor;
1323
+ onError: import('vue').PropType<(e: Event) => void>;
1324
+ onLoad: import('vue').PropType<(e: Event) => void>;
1325
+ }>> & Readonly<{}>, {
1326
+ click: () => void;
1327
+ mergedClsPrefix: import('vue').Ref<string, string>;
1328
+ groupId: string | undefined;
1329
+ previewInstRef: import('vue').Ref<{
1330
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1331
+ setPreviewSrc: (src?: string) => void;
1332
+ toggleShow: () => void;
1333
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1334
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1335
+ setPreviewSrc: (src?: string) => void;
1336
+ toggleShow: () => void;
1337
+ } | null>;
1338
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1339
+ showError: import('vue').Ref<boolean, boolean>;
1340
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1341
+ loaded: import('vue').Ref<boolean, boolean>;
1342
+ mergedOnClick: (e: MouseEvent) => void;
1343
+ mergedOnError: (e: Event) => void;
1344
+ mergedOnLoad: (e: Event) => void;
1345
+ }, {}, {}, {}, {
1346
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1347
+ lazy: boolean;
1348
+ showToolbar: boolean;
1349
+ showToolbarTooltip: boolean;
1350
+ previewDisabled: boolean;
1351
+ }> | null;
208
1352
  };
209
1353
  $slots: Readonly<{
210
- [name: string]: import('vue').Slot<any>;
1354
+ [name: string]: import('vue').Slot<any> | undefined;
211
1355
  }>;
212
1356
  $root: import('vue').ComponentPublicInstance | null;
213
1357
  $parent: import('vue').ComponentPublicInstance | null;
@@ -234,20 +1378,307 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
234
1378
  fetchpriority?: "high" | "low" | "auto";
235
1379
  fallback?: uni.image.Image_;
236
1380
  }> & Readonly<{
237
- onLoad?: (...args: any[]) => any;
238
- onClick?: () => any;
239
- onError?: () => any;
1381
+ onLoad?: ((...args: any[]) => any) | undefined;
1382
+ onClick?: (() => any) | undefined;
1383
+ onError?: (() => any) | undefined;
240
1384
  }>, {
241
1385
  isLoaded: import('vue').ComputedRef<boolean>;
242
- imageEl: any;
243
- imageIns: unknown;
1386
+ imageEl: HTMLImageElement | null | undefined;
1387
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1388
+ onPreviewPrev: import('vue').PropType<() => void>;
1389
+ onPreviewNext: import('vue').PropType<() => void>;
1390
+ showToolbar: {
1391
+ type: BooleanConstructor;
1392
+ default: boolean;
1393
+ };
1394
+ showToolbarTooltip: BooleanConstructor;
1395
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1396
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1397
+ toolbarIconColor: string;
1398
+ toolbarColor: string;
1399
+ toolbarBoxShadow: string;
1400
+ toolbarBorderRadius: string;
1401
+ }, {
1402
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1403
+ borderRadius: string;
1404
+ boxShadow: string;
1405
+ color: string;
1406
+ textColor: string;
1407
+ padding: string;
1408
+ }, {
1409
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1410
+ fontSize: string;
1411
+ borderRadius: string;
1412
+ color: string;
1413
+ dividerColor: string;
1414
+ textColor: string;
1415
+ boxShadow: string;
1416
+ space: string;
1417
+ spaceArrow: string;
1418
+ arrowOffset: string;
1419
+ arrowOffsetVertical: string;
1420
+ arrowHeight: string;
1421
+ padding: string;
1422
+ }, any>;
1423
+ }>;
1424
+ }>>;
1425
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1426
+ toolbarIconColor: string;
1427
+ toolbarColor: string;
1428
+ toolbarBoxShadow: string;
1429
+ toolbarBorderRadius: string;
1430
+ }, {
1431
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1432
+ borderRadius: string;
1433
+ boxShadow: string;
1434
+ color: string;
1435
+ textColor: string;
1436
+ padding: string;
1437
+ }, {
1438
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1439
+ fontSize: string;
1440
+ borderRadius: string;
1441
+ color: string;
1442
+ dividerColor: string;
1443
+ textColor: string;
1444
+ boxShadow: string;
1445
+ space: string;
1446
+ spaceArrow: string;
1447
+ arrowOffset: string;
1448
+ arrowOffsetVertical: string;
1449
+ arrowHeight: string;
1450
+ padding: string;
1451
+ }, any>;
1452
+ }>;
1453
+ }>>>;
1454
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1455
+ toolbarIconColor: string;
1456
+ toolbarColor: string;
1457
+ toolbarBoxShadow: string;
1458
+ toolbarBorderRadius: string;
1459
+ }, {
1460
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1461
+ borderRadius: string;
1462
+ boxShadow: string;
1463
+ color: string;
1464
+ textColor: string;
1465
+ padding: string;
1466
+ }, {
1467
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1468
+ fontSize: string;
1469
+ borderRadius: string;
1470
+ color: string;
1471
+ dividerColor: string;
1472
+ textColor: string;
1473
+ boxShadow: string;
1474
+ space: string;
1475
+ spaceArrow: string;
1476
+ arrowOffset: string;
1477
+ arrowOffsetVertical: string;
1478
+ arrowHeight: string;
1479
+ padding: string;
1480
+ }, any>;
1481
+ }>;
1482
+ }>>>;
1483
+ alt: StringConstructor;
1484
+ height: import('vue').PropType<string | number>;
1485
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1486
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1487
+ lazy: BooleanConstructor;
1488
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1489
+ objectFit: {
1490
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1491
+ default: string;
1492
+ };
1493
+ previewSrc: StringConstructor;
1494
+ fallbackSrc: StringConstructor;
1495
+ width: import('vue').PropType<string | number>;
1496
+ src: StringConstructor;
1497
+ previewDisabled: BooleanConstructor;
1498
+ loadDescription: StringConstructor;
1499
+ onError: import('vue').PropType<(e: Event) => void>;
1500
+ onLoad: import('vue').PropType<(e: Event) => void>;
1501
+ }>> & Readonly<{}>, {
1502
+ click: () => void;
1503
+ mergedClsPrefix: import('vue').Ref<string, string>;
1504
+ groupId: string | undefined;
1505
+ previewInstRef: import('vue').Ref<{
1506
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1507
+ setPreviewSrc: (src?: string) => void;
1508
+ toggleShow: () => void;
1509
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1510
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1511
+ setPreviewSrc: (src?: string) => void;
1512
+ toggleShow: () => void;
1513
+ } | null>;
1514
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1515
+ showError: import('vue').Ref<boolean, boolean>;
1516
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1517
+ loaded: import('vue').Ref<boolean, boolean>;
1518
+ mergedOnClick: (e: MouseEvent) => void;
1519
+ mergedOnError: (e: Event) => void;
1520
+ mergedOnLoad: (e: Event) => void;
1521
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1522
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1523
+ lazy: boolean;
1524
+ showToolbar: boolean;
1525
+ showToolbarTooltip: boolean;
1526
+ previewDisabled: boolean;
1527
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1528
+ P: {};
1529
+ B: {};
1530
+ D: {};
1531
+ C: {};
1532
+ M: {};
1533
+ Defaults: {};
1534
+ }, Readonly<import('vue').ExtractPropTypes<{
1535
+ onPreviewPrev: import('vue').PropType<() => void>;
1536
+ onPreviewNext: import('vue').PropType<() => void>;
1537
+ showToolbar: {
1538
+ type: BooleanConstructor;
1539
+ default: boolean;
1540
+ };
1541
+ showToolbarTooltip: BooleanConstructor;
1542
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1543
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1544
+ toolbarIconColor: string;
1545
+ toolbarColor: string;
1546
+ toolbarBoxShadow: string;
1547
+ toolbarBorderRadius: string;
1548
+ }, {
1549
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1550
+ borderRadius: string;
1551
+ boxShadow: string;
1552
+ color: string;
1553
+ textColor: string;
1554
+ padding: string;
1555
+ }, {
1556
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1557
+ fontSize: string;
1558
+ borderRadius: string;
1559
+ color: string;
1560
+ dividerColor: string;
1561
+ textColor: string;
1562
+ boxShadow: string;
1563
+ space: string;
1564
+ spaceArrow: string;
1565
+ arrowOffset: string;
1566
+ arrowOffsetVertical: string;
1567
+ arrowHeight: string;
1568
+ padding: string;
1569
+ }, any>;
1570
+ }>;
1571
+ }>>;
1572
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1573
+ toolbarIconColor: string;
1574
+ toolbarColor: string;
1575
+ toolbarBoxShadow: string;
1576
+ toolbarBorderRadius: string;
1577
+ }, {
1578
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1579
+ borderRadius: string;
1580
+ boxShadow: string;
1581
+ color: string;
1582
+ textColor: string;
1583
+ padding: string;
1584
+ }, {
1585
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1586
+ fontSize: string;
1587
+ borderRadius: string;
1588
+ color: string;
1589
+ dividerColor: string;
1590
+ textColor: string;
1591
+ boxShadow: string;
1592
+ space: string;
1593
+ spaceArrow: string;
1594
+ arrowOffset: string;
1595
+ arrowOffsetVertical: string;
1596
+ arrowHeight: string;
1597
+ padding: string;
1598
+ }, any>;
1599
+ }>;
1600
+ }>>>;
1601
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1602
+ toolbarIconColor: string;
1603
+ toolbarColor: string;
1604
+ toolbarBoxShadow: string;
1605
+ toolbarBorderRadius: string;
1606
+ }, {
1607
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1608
+ borderRadius: string;
1609
+ boxShadow: string;
1610
+ color: string;
1611
+ textColor: string;
1612
+ padding: string;
1613
+ }, {
1614
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1615
+ fontSize: string;
1616
+ borderRadius: string;
1617
+ color: string;
1618
+ dividerColor: string;
1619
+ textColor: string;
1620
+ boxShadow: string;
1621
+ space: string;
1622
+ spaceArrow: string;
1623
+ arrowOffset: string;
1624
+ arrowOffsetVertical: string;
1625
+ arrowHeight: string;
1626
+ padding: string;
1627
+ }, any>;
1628
+ }>;
1629
+ }>>>;
1630
+ alt: StringConstructor;
1631
+ height: import('vue').PropType<string | number>;
1632
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1633
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1634
+ lazy: BooleanConstructor;
1635
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1636
+ objectFit: {
1637
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1638
+ default: string;
1639
+ };
1640
+ previewSrc: StringConstructor;
1641
+ fallbackSrc: StringConstructor;
1642
+ width: import('vue').PropType<string | number>;
1643
+ src: StringConstructor;
1644
+ previewDisabled: BooleanConstructor;
1645
+ loadDescription: StringConstructor;
1646
+ onError: import('vue').PropType<(e: Event) => void>;
1647
+ onLoad: import('vue').PropType<(e: Event) => void>;
1648
+ }>> & Readonly<{}>, {
1649
+ click: () => void;
1650
+ mergedClsPrefix: import('vue').Ref<string, string>;
1651
+ groupId: string | undefined;
1652
+ previewInstRef: import('vue').Ref<{
1653
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1654
+ setPreviewSrc: (src?: string) => void;
1655
+ toggleShow: () => void;
1656
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1657
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1658
+ setPreviewSrc: (src?: string) => void;
1659
+ toggleShow: () => void;
1660
+ } | null>;
1661
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1662
+ showError: import('vue').Ref<boolean, boolean>;
1663
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1664
+ loaded: import('vue').Ref<boolean, boolean>;
1665
+ mergedOnClick: (e: MouseEvent) => void;
1666
+ mergedOnError: (e: Event) => void;
1667
+ mergedOnLoad: (e: Event) => void;
1668
+ }, {}, {}, {}, {
1669
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1670
+ lazy: boolean;
1671
+ showToolbar: boolean;
1672
+ showToolbarTooltip: boolean;
1673
+ previewDisabled: boolean;
1674
+ }> | null;
244
1675
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
245
1676
  load: (...args: any[]) => any;
246
1677
  click: () => any;
247
1678
  error: () => any;
248
1679
  }, string, {
249
- fetchpriority: "high" | "low" | "auto";
250
1680
  retryMax: number;
1681
+ fetchpriority: "high" | "low" | "auto";
251
1682
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
252
1683
  beforeCreate?: (() => void) | (() => void)[];
253
1684
  created?: (() => void) | (() => void)[];
@@ -269,8 +1700,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
269
1700
  $nextTick: typeof import('vue').nextTick;
270
1701
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
271
1702
  } & Readonly<{
272
- fetchpriority: "high" | "low" | "auto";
273
1703
  retryMax: number;
1704
+ fetchpriority: "high" | "low" | "auto";
274
1705
  }> & Omit<Readonly<{
275
1706
  src?: uni.image.Image_;
276
1707
  alt?: string;
@@ -291,13 +1722,300 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
291
1722
  fetchpriority?: "high" | "low" | "auto";
292
1723
  fallback?: uni.image.Image_;
293
1724
  }> & Readonly<{
294
- onLoad?: (...args: any[]) => any;
295
- onClick?: () => any;
296
- onError?: () => any;
297
- }>, ("fetchpriority" | "retryMax") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
1725
+ onLoad?: ((...args: any[]) => any) | undefined;
1726
+ onClick?: (() => any) | undefined;
1727
+ onError?: (() => any) | undefined;
1728
+ }>, ("retryMax" | "fetchpriority") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
298
1729
  isLoaded: import('vue').ComputedRef<boolean>;
299
- imageEl: any;
300
- imageIns: unknown;
1730
+ imageEl: HTMLImageElement | null | undefined;
1731
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1732
+ onPreviewPrev: import('vue').PropType<() => void>;
1733
+ onPreviewNext: import('vue').PropType<() => void>;
1734
+ showToolbar: {
1735
+ type: BooleanConstructor;
1736
+ default: boolean;
1737
+ };
1738
+ showToolbarTooltip: BooleanConstructor;
1739
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1740
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1741
+ toolbarIconColor: string;
1742
+ toolbarColor: string;
1743
+ toolbarBoxShadow: string;
1744
+ toolbarBorderRadius: string;
1745
+ }, {
1746
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1747
+ borderRadius: string;
1748
+ boxShadow: string;
1749
+ color: string;
1750
+ textColor: string;
1751
+ padding: string;
1752
+ }, {
1753
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1754
+ fontSize: string;
1755
+ borderRadius: string;
1756
+ color: string;
1757
+ dividerColor: string;
1758
+ textColor: string;
1759
+ boxShadow: string;
1760
+ space: string;
1761
+ spaceArrow: string;
1762
+ arrowOffset: string;
1763
+ arrowOffsetVertical: string;
1764
+ arrowHeight: string;
1765
+ padding: string;
1766
+ }, any>;
1767
+ }>;
1768
+ }>>;
1769
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1770
+ toolbarIconColor: string;
1771
+ toolbarColor: string;
1772
+ toolbarBoxShadow: string;
1773
+ toolbarBorderRadius: string;
1774
+ }, {
1775
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1776
+ borderRadius: string;
1777
+ boxShadow: string;
1778
+ color: string;
1779
+ textColor: string;
1780
+ padding: string;
1781
+ }, {
1782
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1783
+ fontSize: string;
1784
+ borderRadius: string;
1785
+ color: string;
1786
+ dividerColor: string;
1787
+ textColor: string;
1788
+ boxShadow: string;
1789
+ space: string;
1790
+ spaceArrow: string;
1791
+ arrowOffset: string;
1792
+ arrowOffsetVertical: string;
1793
+ arrowHeight: string;
1794
+ padding: string;
1795
+ }, any>;
1796
+ }>;
1797
+ }>>>;
1798
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1799
+ toolbarIconColor: string;
1800
+ toolbarColor: string;
1801
+ toolbarBoxShadow: string;
1802
+ toolbarBorderRadius: string;
1803
+ }, {
1804
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1805
+ borderRadius: string;
1806
+ boxShadow: string;
1807
+ color: string;
1808
+ textColor: string;
1809
+ padding: string;
1810
+ }, {
1811
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1812
+ fontSize: string;
1813
+ borderRadius: string;
1814
+ color: string;
1815
+ dividerColor: string;
1816
+ textColor: string;
1817
+ boxShadow: string;
1818
+ space: string;
1819
+ spaceArrow: string;
1820
+ arrowOffset: string;
1821
+ arrowOffsetVertical: string;
1822
+ arrowHeight: string;
1823
+ padding: string;
1824
+ }, any>;
1825
+ }>;
1826
+ }>>>;
1827
+ alt: StringConstructor;
1828
+ height: import('vue').PropType<string | number>;
1829
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1830
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1831
+ lazy: BooleanConstructor;
1832
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1833
+ objectFit: {
1834
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1835
+ default: string;
1836
+ };
1837
+ previewSrc: StringConstructor;
1838
+ fallbackSrc: StringConstructor;
1839
+ width: import('vue').PropType<string | number>;
1840
+ src: StringConstructor;
1841
+ previewDisabled: BooleanConstructor;
1842
+ loadDescription: StringConstructor;
1843
+ onError: import('vue').PropType<(e: Event) => void>;
1844
+ onLoad: import('vue').PropType<(e: Event) => void>;
1845
+ }>> & Readonly<{}>, {
1846
+ click: () => void;
1847
+ mergedClsPrefix: import('vue').Ref<string, string>;
1848
+ groupId: string | undefined;
1849
+ previewInstRef: import('vue').Ref<{
1850
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1851
+ setPreviewSrc: (src?: string) => void;
1852
+ toggleShow: () => void;
1853
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1854
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1855
+ setPreviewSrc: (src?: string) => void;
1856
+ toggleShow: () => void;
1857
+ } | null>;
1858
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1859
+ showError: import('vue').Ref<boolean, boolean>;
1860
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1861
+ loaded: import('vue').Ref<boolean, boolean>;
1862
+ mergedOnClick: (e: MouseEvent) => void;
1863
+ mergedOnError: (e: Event) => void;
1864
+ mergedOnLoad: (e: Event) => void;
1865
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1866
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1867
+ lazy: boolean;
1868
+ showToolbar: boolean;
1869
+ showToolbarTooltip: boolean;
1870
+ previewDisabled: boolean;
1871
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1872
+ P: {};
1873
+ B: {};
1874
+ D: {};
1875
+ C: {};
1876
+ M: {};
1877
+ Defaults: {};
1878
+ }, Readonly<import('vue').ExtractPropTypes<{
1879
+ onPreviewPrev: import('vue').PropType<() => void>;
1880
+ onPreviewNext: import('vue').PropType<() => void>;
1881
+ showToolbar: {
1882
+ type: BooleanConstructor;
1883
+ default: boolean;
1884
+ };
1885
+ showToolbarTooltip: BooleanConstructor;
1886
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1887
+ theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
1888
+ toolbarIconColor: string;
1889
+ toolbarColor: string;
1890
+ toolbarBoxShadow: string;
1891
+ toolbarBorderRadius: string;
1892
+ }, {
1893
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1894
+ borderRadius: string;
1895
+ boxShadow: string;
1896
+ color: string;
1897
+ textColor: string;
1898
+ padding: string;
1899
+ }, {
1900
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1901
+ fontSize: string;
1902
+ borderRadius: string;
1903
+ color: string;
1904
+ dividerColor: string;
1905
+ textColor: string;
1906
+ boxShadow: string;
1907
+ space: string;
1908
+ spaceArrow: string;
1909
+ arrowOffset: string;
1910
+ arrowOffsetVertical: string;
1911
+ arrowHeight: string;
1912
+ padding: string;
1913
+ }, any>;
1914
+ }>;
1915
+ }>>;
1916
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1917
+ toolbarIconColor: string;
1918
+ toolbarColor: string;
1919
+ toolbarBoxShadow: string;
1920
+ toolbarBorderRadius: string;
1921
+ }, {
1922
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1923
+ borderRadius: string;
1924
+ boxShadow: string;
1925
+ color: string;
1926
+ textColor: string;
1927
+ padding: string;
1928
+ }, {
1929
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1930
+ fontSize: string;
1931
+ borderRadius: string;
1932
+ color: string;
1933
+ dividerColor: string;
1934
+ textColor: string;
1935
+ boxShadow: string;
1936
+ space: string;
1937
+ spaceArrow: string;
1938
+ arrowOffset: string;
1939
+ arrowOffsetVertical: string;
1940
+ arrowHeight: string;
1941
+ padding: string;
1942
+ }, any>;
1943
+ }>;
1944
+ }>>>;
1945
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
1946
+ toolbarIconColor: string;
1947
+ toolbarColor: string;
1948
+ toolbarBoxShadow: string;
1949
+ toolbarBorderRadius: string;
1950
+ }, {
1951
+ Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
1952
+ borderRadius: string;
1953
+ boxShadow: string;
1954
+ color: string;
1955
+ textColor: string;
1956
+ padding: string;
1957
+ }, {
1958
+ Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
1959
+ fontSize: string;
1960
+ borderRadius: string;
1961
+ color: string;
1962
+ dividerColor: string;
1963
+ textColor: string;
1964
+ boxShadow: string;
1965
+ space: string;
1966
+ spaceArrow: string;
1967
+ arrowOffset: string;
1968
+ arrowOffsetVertical: string;
1969
+ arrowHeight: string;
1970
+ padding: string;
1971
+ }, any>;
1972
+ }>;
1973
+ }>>>;
1974
+ alt: StringConstructor;
1975
+ height: import('vue').PropType<string | number>;
1976
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1977
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1978
+ lazy: BooleanConstructor;
1979
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1980
+ objectFit: {
1981
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1982
+ default: string;
1983
+ };
1984
+ previewSrc: StringConstructor;
1985
+ fallbackSrc: StringConstructor;
1986
+ width: import('vue').PropType<string | number>;
1987
+ src: StringConstructor;
1988
+ previewDisabled: BooleanConstructor;
1989
+ loadDescription: StringConstructor;
1990
+ onError: import('vue').PropType<(e: Event) => void>;
1991
+ onLoad: import('vue').PropType<(e: Event) => void>;
1992
+ }>> & Readonly<{}>, {
1993
+ click: () => void;
1994
+ mergedClsPrefix: import('vue').Ref<string, string>;
1995
+ groupId: string | undefined;
1996
+ previewInstRef: import('vue').Ref<{
1997
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1998
+ setPreviewSrc: (src?: string) => void;
1999
+ toggleShow: () => void;
2000
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2001
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2002
+ setPreviewSrc: (src?: string) => void;
2003
+ toggleShow: () => void;
2004
+ } | null>;
2005
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2006
+ showError: import('vue').Ref<boolean, boolean>;
2007
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2008
+ loaded: import('vue').Ref<boolean, boolean>;
2009
+ mergedOnClick: (e: MouseEvent) => void;
2010
+ mergedOnError: (e: Event) => void;
2011
+ mergedOnLoad: (e: Event) => void;
2012
+ }, {}, {}, {}, {
2013
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2014
+ lazy: boolean;
2015
+ showToolbar: boolean;
2016
+ showToolbarTooltip: boolean;
2017
+ previewDisabled: boolean;
2018
+ }> | null;
301
2019
  }> & {} & import('vue').ComponentCustomProperties & {} & {
302
2020
  $slots: Readonly<{
303
2021
  loading?(): any;
@@ -306,7 +2024,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
306
2024
  loading?(): any;
307
2025
  fail?(): any;
308
2026
  };
309
- };
2027
+ }) | null;
310
2028
  }, any>;
311
2029
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
312
2030
  export default _default;