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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export declare const Comp: {
2
2
  Await: <T extends PromiseLike<unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
3
+ attrs: any;
3
4
  slots: Readonly<{
4
5
  default(arg: {
5
6
  result: Awaited<T> | undefined;
@@ -11,12 +12,11 @@ export declare const Comp: {
11
12
  load: () => Promise<T>;
12
13
  }): any;
13
14
  };
14
- attrs: any;
15
15
  emit: {};
16
16
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
17
  props: {
18
18
  promise: () => T;
19
- autoLoad?: boolean;
19
+ autoLoad?: boolean | undefined;
20
20
  } & import('vue').PublicProps;
21
21
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
22
  attrs: any;
@@ -36,7 +36,7 @@ export declare const Comp: {
36
36
  __ctx?: Awaited<typeof __VLS_setup>;
37
37
  };
38
38
  Loading: {
39
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vant').LoadingProps>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
39
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vant').LoadingProps>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
40
40
  P: {};
41
41
  B: {};
42
42
  D: {};
@@ -53,6 +53,7 @@ export declare const Comp: {
53
53
  };
54
54
  });
55
55
  Content: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
56
+ attrs: any;
56
57
  slots: Readonly<{
57
58
  default(data: {
58
59
  data?: T;
@@ -62,16 +63,15 @@ export declare const Comp: {
62
63
  data?: T;
63
64
  }): any;
64
65
  };
65
- attrs: any;
66
66
  emit: ((evt: "retry") => void) & ((evt: "resetRetry") => void);
67
67
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
68
68
  props: {
69
- readonly onRetry?: () => any;
70
- readonly onResetRetry?: () => any;
71
- retriable?: boolean;
72
- hideError?: boolean;
73
- hideEmpty?: boolean;
74
- hideLoading?: boolean;
69
+ readonly onRetry?: (() => any) | undefined;
70
+ readonly onResetRetry?: (() => any) | undefined;
71
+ retriable?: boolean | undefined;
72
+ hideError?: boolean | undefined;
73
+ hideEmpty?: boolean | undefined;
74
+ hideLoading?: boolean | undefined;
75
75
  source: uData.PromiseContent<any, T[]> | uData.Stream<T> | T[] | T;
76
76
  class?: any;
77
77
  classError?: any;
@@ -83,7 +83,7 @@ export declare const Comp: {
83
83
  styleLoading?: import('vue').StyleValue;
84
84
  } & import('vue').PublicProps;
85
85
  expose(exposed: import('vue').ShallowUnwrapRef<{
86
- cont: Readonly<import('vue').ShallowRef<HTMLDivElement>>;
86
+ cont: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
87
87
  }>): void;
88
88
  attrs: any;
89
89
  slots: Readonly<{
@@ -114,7 +114,7 @@ export declare const Comp: {
114
114
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
115
115
  anchors: "high" | "low" | number[];
116
116
  lockScroll: boolean;
117
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
117
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
118
118
  P: {};
119
119
  B: {};
120
120
  D: {};
@@ -166,7 +166,7 @@ export declare const Comp: {
166
166
  });
167
167
  Image: {
168
168
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
169
- src?: import('./struct/image').Image_;
169
+ src?: import('./struct/image.ts').Image_;
170
170
  alt?: string;
171
171
  previewable?: boolean;
172
172
  retryMax?: number;
@@ -183,24 +183,598 @@ export declare const Comp: {
183
183
  error: Set<string>;
184
184
  };
185
185
  fetchpriority?: "high" | "low" | "auto";
186
- fallback?: import('./struct/image').Image_;
186
+ fallback?: import('./struct/image.ts').Image_;
187
187
  }> & Readonly<{
188
- onLoad?: (...args: any[]) => any;
189
- onClick?: () => any;
190
- onError?: () => any;
188
+ onLoad?: ((...args: any[]) => any) | undefined;
189
+ onClick?: (() => any) | undefined;
190
+ onError?: (() => any) | undefined;
191
191
  }>, {
192
192
  isLoaded: import('vue').ComputedRef<boolean>;
193
- imageEl: any;
194
- imageIns: unknown;
193
+ imageEl: HTMLImageElement | null | undefined;
194
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
195
+ onPreviewPrev: import('vue').PropType<() => void>;
196
+ onPreviewNext: import('vue').PropType<() => void>;
197
+ showToolbar: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ showToolbarTooltip: BooleanConstructor;
202
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
203
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
204
+ toolbarIconColor: string;
205
+ toolbarColor: string;
206
+ toolbarBoxShadow: string;
207
+ toolbarBorderRadius: string;
208
+ }, {
209
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
210
+ borderRadius: string;
211
+ boxShadow: string;
212
+ color: string;
213
+ textColor: string;
214
+ padding: string;
215
+ }, {
216
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
217
+ fontSize: string;
218
+ borderRadius: string;
219
+ color: string;
220
+ dividerColor: string;
221
+ textColor: string;
222
+ boxShadow: string;
223
+ space: string;
224
+ spaceArrow: string;
225
+ arrowOffset: string;
226
+ arrowOffsetVertical: string;
227
+ arrowHeight: string;
228
+ padding: string;
229
+ }, any>;
230
+ }>;
231
+ }>>;
232
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
233
+ toolbarIconColor: string;
234
+ toolbarColor: string;
235
+ toolbarBoxShadow: string;
236
+ toolbarBorderRadius: string;
237
+ }, {
238
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
239
+ borderRadius: string;
240
+ boxShadow: string;
241
+ color: string;
242
+ textColor: string;
243
+ padding: string;
244
+ }, {
245
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
246
+ fontSize: string;
247
+ borderRadius: string;
248
+ color: string;
249
+ dividerColor: string;
250
+ textColor: string;
251
+ boxShadow: string;
252
+ space: string;
253
+ spaceArrow: string;
254
+ arrowOffset: string;
255
+ arrowOffsetVertical: string;
256
+ arrowHeight: string;
257
+ padding: string;
258
+ }, any>;
259
+ }>;
260
+ }>>>;
261
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
262
+ toolbarIconColor: string;
263
+ toolbarColor: string;
264
+ toolbarBoxShadow: string;
265
+ toolbarBorderRadius: string;
266
+ }, {
267
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
268
+ borderRadius: string;
269
+ boxShadow: string;
270
+ color: string;
271
+ textColor: string;
272
+ padding: string;
273
+ }, {
274
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
275
+ fontSize: string;
276
+ borderRadius: string;
277
+ color: string;
278
+ dividerColor: string;
279
+ textColor: string;
280
+ boxShadow: string;
281
+ space: string;
282
+ spaceArrow: string;
283
+ arrowOffset: string;
284
+ arrowOffsetVertical: string;
285
+ arrowHeight: string;
286
+ padding: string;
287
+ }, any>;
288
+ }>;
289
+ }>>>;
290
+ alt: StringConstructor;
291
+ height: import('vue').PropType<string | number>;
292
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
293
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
294
+ lazy: BooleanConstructor;
295
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
296
+ objectFit: {
297
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
298
+ default: string;
299
+ };
300
+ previewSrc: StringConstructor;
301
+ fallbackSrc: StringConstructor;
302
+ width: import('vue').PropType<string | number>;
303
+ src: StringConstructor;
304
+ previewDisabled: BooleanConstructor;
305
+ loadDescription: StringConstructor;
306
+ onError: import('vue').PropType<(e: Event) => void>;
307
+ onLoad: import('vue').PropType<(e: Event) => void>;
308
+ }>> & Readonly<{}>, {
309
+ click: () => void;
310
+ mergedClsPrefix: import('vue').Ref<string, string>;
311
+ groupId: string | undefined;
312
+ previewInstRef: import('vue').Ref<{
313
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
314
+ setPreviewSrc: (src?: string) => void;
315
+ toggleShow: () => void;
316
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
317
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
318
+ setPreviewSrc: (src?: string) => void;
319
+ toggleShow: () => void;
320
+ } | null>;
321
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
322
+ showError: import('vue').Ref<boolean, boolean>;
323
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
324
+ loaded: import('vue').Ref<boolean, boolean>;
325
+ mergedOnClick: (e: MouseEvent) => void;
326
+ mergedOnError: (e: Event) => void;
327
+ mergedOnLoad: (e: Event) => void;
328
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
329
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
330
+ lazy: boolean;
331
+ showToolbar: boolean;
332
+ showToolbarTooltip: boolean;
333
+ previewDisabled: boolean;
334
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
335
+ P: {};
336
+ B: {};
337
+ D: {};
338
+ C: {};
339
+ M: {};
340
+ Defaults: {};
341
+ }, Readonly<import('vue').ExtractPropTypes<{
342
+ onPreviewPrev: import('vue').PropType<() => void>;
343
+ onPreviewNext: import('vue').PropType<() => void>;
344
+ showToolbar: {
345
+ type: BooleanConstructor;
346
+ default: boolean;
347
+ };
348
+ showToolbarTooltip: BooleanConstructor;
349
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
350
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
351
+ toolbarIconColor: string;
352
+ toolbarColor: string;
353
+ toolbarBoxShadow: string;
354
+ toolbarBorderRadius: string;
355
+ }, {
356
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
357
+ borderRadius: string;
358
+ boxShadow: string;
359
+ color: string;
360
+ textColor: string;
361
+ padding: string;
362
+ }, {
363
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
364
+ fontSize: string;
365
+ borderRadius: string;
366
+ color: string;
367
+ dividerColor: string;
368
+ textColor: string;
369
+ boxShadow: string;
370
+ space: string;
371
+ spaceArrow: string;
372
+ arrowOffset: string;
373
+ arrowOffsetVertical: string;
374
+ arrowHeight: string;
375
+ padding: string;
376
+ }, any>;
377
+ }>;
378
+ }>>;
379
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
380
+ toolbarIconColor: string;
381
+ toolbarColor: string;
382
+ toolbarBoxShadow: string;
383
+ toolbarBorderRadius: string;
384
+ }, {
385
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
386
+ borderRadius: string;
387
+ boxShadow: string;
388
+ color: string;
389
+ textColor: string;
390
+ padding: string;
391
+ }, {
392
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
393
+ fontSize: string;
394
+ borderRadius: string;
395
+ color: string;
396
+ dividerColor: string;
397
+ textColor: string;
398
+ boxShadow: string;
399
+ space: string;
400
+ spaceArrow: string;
401
+ arrowOffset: string;
402
+ arrowOffsetVertical: string;
403
+ arrowHeight: string;
404
+ padding: string;
405
+ }, any>;
406
+ }>;
407
+ }>>>;
408
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
409
+ toolbarIconColor: string;
410
+ toolbarColor: string;
411
+ toolbarBoxShadow: string;
412
+ toolbarBorderRadius: string;
413
+ }, {
414
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
415
+ borderRadius: string;
416
+ boxShadow: string;
417
+ color: string;
418
+ textColor: string;
419
+ padding: string;
420
+ }, {
421
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
422
+ fontSize: string;
423
+ borderRadius: string;
424
+ color: string;
425
+ dividerColor: string;
426
+ textColor: string;
427
+ boxShadow: string;
428
+ space: string;
429
+ spaceArrow: string;
430
+ arrowOffset: string;
431
+ arrowOffsetVertical: string;
432
+ arrowHeight: string;
433
+ padding: string;
434
+ }, any>;
435
+ }>;
436
+ }>>>;
437
+ alt: StringConstructor;
438
+ height: import('vue').PropType<string | number>;
439
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
440
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
441
+ lazy: BooleanConstructor;
442
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
443
+ objectFit: {
444
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
445
+ default: string;
446
+ };
447
+ previewSrc: StringConstructor;
448
+ fallbackSrc: StringConstructor;
449
+ width: import('vue').PropType<string | number>;
450
+ src: StringConstructor;
451
+ previewDisabled: BooleanConstructor;
452
+ loadDescription: StringConstructor;
453
+ onError: import('vue').PropType<(e: Event) => void>;
454
+ onLoad: import('vue').PropType<(e: Event) => void>;
455
+ }>> & Readonly<{}>, {
456
+ click: () => void;
457
+ mergedClsPrefix: import('vue').Ref<string, string>;
458
+ groupId: string | undefined;
459
+ previewInstRef: import('vue').Ref<{
460
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
461
+ setPreviewSrc: (src?: string) => void;
462
+ toggleShow: () => void;
463
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
464
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
465
+ setPreviewSrc: (src?: string) => void;
466
+ toggleShow: () => void;
467
+ } | null>;
468
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
469
+ showError: import('vue').Ref<boolean, boolean>;
470
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
471
+ loaded: import('vue').Ref<boolean, boolean>;
472
+ mergedOnClick: (e: MouseEvent) => void;
473
+ mergedOnError: (e: Event) => void;
474
+ mergedOnLoad: (e: Event) => void;
475
+ }, {}, {}, {}, {
476
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
477
+ lazy: boolean;
478
+ showToolbar: boolean;
479
+ showToolbarTooltip: boolean;
480
+ previewDisabled: boolean;
481
+ }> | null;
195
482
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
196
483
  load: (...args: any[]) => any;
197
484
  click: () => any;
198
485
  error: () => any;
199
486
  }, import('vue').PublicProps, {
200
- fetchpriority: "high" | "low" | "auto";
201
487
  retryMax: number;
202
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
203
- img: unknown;
488
+ fetchpriority: "high" | "low" | "auto";
489
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
490
+ img: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
491
+ onPreviewPrev: import('vue').PropType<() => void>;
492
+ onPreviewNext: import('vue').PropType<() => void>;
493
+ showToolbar: {
494
+ type: BooleanConstructor;
495
+ default: boolean;
496
+ };
497
+ showToolbarTooltip: BooleanConstructor;
498
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
499
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
500
+ toolbarIconColor: string;
501
+ toolbarColor: string;
502
+ toolbarBoxShadow: string;
503
+ toolbarBorderRadius: string;
504
+ }, {
505
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
506
+ borderRadius: string;
507
+ boxShadow: string;
508
+ color: string;
509
+ textColor: string;
510
+ padding: string;
511
+ }, {
512
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
513
+ fontSize: string;
514
+ borderRadius: string;
515
+ color: string;
516
+ dividerColor: string;
517
+ textColor: string;
518
+ boxShadow: string;
519
+ space: string;
520
+ spaceArrow: string;
521
+ arrowOffset: string;
522
+ arrowOffsetVertical: string;
523
+ arrowHeight: string;
524
+ padding: string;
525
+ }, any>;
526
+ }>;
527
+ }>>;
528
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
529
+ toolbarIconColor: string;
530
+ toolbarColor: string;
531
+ toolbarBoxShadow: string;
532
+ toolbarBorderRadius: string;
533
+ }, {
534
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
535
+ borderRadius: string;
536
+ boxShadow: string;
537
+ color: string;
538
+ textColor: string;
539
+ padding: string;
540
+ }, {
541
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
542
+ fontSize: string;
543
+ borderRadius: string;
544
+ color: string;
545
+ dividerColor: string;
546
+ textColor: string;
547
+ boxShadow: string;
548
+ space: string;
549
+ spaceArrow: string;
550
+ arrowOffset: string;
551
+ arrowOffsetVertical: string;
552
+ arrowHeight: string;
553
+ padding: string;
554
+ }, any>;
555
+ }>;
556
+ }>>>;
557
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
558
+ toolbarIconColor: string;
559
+ toolbarColor: string;
560
+ toolbarBoxShadow: string;
561
+ toolbarBorderRadius: string;
562
+ }, {
563
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
564
+ borderRadius: string;
565
+ boxShadow: string;
566
+ color: string;
567
+ textColor: string;
568
+ padding: string;
569
+ }, {
570
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
571
+ fontSize: string;
572
+ borderRadius: string;
573
+ color: string;
574
+ dividerColor: string;
575
+ textColor: string;
576
+ boxShadow: string;
577
+ space: string;
578
+ spaceArrow: string;
579
+ arrowOffset: string;
580
+ arrowOffsetVertical: string;
581
+ arrowHeight: string;
582
+ padding: string;
583
+ }, any>;
584
+ }>;
585
+ }>>>;
586
+ alt: StringConstructor;
587
+ height: import('vue').PropType<string | number>;
588
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
589
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
590
+ lazy: BooleanConstructor;
591
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
592
+ objectFit: {
593
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
594
+ default: string;
595
+ };
596
+ previewSrc: StringConstructor;
597
+ fallbackSrc: StringConstructor;
598
+ width: import('vue').PropType<string | number>;
599
+ src: StringConstructor;
600
+ previewDisabled: BooleanConstructor;
601
+ loadDescription: StringConstructor;
602
+ onError: import('vue').PropType<(e: Event) => void>;
603
+ onLoad: import('vue').PropType<(e: Event) => void>;
604
+ }>> & Readonly<{}>, {
605
+ click: () => void;
606
+ mergedClsPrefix: import('vue').Ref<string, string>;
607
+ groupId: string | undefined;
608
+ previewInstRef: import('vue').Ref<{
609
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
610
+ setPreviewSrc: (src?: string) => void;
611
+ toggleShow: () => void;
612
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
613
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
614
+ setPreviewSrc: (src?: string) => void;
615
+ toggleShow: () => void;
616
+ } | null>;
617
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
618
+ showError: import('vue').Ref<boolean, boolean>;
619
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
620
+ loaded: import('vue').Ref<boolean, boolean>;
621
+ mergedOnClick: (e: MouseEvent) => void;
622
+ mergedOnError: (e: Event) => void;
623
+ mergedOnLoad: (e: Event) => void;
624
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
625
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
626
+ lazy: boolean;
627
+ showToolbar: boolean;
628
+ showToolbarTooltip: boolean;
629
+ previewDisabled: boolean;
630
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
631
+ P: {};
632
+ B: {};
633
+ D: {};
634
+ C: {};
635
+ M: {};
636
+ Defaults: {};
637
+ }, Readonly<import('vue').ExtractPropTypes<{
638
+ onPreviewPrev: import('vue').PropType<() => void>;
639
+ onPreviewNext: import('vue').PropType<() => void>;
640
+ showToolbar: {
641
+ type: BooleanConstructor;
642
+ default: boolean;
643
+ };
644
+ showToolbarTooltip: BooleanConstructor;
645
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
646
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
647
+ toolbarIconColor: string;
648
+ toolbarColor: string;
649
+ toolbarBoxShadow: string;
650
+ toolbarBorderRadius: string;
651
+ }, {
652
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
653
+ borderRadius: string;
654
+ boxShadow: string;
655
+ color: string;
656
+ textColor: string;
657
+ padding: string;
658
+ }, {
659
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
660
+ fontSize: string;
661
+ borderRadius: string;
662
+ color: string;
663
+ dividerColor: string;
664
+ textColor: string;
665
+ boxShadow: string;
666
+ space: string;
667
+ spaceArrow: string;
668
+ arrowOffset: string;
669
+ arrowOffsetVertical: string;
670
+ arrowHeight: string;
671
+ padding: string;
672
+ }, any>;
673
+ }>;
674
+ }>>;
675
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
676
+ toolbarIconColor: string;
677
+ toolbarColor: string;
678
+ toolbarBoxShadow: string;
679
+ toolbarBorderRadius: string;
680
+ }, {
681
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
682
+ borderRadius: string;
683
+ boxShadow: string;
684
+ color: string;
685
+ textColor: string;
686
+ padding: string;
687
+ }, {
688
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
689
+ fontSize: string;
690
+ borderRadius: string;
691
+ color: string;
692
+ dividerColor: string;
693
+ textColor: string;
694
+ boxShadow: string;
695
+ space: string;
696
+ spaceArrow: string;
697
+ arrowOffset: string;
698
+ arrowOffsetVertical: string;
699
+ arrowHeight: string;
700
+ padding: string;
701
+ }, any>;
702
+ }>;
703
+ }>>>;
704
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
705
+ toolbarIconColor: string;
706
+ toolbarColor: string;
707
+ toolbarBoxShadow: string;
708
+ toolbarBorderRadius: string;
709
+ }, {
710
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
711
+ borderRadius: string;
712
+ boxShadow: string;
713
+ color: string;
714
+ textColor: string;
715
+ padding: string;
716
+ }, {
717
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
718
+ fontSize: string;
719
+ borderRadius: string;
720
+ color: string;
721
+ dividerColor: string;
722
+ textColor: string;
723
+ boxShadow: string;
724
+ space: string;
725
+ spaceArrow: string;
726
+ arrowOffset: string;
727
+ arrowOffsetVertical: string;
728
+ arrowHeight: string;
729
+ padding: string;
730
+ }, any>;
731
+ }>;
732
+ }>>>;
733
+ alt: StringConstructor;
734
+ height: import('vue').PropType<string | number>;
735
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
736
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
737
+ lazy: BooleanConstructor;
738
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
739
+ objectFit: {
740
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
741
+ default: string;
742
+ };
743
+ previewSrc: StringConstructor;
744
+ fallbackSrc: StringConstructor;
745
+ width: import('vue').PropType<string | number>;
746
+ src: StringConstructor;
747
+ previewDisabled: BooleanConstructor;
748
+ loadDescription: StringConstructor;
749
+ onError: import('vue').PropType<(e: Event) => void>;
750
+ onLoad: import('vue').PropType<(e: Event) => void>;
751
+ }>> & Readonly<{}>, {
752
+ click: () => void;
753
+ mergedClsPrefix: import('vue').Ref<string, string>;
754
+ groupId: string | undefined;
755
+ previewInstRef: import('vue').Ref<{
756
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
757
+ setPreviewSrc: (src?: string) => void;
758
+ toggleShow: () => void;
759
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
760
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
761
+ setPreviewSrc: (src?: string) => void;
762
+ toggleShow: () => void;
763
+ } | null>;
764
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
765
+ showError: import('vue').Ref<boolean, boolean>;
766
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
767
+ loaded: import('vue').Ref<boolean, boolean>;
768
+ mergedOnClick: (e: MouseEvent) => void;
769
+ mergedOnError: (e: Event) => void;
770
+ mergedOnLoad: (e: Event) => void;
771
+ }, {}, {}, {}, {
772
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
773
+ lazy: boolean;
774
+ showToolbar: boolean;
775
+ showToolbarTooltip: boolean;
776
+ previewDisabled: boolean;
777
+ }> | null;
204
778
  }, any, import('vue').ComponentProvideOptions, {
205
779
  P: {};
206
780
  B: {};
@@ -209,7 +783,7 @@ export declare const Comp: {
209
783
  M: {};
210
784
  Defaults: {};
211
785
  }, Readonly<{
212
- src?: import('./struct/image').Image_;
786
+ src?: import('./struct/image.ts').Image_;
213
787
  alt?: string;
214
788
  previewable?: boolean;
215
789
  retryMax?: number;
@@ -226,24 +800,311 @@ export declare const Comp: {
226
800
  error: Set<string>;
227
801
  };
228
802
  fetchpriority?: "high" | "low" | "auto";
229
- fallback?: import('./struct/image').Image_;
803
+ fallback?: import('./struct/image.ts').Image_;
230
804
  }> & Readonly<{
231
- onLoad?: (...args: any[]) => any;
232
- onClick?: () => any;
233
- onError?: () => any;
805
+ onLoad?: ((...args: any[]) => any) | undefined;
806
+ onClick?: (() => any) | undefined;
807
+ onError?: (() => any) | undefined;
234
808
  }>, {
235
809
  isLoaded: import('vue').ComputedRef<boolean>;
236
- imageEl: any;
237
- imageIns: unknown;
810
+ imageEl: HTMLImageElement | null | undefined;
811
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
812
+ onPreviewPrev: import('vue').PropType<() => void>;
813
+ onPreviewNext: import('vue').PropType<() => void>;
814
+ showToolbar: {
815
+ type: BooleanConstructor;
816
+ default: boolean;
817
+ };
818
+ showToolbarTooltip: BooleanConstructor;
819
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
820
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
821
+ toolbarIconColor: string;
822
+ toolbarColor: string;
823
+ toolbarBoxShadow: string;
824
+ toolbarBorderRadius: string;
825
+ }, {
826
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
827
+ borderRadius: string;
828
+ boxShadow: string;
829
+ color: string;
830
+ textColor: string;
831
+ padding: string;
832
+ }, {
833
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
834
+ fontSize: string;
835
+ borderRadius: string;
836
+ color: string;
837
+ dividerColor: string;
838
+ textColor: string;
839
+ boxShadow: string;
840
+ space: string;
841
+ spaceArrow: string;
842
+ arrowOffset: string;
843
+ arrowOffsetVertical: string;
844
+ arrowHeight: string;
845
+ padding: string;
846
+ }, any>;
847
+ }>;
848
+ }>>;
849
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
850
+ toolbarIconColor: string;
851
+ toolbarColor: string;
852
+ toolbarBoxShadow: string;
853
+ toolbarBorderRadius: string;
854
+ }, {
855
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
856
+ borderRadius: string;
857
+ boxShadow: string;
858
+ color: string;
859
+ textColor: string;
860
+ padding: string;
861
+ }, {
862
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
863
+ fontSize: string;
864
+ borderRadius: string;
865
+ color: string;
866
+ dividerColor: string;
867
+ textColor: string;
868
+ boxShadow: string;
869
+ space: string;
870
+ spaceArrow: string;
871
+ arrowOffset: string;
872
+ arrowOffsetVertical: string;
873
+ arrowHeight: string;
874
+ padding: string;
875
+ }, any>;
876
+ }>;
877
+ }>>>;
878
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
879
+ toolbarIconColor: string;
880
+ toolbarColor: string;
881
+ toolbarBoxShadow: string;
882
+ toolbarBorderRadius: string;
883
+ }, {
884
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
885
+ borderRadius: string;
886
+ boxShadow: string;
887
+ color: string;
888
+ textColor: string;
889
+ padding: string;
890
+ }, {
891
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
892
+ fontSize: string;
893
+ borderRadius: string;
894
+ color: string;
895
+ dividerColor: string;
896
+ textColor: string;
897
+ boxShadow: string;
898
+ space: string;
899
+ spaceArrow: string;
900
+ arrowOffset: string;
901
+ arrowOffsetVertical: string;
902
+ arrowHeight: string;
903
+ padding: string;
904
+ }, any>;
905
+ }>;
906
+ }>>>;
907
+ alt: StringConstructor;
908
+ height: import('vue').PropType<string | number>;
909
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
910
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
911
+ lazy: BooleanConstructor;
912
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
913
+ objectFit: {
914
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
915
+ default: string;
916
+ };
917
+ previewSrc: StringConstructor;
918
+ fallbackSrc: StringConstructor;
919
+ width: import('vue').PropType<string | number>;
920
+ src: StringConstructor;
921
+ previewDisabled: BooleanConstructor;
922
+ loadDescription: StringConstructor;
923
+ onError: import('vue').PropType<(e: Event) => void>;
924
+ onLoad: import('vue').PropType<(e: Event) => void>;
925
+ }>> & Readonly<{}>, {
926
+ click: () => void;
927
+ mergedClsPrefix: import('vue').Ref<string, string>;
928
+ groupId: string | undefined;
929
+ previewInstRef: import('vue').Ref<{
930
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
931
+ setPreviewSrc: (src?: string) => void;
932
+ toggleShow: () => void;
933
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
934
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
935
+ setPreviewSrc: (src?: string) => void;
936
+ toggleShow: () => void;
937
+ } | null>;
938
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
939
+ showError: import('vue').Ref<boolean, boolean>;
940
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
941
+ loaded: import('vue').Ref<boolean, boolean>;
942
+ mergedOnClick: (e: MouseEvent) => void;
943
+ mergedOnError: (e: Event) => void;
944
+ mergedOnLoad: (e: Event) => void;
945
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
946
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
947
+ lazy: boolean;
948
+ showToolbar: boolean;
949
+ showToolbarTooltip: boolean;
950
+ previewDisabled: boolean;
951
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
952
+ P: {};
953
+ B: {};
954
+ D: {};
955
+ C: {};
956
+ M: {};
957
+ Defaults: {};
958
+ }, Readonly<import('vue').ExtractPropTypes<{
959
+ onPreviewPrev: import('vue').PropType<() => void>;
960
+ onPreviewNext: import('vue').PropType<() => void>;
961
+ showToolbar: {
962
+ type: BooleanConstructor;
963
+ default: boolean;
964
+ };
965
+ showToolbarTooltip: BooleanConstructor;
966
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
967
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
968
+ toolbarIconColor: string;
969
+ toolbarColor: string;
970
+ toolbarBoxShadow: string;
971
+ toolbarBorderRadius: string;
972
+ }, {
973
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
974
+ borderRadius: string;
975
+ boxShadow: string;
976
+ color: string;
977
+ textColor: string;
978
+ padding: string;
979
+ }, {
980
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
981
+ fontSize: string;
982
+ borderRadius: string;
983
+ color: string;
984
+ dividerColor: string;
985
+ textColor: string;
986
+ boxShadow: string;
987
+ space: string;
988
+ spaceArrow: string;
989
+ arrowOffset: string;
990
+ arrowOffsetVertical: string;
991
+ arrowHeight: string;
992
+ padding: string;
993
+ }, any>;
994
+ }>;
995
+ }>>;
996
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
997
+ toolbarIconColor: string;
998
+ toolbarColor: string;
999
+ toolbarBoxShadow: string;
1000
+ toolbarBorderRadius: string;
1001
+ }, {
1002
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1003
+ borderRadius: string;
1004
+ boxShadow: string;
1005
+ color: string;
1006
+ textColor: string;
1007
+ padding: string;
1008
+ }, {
1009
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1010
+ fontSize: string;
1011
+ borderRadius: string;
1012
+ color: string;
1013
+ dividerColor: string;
1014
+ textColor: string;
1015
+ boxShadow: string;
1016
+ space: string;
1017
+ spaceArrow: string;
1018
+ arrowOffset: string;
1019
+ arrowOffsetVertical: string;
1020
+ arrowHeight: string;
1021
+ padding: string;
1022
+ }, any>;
1023
+ }>;
1024
+ }>>>;
1025
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1026
+ toolbarIconColor: string;
1027
+ toolbarColor: string;
1028
+ toolbarBoxShadow: string;
1029
+ toolbarBorderRadius: string;
1030
+ }, {
1031
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1032
+ borderRadius: string;
1033
+ boxShadow: string;
1034
+ color: string;
1035
+ textColor: string;
1036
+ padding: string;
1037
+ }, {
1038
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1039
+ fontSize: string;
1040
+ borderRadius: string;
1041
+ color: string;
1042
+ dividerColor: string;
1043
+ textColor: string;
1044
+ boxShadow: string;
1045
+ space: string;
1046
+ spaceArrow: string;
1047
+ arrowOffset: string;
1048
+ arrowOffsetVertical: string;
1049
+ arrowHeight: string;
1050
+ padding: string;
1051
+ }, any>;
1052
+ }>;
1053
+ }>>>;
1054
+ alt: StringConstructor;
1055
+ height: import('vue').PropType<string | number>;
1056
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1057
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1058
+ lazy: BooleanConstructor;
1059
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1060
+ objectFit: {
1061
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1062
+ default: string;
1063
+ };
1064
+ previewSrc: StringConstructor;
1065
+ fallbackSrc: StringConstructor;
1066
+ width: import('vue').PropType<string | number>;
1067
+ src: StringConstructor;
1068
+ previewDisabled: BooleanConstructor;
1069
+ loadDescription: StringConstructor;
1070
+ onError: import('vue').PropType<(e: Event) => void>;
1071
+ onLoad: import('vue').PropType<(e: Event) => void>;
1072
+ }>> & Readonly<{}>, {
1073
+ click: () => void;
1074
+ mergedClsPrefix: import('vue').Ref<string, string>;
1075
+ groupId: string | undefined;
1076
+ previewInstRef: import('vue').Ref<{
1077
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1078
+ setPreviewSrc: (src?: string) => void;
1079
+ toggleShow: () => void;
1080
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1081
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1082
+ setPreviewSrc: (src?: string) => void;
1083
+ toggleShow: () => void;
1084
+ } | null>;
1085
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1086
+ showError: import('vue').Ref<boolean, boolean>;
1087
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1088
+ loaded: import('vue').Ref<boolean, boolean>;
1089
+ mergedOnClick: (e: MouseEvent) => void;
1090
+ mergedOnError: (e: Event) => void;
1091
+ mergedOnLoad: (e: Event) => void;
1092
+ }, {}, {}, {}, {
1093
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1094
+ lazy: boolean;
1095
+ showToolbar: boolean;
1096
+ showToolbarTooltip: boolean;
1097
+ previewDisabled: boolean;
1098
+ }> | null;
238
1099
  }, {}, {}, {}, {
239
- fetchpriority: "high" | "low" | "auto";
240
1100
  retryMax: number;
1101
+ fetchpriority: "high" | "low" | "auto";
241
1102
  }>;
242
1103
  __isFragment?: never;
243
1104
  __isTeleport?: never;
244
1105
  __isSuspense?: never;
245
1106
  } & import('vue').ComponentOptionsBase<Readonly<{
246
- src?: import('./struct/image').Image_;
1107
+ src?: import('./struct/image.ts').Image_;
247
1108
  alt?: string;
248
1109
  previewable?: boolean;
249
1110
  retryMax?: number;
@@ -260,22 +1121,309 @@ export declare const Comp: {
260
1121
  error: Set<string>;
261
1122
  };
262
1123
  fetchpriority?: "high" | "low" | "auto";
263
- fallback?: import('./struct/image').Image_;
1124
+ fallback?: import('./struct/image.ts').Image_;
264
1125
  }> & Readonly<{
265
- onLoad?: (...args: any[]) => any;
266
- onClick?: () => any;
267
- onError?: () => any;
1126
+ onLoad?: ((...args: any[]) => any) | undefined;
1127
+ onClick?: (() => any) | undefined;
1128
+ onError?: (() => any) | undefined;
268
1129
  }>, {
269
1130
  isLoaded: import('vue').ComputedRef<boolean>;
270
- imageEl: any;
271
- imageIns: unknown;
1131
+ imageEl: HTMLImageElement | null | undefined;
1132
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1133
+ onPreviewPrev: import('vue').PropType<() => void>;
1134
+ onPreviewNext: import('vue').PropType<() => void>;
1135
+ showToolbar: {
1136
+ type: BooleanConstructor;
1137
+ default: boolean;
1138
+ };
1139
+ showToolbarTooltip: BooleanConstructor;
1140
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1141
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1142
+ toolbarIconColor: string;
1143
+ toolbarColor: string;
1144
+ toolbarBoxShadow: string;
1145
+ toolbarBorderRadius: string;
1146
+ }, {
1147
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1148
+ borderRadius: string;
1149
+ boxShadow: string;
1150
+ color: string;
1151
+ textColor: string;
1152
+ padding: string;
1153
+ }, {
1154
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1155
+ fontSize: string;
1156
+ borderRadius: string;
1157
+ color: string;
1158
+ dividerColor: string;
1159
+ textColor: string;
1160
+ boxShadow: string;
1161
+ space: string;
1162
+ spaceArrow: string;
1163
+ arrowOffset: string;
1164
+ arrowOffsetVertical: string;
1165
+ arrowHeight: string;
1166
+ padding: string;
1167
+ }, any>;
1168
+ }>;
1169
+ }>>;
1170
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1171
+ toolbarIconColor: string;
1172
+ toolbarColor: string;
1173
+ toolbarBoxShadow: string;
1174
+ toolbarBorderRadius: string;
1175
+ }, {
1176
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1177
+ borderRadius: string;
1178
+ boxShadow: string;
1179
+ color: string;
1180
+ textColor: string;
1181
+ padding: string;
1182
+ }, {
1183
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1184
+ fontSize: string;
1185
+ borderRadius: string;
1186
+ color: string;
1187
+ dividerColor: string;
1188
+ textColor: string;
1189
+ boxShadow: string;
1190
+ space: string;
1191
+ spaceArrow: string;
1192
+ arrowOffset: string;
1193
+ arrowOffsetVertical: string;
1194
+ arrowHeight: string;
1195
+ padding: string;
1196
+ }, any>;
1197
+ }>;
1198
+ }>>>;
1199
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1200
+ toolbarIconColor: string;
1201
+ toolbarColor: string;
1202
+ toolbarBoxShadow: string;
1203
+ toolbarBorderRadius: string;
1204
+ }, {
1205
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1206
+ borderRadius: string;
1207
+ boxShadow: string;
1208
+ color: string;
1209
+ textColor: string;
1210
+ padding: string;
1211
+ }, {
1212
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1213
+ fontSize: string;
1214
+ borderRadius: string;
1215
+ color: string;
1216
+ dividerColor: string;
1217
+ textColor: string;
1218
+ boxShadow: string;
1219
+ space: string;
1220
+ spaceArrow: string;
1221
+ arrowOffset: string;
1222
+ arrowOffsetVertical: string;
1223
+ arrowHeight: string;
1224
+ padding: string;
1225
+ }, any>;
1226
+ }>;
1227
+ }>>>;
1228
+ alt: StringConstructor;
1229
+ height: import('vue').PropType<string | number>;
1230
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1231
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1232
+ lazy: BooleanConstructor;
1233
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1234
+ objectFit: {
1235
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1236
+ default: string;
1237
+ };
1238
+ previewSrc: StringConstructor;
1239
+ fallbackSrc: StringConstructor;
1240
+ width: import('vue').PropType<string | number>;
1241
+ src: StringConstructor;
1242
+ previewDisabled: BooleanConstructor;
1243
+ loadDescription: StringConstructor;
1244
+ onError: import('vue').PropType<(e: Event) => void>;
1245
+ onLoad: import('vue').PropType<(e: Event) => void>;
1246
+ }>> & Readonly<{}>, {
1247
+ click: () => void;
1248
+ mergedClsPrefix: import('vue').Ref<string, string>;
1249
+ groupId: string | undefined;
1250
+ previewInstRef: import('vue').Ref<{
1251
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1252
+ setPreviewSrc: (src?: string) => void;
1253
+ toggleShow: () => void;
1254
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1255
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1256
+ setPreviewSrc: (src?: string) => void;
1257
+ toggleShow: () => void;
1258
+ } | null>;
1259
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1260
+ showError: import('vue').Ref<boolean, boolean>;
1261
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1262
+ loaded: import('vue').Ref<boolean, boolean>;
1263
+ mergedOnClick: (e: MouseEvent) => void;
1264
+ mergedOnError: (e: Event) => void;
1265
+ mergedOnLoad: (e: Event) => void;
1266
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1267
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1268
+ lazy: boolean;
1269
+ showToolbar: boolean;
1270
+ showToolbarTooltip: boolean;
1271
+ previewDisabled: boolean;
1272
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1273
+ P: {};
1274
+ B: {};
1275
+ D: {};
1276
+ C: {};
1277
+ M: {};
1278
+ Defaults: {};
1279
+ }, Readonly<import('vue').ExtractPropTypes<{
1280
+ onPreviewPrev: import('vue').PropType<() => void>;
1281
+ onPreviewNext: import('vue').PropType<() => void>;
1282
+ showToolbar: {
1283
+ type: BooleanConstructor;
1284
+ default: boolean;
1285
+ };
1286
+ showToolbarTooltip: BooleanConstructor;
1287
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1288
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1289
+ toolbarIconColor: string;
1290
+ toolbarColor: string;
1291
+ toolbarBoxShadow: string;
1292
+ toolbarBorderRadius: string;
1293
+ }, {
1294
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1295
+ borderRadius: string;
1296
+ boxShadow: string;
1297
+ color: string;
1298
+ textColor: string;
1299
+ padding: string;
1300
+ }, {
1301
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1302
+ fontSize: string;
1303
+ borderRadius: string;
1304
+ color: string;
1305
+ dividerColor: string;
1306
+ textColor: string;
1307
+ boxShadow: string;
1308
+ space: string;
1309
+ spaceArrow: string;
1310
+ arrowOffset: string;
1311
+ arrowOffsetVertical: string;
1312
+ arrowHeight: string;
1313
+ padding: string;
1314
+ }, any>;
1315
+ }>;
1316
+ }>>;
1317
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1318
+ toolbarIconColor: string;
1319
+ toolbarColor: string;
1320
+ toolbarBoxShadow: string;
1321
+ toolbarBorderRadius: string;
1322
+ }, {
1323
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1324
+ borderRadius: string;
1325
+ boxShadow: string;
1326
+ color: string;
1327
+ textColor: string;
1328
+ padding: string;
1329
+ }, {
1330
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1331
+ fontSize: string;
1332
+ borderRadius: string;
1333
+ color: string;
1334
+ dividerColor: string;
1335
+ textColor: string;
1336
+ boxShadow: string;
1337
+ space: string;
1338
+ spaceArrow: string;
1339
+ arrowOffset: string;
1340
+ arrowOffsetVertical: string;
1341
+ arrowHeight: string;
1342
+ padding: string;
1343
+ }, any>;
1344
+ }>;
1345
+ }>>>;
1346
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1347
+ toolbarIconColor: string;
1348
+ toolbarColor: string;
1349
+ toolbarBoxShadow: string;
1350
+ toolbarBorderRadius: string;
1351
+ }, {
1352
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1353
+ borderRadius: string;
1354
+ boxShadow: string;
1355
+ color: string;
1356
+ textColor: string;
1357
+ padding: string;
1358
+ }, {
1359
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1360
+ fontSize: string;
1361
+ borderRadius: string;
1362
+ color: string;
1363
+ dividerColor: string;
1364
+ textColor: string;
1365
+ boxShadow: string;
1366
+ space: string;
1367
+ spaceArrow: string;
1368
+ arrowOffset: string;
1369
+ arrowOffsetVertical: string;
1370
+ arrowHeight: string;
1371
+ padding: string;
1372
+ }, any>;
1373
+ }>;
1374
+ }>>>;
1375
+ alt: StringConstructor;
1376
+ height: import('vue').PropType<string | number>;
1377
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1378
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
1379
+ lazy: BooleanConstructor;
1380
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
1381
+ objectFit: {
1382
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
1383
+ default: string;
1384
+ };
1385
+ previewSrc: StringConstructor;
1386
+ fallbackSrc: StringConstructor;
1387
+ width: import('vue').PropType<string | number>;
1388
+ src: StringConstructor;
1389
+ previewDisabled: BooleanConstructor;
1390
+ loadDescription: StringConstructor;
1391
+ onError: import('vue').PropType<(e: Event) => void>;
1392
+ onLoad: import('vue').PropType<(e: Event) => void>;
1393
+ }>> & Readonly<{}>, {
1394
+ click: () => void;
1395
+ mergedClsPrefix: import('vue').Ref<string, string>;
1396
+ groupId: string | undefined;
1397
+ previewInstRef: import('vue').Ref<{
1398
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1399
+ setPreviewSrc: (src?: string) => void;
1400
+ toggleShow: () => void;
1401
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
1402
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
1403
+ setPreviewSrc: (src?: string) => void;
1404
+ toggleShow: () => void;
1405
+ } | null>;
1406
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
1407
+ showError: import('vue').Ref<boolean, boolean>;
1408
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
1409
+ loaded: import('vue').Ref<boolean, boolean>;
1410
+ mergedOnClick: (e: MouseEvent) => void;
1411
+ mergedOnError: (e: Event) => void;
1412
+ mergedOnLoad: (e: Event) => void;
1413
+ }, {}, {}, {}, {
1414
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
1415
+ lazy: boolean;
1416
+ showToolbar: boolean;
1417
+ showToolbarTooltip: boolean;
1418
+ previewDisabled: boolean;
1419
+ }> | null;
272
1420
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
273
1421
  load: (...args: any[]) => any;
274
1422
  click: () => any;
275
1423
  error: () => any;
276
1424
  }, string, {
277
- fetchpriority: "high" | "low" | "auto";
278
1425
  retryMax: number;
1426
+ fetchpriority: "high" | "low" | "auto";
279
1427
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
280
1428
  $slots: Readonly<{
281
1429
  loading?(): any;
@@ -286,6 +1434,7 @@ export declare const Comp: {
286
1434
  };
287
1435
  });
288
1436
  List: <T extends NonNullable<import('naive-ui').VirtualListProps["items"]>[number], PF extends ((d: T[]) => any[])>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
1437
+ attrs: any;
289
1438
  slots: Readonly<{
290
1439
  default(props: {
291
1440
  height: number;
@@ -303,23 +1452,22 @@ export declare const Comp: {
303
1452
  };
304
1453
  }): any;
305
1454
  };
306
- attrs: any;
307
- emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
1455
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "retry", then: () => void) => void);
308
1456
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
309
1457
  props: {
310
- readonly onReset?: () => any;
311
- readonly onRetry?: (then: () => void) => any;
312
- readonly onNext?: (then: () => void) => any;
1458
+ readonly onReset?: (() => any) | undefined;
1459
+ readonly onRetry?: ((then: () => void) => any) | undefined;
1460
+ readonly onNext?: ((then: () => void) => any) | undefined;
313
1461
  source: {
314
1462
  data: uData.RPromiseContent<any, T[]>;
315
1463
  isEnd?: boolean;
316
1464
  reloadable?: boolean;
317
1465
  } | uData.Stream<T> | Array<T>;
318
1466
  itemHeight: number;
319
- listProp?: Partial<import('naive-ui').VirtualListProps>;
320
- goBottom?: boolean;
321
- itemResizable?: boolean;
322
- dataProcessor?: PF;
1467
+ listProp?: Partial<import('naive-ui').VirtualListProps> | undefined;
1468
+ goBottom?: boolean | undefined;
1469
+ itemResizable?: boolean | undefined;
1470
+ dataProcessor?: PF | undefined;
323
1471
  style?: import('vue').StyleValue;
324
1472
  class?: any;
325
1473
  } & import('vue').PublicProps;
@@ -345,7 +1493,7 @@ export declare const Comp: {
345
1493
  };
346
1494
  }): any;
347
1495
  };
348
- emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
1496
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "retry", then: () => void) => void);
349
1497
  }>) => import('vue').VNode & {
350
1498
  __ctx?: Awaited<typeof __VLS_setup>;
351
1499
  };
@@ -356,41 +1504,41 @@ export declare const Comp: {
356
1504
  lockScroll: boolean;
357
1505
  overlay: boolean;
358
1506
  show: boolean;
1507
+ lazyRender: boolean;
1508
+ safeAreaInsetBottom: boolean;
1509
+ round: boolean;
1510
+ position: import('vant').PopupPosition;
359
1511
  closeable: boolean;
360
1512
  closeIcon: string;
361
1513
  closeOnPopstate: boolean;
362
1514
  closeIconPosition: import('vant').PopupCloseIconPosition;
363
1515
  closeOnClickOverlay: boolean;
364
- round: boolean;
365
- lazyRender: boolean;
366
1516
  transitionAppear: boolean;
367
- position: import('vant').PopupPosition;
368
1517
  destroyOnClose: boolean;
369
1518
  safeAreaInsetTop: boolean;
370
- safeAreaInsetBottom: boolean;
371
1519
  } & {
372
- transition?: string;
373
- zIndex?: string | number;
374
- teleport?: string | import('vue').RendererElement;
375
- beforeClose?: import('vant/lib/utils').Interceptor;
376
- overlayStyle?: import('vue').CSSProperties;
1520
+ transition?: string | undefined;
1521
+ zIndex?: string | number | undefined;
1522
+ duration?: string | number | undefined;
1523
+ teleport?: string | import('vue').RendererElement | null | undefined;
1524
+ beforeClose?: import('vant/lib/utils/interceptor').Interceptor | undefined;
1525
+ overlayStyle?: import('vue').CSSProperties | undefined;
377
1526
  overlayClass?: unknown;
378
- duration?: string | number;
379
- overlayProps?: Partial<import('vant').OverlayProps>;
380
- iconPrefix?: string;
1527
+ overlayProps?: Partial<import('vant').OverlayProps> | undefined;
1528
+ iconPrefix?: string | undefined;
381
1529
  } & {
382
1530
  noBorder?: boolean;
383
1531
  useTrulyShow: boolean;
384
1532
  style?: import('vue').StyleValue;
385
1533
  }>> & Readonly<{
386
- "onUpdate:show"?: (value: boolean) => any;
387
- onClosed?: () => any;
1534
+ onClosed?: (() => any) | undefined;
1535
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
388
1536
  }>, {
389
1537
  zIndex: import('vue').ComputedRef<number>;
390
1538
  trulyShow: import('vue').ShallowRef<boolean, boolean>;
391
1539
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
392
- "update:show": (value: boolean) => any;
393
1540
  closed: () => any;
1541
+ "update:show": (value: boolean) => any;
394
1542
  }, import('vue').PublicProps, {
395
1543
  position: import('vant').PopupPosition;
396
1544
  noBorder: boolean;
@@ -407,35 +1555,35 @@ export declare const Comp: {
407
1555
  lockScroll: boolean;
408
1556
  overlay: boolean;
409
1557
  show: boolean;
1558
+ lazyRender: boolean;
1559
+ safeAreaInsetBottom: boolean;
1560
+ round: boolean;
1561
+ position: import('vant').PopupPosition;
410
1562
  closeable: boolean;
411
1563
  closeIcon: string;
412
1564
  closeOnPopstate: boolean;
413
1565
  closeIconPosition: import('vant').PopupCloseIconPosition;
414
1566
  closeOnClickOverlay: boolean;
415
- round: boolean;
416
- lazyRender: boolean;
417
1567
  transitionAppear: boolean;
418
- position: import('vant').PopupPosition;
419
1568
  destroyOnClose: boolean;
420
1569
  safeAreaInsetTop: boolean;
421
- safeAreaInsetBottom: boolean;
422
1570
  } & {
423
- transition?: string;
424
- zIndex?: string | number;
425
- teleport?: string | import('vue').RendererElement;
426
- beforeClose?: import('vant/lib/utils').Interceptor;
427
- overlayStyle?: import('vue').CSSProperties;
1571
+ transition?: string | undefined;
1572
+ zIndex?: string | number | undefined;
1573
+ duration?: string | number | undefined;
1574
+ teleport?: string | import('vue').RendererElement | null | undefined;
1575
+ beforeClose?: import('vant/lib/utils/interceptor').Interceptor | undefined;
1576
+ overlayStyle?: import('vue').CSSProperties | undefined;
428
1577
  overlayClass?: unknown;
429
- duration?: string | number;
430
- overlayProps?: Partial<import('vant').OverlayProps>;
431
- iconPrefix?: string;
1578
+ overlayProps?: Partial<import('vant').OverlayProps> | undefined;
1579
+ iconPrefix?: string | undefined;
432
1580
  } & {
433
1581
  noBorder?: boolean;
434
1582
  useTrulyShow: boolean;
435
1583
  style?: import('vue').StyleValue;
436
1584
  }>> & Readonly<{
437
- "onUpdate:show"?: (value: boolean) => any;
438
- onClosed?: () => any;
1585
+ onClosed?: (() => any) | undefined;
1586
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
439
1587
  }>, {
440
1588
  zIndex: import('vue').ComputedRef<number>;
441
1589
  trulyShow: import('vue').ShallowRef<boolean, boolean>;
@@ -452,41 +1600,41 @@ export declare const Comp: {
452
1600
  lockScroll: boolean;
453
1601
  overlay: boolean;
454
1602
  show: boolean;
1603
+ lazyRender: boolean;
1604
+ safeAreaInsetBottom: boolean;
1605
+ round: boolean;
1606
+ position: import('vant').PopupPosition;
455
1607
  closeable: boolean;
456
1608
  closeIcon: string;
457
1609
  closeOnPopstate: boolean;
458
1610
  closeIconPosition: import('vant').PopupCloseIconPosition;
459
1611
  closeOnClickOverlay: boolean;
460
- round: boolean;
461
- lazyRender: boolean;
462
1612
  transitionAppear: boolean;
463
- position: import('vant').PopupPosition;
464
1613
  destroyOnClose: boolean;
465
1614
  safeAreaInsetTop: boolean;
466
- safeAreaInsetBottom: boolean;
467
1615
  } & {
468
- transition?: string;
469
- zIndex?: string | number;
470
- teleport?: string | import('vue').RendererElement;
471
- beforeClose?: import('vant/lib/utils').Interceptor;
472
- overlayStyle?: import('vue').CSSProperties;
1616
+ transition?: string | undefined;
1617
+ zIndex?: string | number | undefined;
1618
+ duration?: string | number | undefined;
1619
+ teleport?: string | import('vue').RendererElement | null | undefined;
1620
+ beforeClose?: import('vant/lib/utils/interceptor').Interceptor | undefined;
1621
+ overlayStyle?: import('vue').CSSProperties | undefined;
473
1622
  overlayClass?: unknown;
474
- duration?: string | number;
475
- overlayProps?: Partial<import('vant').OverlayProps>;
476
- iconPrefix?: string;
1623
+ overlayProps?: Partial<import('vant').OverlayProps> | undefined;
1624
+ iconPrefix?: string | undefined;
477
1625
  } & {
478
1626
  noBorder?: boolean;
479
1627
  useTrulyShow: boolean;
480
1628
  style?: import('vue').StyleValue;
481
1629
  }>> & Readonly<{
482
- "onUpdate:show"?: (value: boolean) => any;
483
- onClosed?: () => any;
1630
+ onClosed?: (() => any) | undefined;
1631
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
484
1632
  }>, {
485
1633
  zIndex: import('vue').ComputedRef<number>;
486
1634
  trulyShow: import('vue').ShallowRef<boolean, boolean>;
487
1635
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
488
- "update:show": (value: boolean) => any;
489
1636
  closed: () => any;
1637
+ "update:show": (value: boolean) => any;
490
1638
  }, string, {
491
1639
  position: import('vant').PopupPosition;
492
1640
  noBorder: boolean;
@@ -502,6 +1650,7 @@ export declare const Comp: {
502
1650
  title: string;
503
1651
  queries?: Record<string, string>;
504
1652
  }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
1653
+ attrs: any;
505
1654
  slots: Readonly<{
506
1655
  default(arg: {
507
1656
  itemName: T;
@@ -517,7 +1666,6 @@ export declare const Comp: {
517
1666
  right(): any;
518
1667
  bottom(): any;
519
1668
  };
520
- attrs: any;
521
1669
  emit: {};
522
1670
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
523
1671
  props: {
@@ -551,7 +1699,7 @@ export declare const Comp: {
551
1699
  ellipsis?: number;
552
1700
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
553
1701
  text: string;
554
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
1702
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
555
1703
  P: {};
556
1704
  B: {};
557
1705
  D: {};
@@ -587,10 +1735,10 @@ export declare const Comp: {
587
1735
  rowMode?: boolean;
588
1736
  padding?: boolean;
589
1737
  }> & Readonly<{
590
- onClick?: (to: boolean) => any;
591
- "onUpdate:modelValue"?: (value: boolean) => any;
592
- onChange?: (mode: boolean) => any;
593
- onLongClick?: () => any;
1738
+ onClick?: ((to: boolean) => any) | undefined;
1739
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1740
+ onChange?: ((mode: boolean) => any) | undefined;
1741
+ onLongClick?: (() => any) | undefined;
594
1742
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
595
1743
  click: (to: boolean) => any;
596
1744
  "update:modelValue": (value: boolean) => any;
@@ -614,10 +1762,10 @@ export declare const Comp: {
614
1762
  rowMode?: boolean;
615
1763
  padding?: boolean;
616
1764
  }> & Readonly<{
617
- onClick?: (to: boolean) => any;
618
- "onUpdate:modelValue"?: (value: boolean) => any;
619
- onChange?: (mode: boolean) => any;
620
- onLongClick?: () => any;
1765
+ onClick?: ((to: boolean) => any) | undefined;
1766
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1767
+ onChange?: ((mode: boolean) => any) | undefined;
1768
+ onLongClick?: (() => any) | undefined;
621
1769
  }>, {}, {}, {}, {}, {}>;
622
1770
  __isFragment?: never;
623
1771
  __isTeleport?: never;
@@ -631,10 +1779,10 @@ export declare const Comp: {
631
1779
  rowMode?: boolean;
632
1780
  padding?: boolean;
633
1781
  }> & Readonly<{
634
- onClick?: (to: boolean) => any;
635
- "onUpdate:modelValue"?: (value: boolean) => any;
636
- onChange?: (mode: boolean) => any;
637
- onLongClick?: () => any;
1782
+ onClick?: ((to: boolean) => any) | undefined;
1783
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1784
+ onChange?: ((mode: boolean) => any) | undefined;
1785
+ onLongClick?: (() => any) | undefined;
638
1786
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
639
1787
  click: (to: boolean) => any;
640
1788
  "update:modelValue": (value: boolean) => any;
@@ -646,6 +1794,7 @@ export declare const Comp: {
646
1794
  };
647
1795
  });
648
1796
  Var: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
1797
+ attrs: any;
649
1798
  slots: Readonly<{
650
1799
  default(arg: {
651
1800
  value: T;
@@ -655,7 +1804,6 @@ export declare const Comp: {
655
1804
  value: T;
656
1805
  }): any;
657
1806
  };
658
- attrs: any;
659
1807
  emit: {};
660
1808
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
661
1809
  props: {
@@ -677,6 +1825,7 @@ export declare const Comp: {
677
1825
  __ctx?: Awaited<typeof __VLS_setup>;
678
1826
  };
679
1827
  Waterfall: <T = any, PF extends ((d: T[]) => any[]) = (d: T[]) => T[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
1828
+ attrs: any;
680
1829
  slots: Readonly<{
681
1830
  default(props: {
682
1831
  item: import('@vueuse/core').IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
@@ -694,30 +1843,29 @@ export declare const Comp: {
694
1843
  length: number;
695
1844
  }): any;
696
1845
  };
697
- attrs: any;
698
- emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "col", args_0: 2, args_1: 2) => void);
1846
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", then: () => void) => void);
699
1847
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
700
1848
  props: {
701
- readonly onReset?: () => any;
702
- readonly onRetry?: (then: () => void) => any;
703
- readonly onNext?: (then: () => void) => any;
704
- readonly onCol?: (args_0: 2, args_1: 2) => any;
1849
+ readonly onReset?: (() => any) | undefined;
1850
+ readonly onRetry?: ((then: () => void) => any) | undefined;
1851
+ readonly onNext?: ((then: () => void) => any) | undefined;
1852
+ readonly onCol?: ((args_0: 2, args_1: 2) => any) | undefined;
705
1853
  source: {
706
1854
  data: uData.RPromiseContent<any, T[]>;
707
1855
  isEnd?: boolean;
708
1856
  } | uData.Stream<T>;
709
1857
  style?: import('vue').StyleValue;
710
1858
  class?: any;
711
- col?: [min: number, max: number] | number;
712
- padding?: number;
713
- gap?: number;
714
- minHeight?: number;
715
- dataProcessor?: PF;
716
- unReloadable?: boolean;
1859
+ col?: [min: number, max: number] | number | undefined;
1860
+ padding?: number | undefined;
1861
+ gap?: number | undefined;
1862
+ minHeight?: number | undefined;
1863
+ dataProcessor?: PF | undefined;
1864
+ unReloadable?: boolean | undefined;
717
1865
  } & import('vue').PublicProps;
718
1866
  expose(exposed: import('vue').ShallowUnwrapRef<{
719
1867
  scrollTop: import('vue').WritableComputedRef<number, number>;
720
- scrollParent: import('vue').ComputedRef<HTMLDivElement>;
1868
+ scrollParent: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
721
1869
  reloadList(): Promise<void>;
722
1870
  }>): void;
723
1871
  attrs: any;
@@ -738,161 +1886,350 @@ export declare const Comp: {
738
1886
  length: number;
739
1887
  }): any;
740
1888
  };
741
- emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "col", args_0: 2, args_1: 2) => void);
1889
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", then: () => void) => void);
742
1890
  }>) => import('vue').VNode & {
743
1891
  __ctx?: Awaited<typeof __VLS_setup>;
744
1892
  };
745
- user: {
746
- PreviewUser: import('vue').DefineComponent<{}, {
747
- show(u: any): void;
748
- isShowing: import('vue').ComputedRef<boolean>;
749
- close(): void;
750
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
751
- floatPopup: {
752
- $: import('vue').ComponentInternalInstance;
753
- $data: {};
754
- $props: Partial<{
755
- anchors: "high" | "low" | number[];
756
- lockScroll: boolean;
757
- }> & Omit<{
758
- readonly anchors?: "high" | "low" | number[];
759
- readonly lockScroll?: boolean;
760
- readonly class?: any;
761
- readonly style?: import('vue').StyleValue;
762
- readonly overlay?: boolean;
763
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "anchors" | "lockScroll">;
764
- $attrs: {
765
- [x: string]: unknown;
766
- };
767
- $refs: {
768
- [x: string]: unknown;
769
- };
770
- $slots: Readonly<{
771
- [name: string]: import('vue').Slot<any>;
772
- }>;
773
- $root: import('vue').ComponentPublicInstance | null;
774
- $parent: import('vue').ComponentPublicInstance | null;
775
- $host: Element | null;
776
- $emit: (event: string, ...args: any[]) => void;
777
- $el: any;
778
- $options: import('vue').ComponentOptionsBase<Readonly<{
779
- anchors?: "high" | "low" | number[];
780
- lockScroll?: boolean;
781
- class?: any;
782
- style?: import('vue').StyleValue;
783
- overlay?: boolean;
784
- }> & Readonly<{}>, {
785
- show(node?: number): void;
786
- close(): void;
787
- isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
788
- height: Readonly<import('vue').ShallowRef<number, number>>;
789
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
790
- anchors: "high" | "low" | number[];
791
- lockScroll: boolean;
792
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
793
- beforeCreate?: (() => void) | (() => void)[];
794
- created?: (() => void) | (() => void)[];
795
- beforeMount?: (() => void) | (() => void)[];
796
- mounted?: (() => void) | (() => void)[];
797
- beforeUpdate?: (() => void) | (() => void)[];
798
- updated?: (() => void) | (() => void)[];
799
- activated?: (() => void) | (() => void)[];
800
- deactivated?: (() => void) | (() => void)[];
801
- beforeDestroy?: (() => void) | (() => void)[];
802
- beforeUnmount?: (() => void) | (() => void)[];
803
- destroyed?: (() => void) | (() => void)[];
804
- unmounted?: (() => void) | (() => void)[];
805
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
806
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
807
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
808
- };
809
- $forceUpdate: () => void;
810
- $nextTick: typeof import('vue').nextTick;
811
- $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;
812
- } & Readonly<{
813
- anchors: "high" | "low" | number[];
814
- lockScroll: boolean;
815
- }> & Omit<Readonly<{
816
- anchors?: "high" | "low" | number[];
817
- lockScroll?: boolean;
818
- class?: any;
819
- style?: import('vue').StyleValue;
820
- overlay?: boolean;
821
- }> & Readonly<{}>, "height" | "show" | ("anchors" | "lockScroll") | "close" | "isShowing"> & import('vue').ShallowUnwrapRef<{
822
- show(node?: number): void;
823
- close(): void;
824
- isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
825
- height: Readonly<import('vue').ShallowRef<number, number>>;
826
- }> & {} & import('vue').ComponentCustomProperties & {} & {
827
- $slots: Readonly<{
828
- default(arg: {
829
- height: number;
830
- }): void;
831
- }> & {
832
- default(arg: {
833
- height: number;
834
- }): void;
835
- };
836
- };
837
- contentBox: HTMLDivElement;
838
- }, any>;
839
- };
840
1893
  content: {
841
1894
  UnitCard: {
842
1895
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
843
- item: import('./struct/item').Item | import('./struct/item').RawItem;
1896
+ item: import('./struct/item.ts').Item | import('./struct/item.ts').RawItem;
844
1897
  freeHeight?: boolean;
845
1898
  disabled?: boolean;
846
1899
  type?: "default" | "big" | "small";
847
1900
  class?: any;
848
1901
  style?: import('vue').StyleValue;
849
1902
  }> & Readonly<{
850
- onClick?: () => any;
1903
+ onClick?: (() => any) | undefined;
851
1904
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
852
1905
  click: () => any;
853
1906
  }, import('vue').PublicProps, {
854
1907
  type: "default" | "big" | "small";
855
1908
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
856
1909
  container: HTMLDivElement;
857
- cover: {
1910
+ cover: ({
858
1911
  $: import('vue').ComponentInternalInstance;
859
1912
  $data: {};
860
- $props: Partial<{
861
- fetchpriority: "high" | "low" | "auto";
862
- retryMax: number;
863
- }> & Omit<{
864
- readonly src?: import('./struct/image').Image_;
865
- readonly alt?: string;
866
- readonly previewable?: boolean;
867
- readonly retryMax?: number;
868
- readonly round?: boolean;
869
- readonly fit?: import('naive-ui').ImageProps["objectFit"];
1913
+ $props: {
1914
+ readonly src?: import('./struct/image.ts').Image_ | undefined;
1915
+ readonly alt?: string | undefined;
1916
+ readonly previewable?: boolean | undefined;
1917
+ readonly retryMax?: number | undefined;
1918
+ readonly round?: boolean | undefined;
1919
+ readonly fit?: "fill" | "none" | "contain" | "cover" | "scale-down" | undefined;
870
1920
  readonly class?: any;
871
- readonly hideLoading?: boolean;
872
- readonly hideError?: boolean;
873
- readonly inline?: boolean;
1921
+ readonly hideLoading?: boolean | undefined;
1922
+ readonly hideError?: boolean | undefined;
1923
+ readonly inline?: boolean | undefined;
874
1924
  readonly style?: import('vue').StyleValue;
875
- readonly imgProp?: import('vue').ImgHTMLAttributes;
1925
+ readonly imgProp?: import('vue').ImgHTMLAttributes | undefined;
876
1926
  readonly useList?: {
877
1927
  loaded: Set<string>;
878
1928
  error: Set<string>;
879
- };
880
- readonly fetchpriority?: "high" | "low" | "auto";
881
- readonly fallback?: import('./struct/image').Image_;
882
- readonly onLoad?: (...args: any[]) => any;
883
- readonly onClick?: () => any;
884
- readonly onError?: () => any;
885
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "fetchpriority" | "retryMax">;
1929
+ } | undefined;
1930
+ readonly fetchpriority?: "high" | "low" | "auto" | undefined;
1931
+ readonly fallback?: import('./struct/image.ts').Image_ | undefined;
1932
+ readonly onLoad?: ((...args: any[]) => any) | undefined;
1933
+ readonly onClick?: (() => any) | undefined;
1934
+ readonly onError?: (() => any) | undefined;
1935
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
886
1936
  $attrs: {
887
1937
  [x: string]: unknown;
888
1938
  };
889
1939
  $refs: {
890
1940
  [x: string]: unknown;
891
1941
  } & {
892
- img: unknown;
1942
+ img: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1943
+ onPreviewPrev: import('vue').PropType<() => void>;
1944
+ onPreviewNext: import('vue').PropType<() => void>;
1945
+ showToolbar: {
1946
+ type: BooleanConstructor;
1947
+ default: boolean;
1948
+ };
1949
+ showToolbarTooltip: BooleanConstructor;
1950
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
1951
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1952
+ toolbarIconColor: string;
1953
+ toolbarColor: string;
1954
+ toolbarBoxShadow: string;
1955
+ toolbarBorderRadius: string;
1956
+ }, {
1957
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1958
+ borderRadius: string;
1959
+ boxShadow: string;
1960
+ color: string;
1961
+ textColor: string;
1962
+ padding: string;
1963
+ }, {
1964
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1965
+ fontSize: string;
1966
+ borderRadius: string;
1967
+ color: string;
1968
+ dividerColor: string;
1969
+ textColor: string;
1970
+ boxShadow: string;
1971
+ space: string;
1972
+ spaceArrow: string;
1973
+ arrowOffset: string;
1974
+ arrowOffsetVertical: string;
1975
+ arrowHeight: string;
1976
+ padding: string;
1977
+ }, any>;
1978
+ }>;
1979
+ }>>;
1980
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
1981
+ toolbarIconColor: string;
1982
+ toolbarColor: string;
1983
+ toolbarBoxShadow: string;
1984
+ toolbarBorderRadius: string;
1985
+ }, {
1986
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
1987
+ borderRadius: string;
1988
+ boxShadow: string;
1989
+ color: string;
1990
+ textColor: string;
1991
+ padding: string;
1992
+ }, {
1993
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
1994
+ fontSize: string;
1995
+ borderRadius: string;
1996
+ color: string;
1997
+ dividerColor: string;
1998
+ textColor: string;
1999
+ boxShadow: string;
2000
+ space: string;
2001
+ spaceArrow: string;
2002
+ arrowOffset: string;
2003
+ arrowOffsetVertical: string;
2004
+ arrowHeight: string;
2005
+ padding: string;
2006
+ }, any>;
2007
+ }>;
2008
+ }>>>;
2009
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2010
+ toolbarIconColor: string;
2011
+ toolbarColor: string;
2012
+ toolbarBoxShadow: string;
2013
+ toolbarBorderRadius: string;
2014
+ }, {
2015
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2016
+ borderRadius: string;
2017
+ boxShadow: string;
2018
+ color: string;
2019
+ textColor: string;
2020
+ padding: string;
2021
+ }, {
2022
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2023
+ fontSize: string;
2024
+ borderRadius: string;
2025
+ color: string;
2026
+ dividerColor: string;
2027
+ textColor: string;
2028
+ boxShadow: string;
2029
+ space: string;
2030
+ spaceArrow: string;
2031
+ arrowOffset: string;
2032
+ arrowOffsetVertical: string;
2033
+ arrowHeight: string;
2034
+ padding: string;
2035
+ }, any>;
2036
+ }>;
2037
+ }>>>;
2038
+ alt: StringConstructor;
2039
+ height: import('vue').PropType<string | number>;
2040
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2041
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2042
+ lazy: BooleanConstructor;
2043
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2044
+ objectFit: {
2045
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2046
+ default: string;
2047
+ };
2048
+ previewSrc: StringConstructor;
2049
+ fallbackSrc: StringConstructor;
2050
+ width: import('vue').PropType<string | number>;
2051
+ src: StringConstructor;
2052
+ previewDisabled: BooleanConstructor;
2053
+ loadDescription: StringConstructor;
2054
+ onError: import('vue').PropType<(e: Event) => void>;
2055
+ onLoad: import('vue').PropType<(e: Event) => void>;
2056
+ }>> & Readonly<{}>, {
2057
+ click: () => void;
2058
+ mergedClsPrefix: import('vue').Ref<string, string>;
2059
+ groupId: string | undefined;
2060
+ previewInstRef: import('vue').Ref<{
2061
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2062
+ setPreviewSrc: (src?: string) => void;
2063
+ toggleShow: () => void;
2064
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2065
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2066
+ setPreviewSrc: (src?: string) => void;
2067
+ toggleShow: () => void;
2068
+ } | null>;
2069
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2070
+ showError: import('vue').Ref<boolean, boolean>;
2071
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2072
+ loaded: import('vue').Ref<boolean, boolean>;
2073
+ mergedOnClick: (e: MouseEvent) => void;
2074
+ mergedOnError: (e: Event) => void;
2075
+ mergedOnLoad: (e: Event) => void;
2076
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
2077
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2078
+ lazy: boolean;
2079
+ showToolbar: boolean;
2080
+ showToolbarTooltip: boolean;
2081
+ previewDisabled: boolean;
2082
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2083
+ P: {};
2084
+ B: {};
2085
+ D: {};
2086
+ C: {};
2087
+ M: {};
2088
+ Defaults: {};
2089
+ }, Readonly<import('vue').ExtractPropTypes<{
2090
+ onPreviewPrev: import('vue').PropType<() => void>;
2091
+ onPreviewNext: import('vue').PropType<() => void>;
2092
+ showToolbar: {
2093
+ type: BooleanConstructor;
2094
+ default: boolean;
2095
+ };
2096
+ showToolbarTooltip: BooleanConstructor;
2097
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
2098
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2099
+ toolbarIconColor: string;
2100
+ toolbarColor: string;
2101
+ toolbarBoxShadow: string;
2102
+ toolbarBorderRadius: string;
2103
+ }, {
2104
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2105
+ borderRadius: string;
2106
+ boxShadow: string;
2107
+ color: string;
2108
+ textColor: string;
2109
+ padding: string;
2110
+ }, {
2111
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2112
+ fontSize: string;
2113
+ borderRadius: string;
2114
+ color: string;
2115
+ dividerColor: string;
2116
+ textColor: string;
2117
+ boxShadow: string;
2118
+ space: string;
2119
+ spaceArrow: string;
2120
+ arrowOffset: string;
2121
+ arrowOffsetVertical: string;
2122
+ arrowHeight: string;
2123
+ padding: string;
2124
+ }, any>;
2125
+ }>;
2126
+ }>>;
2127
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2128
+ toolbarIconColor: string;
2129
+ toolbarColor: string;
2130
+ toolbarBoxShadow: string;
2131
+ toolbarBorderRadius: string;
2132
+ }, {
2133
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2134
+ borderRadius: string;
2135
+ boxShadow: string;
2136
+ color: string;
2137
+ textColor: string;
2138
+ padding: string;
2139
+ }, {
2140
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2141
+ fontSize: string;
2142
+ borderRadius: string;
2143
+ color: string;
2144
+ dividerColor: string;
2145
+ textColor: string;
2146
+ boxShadow: string;
2147
+ space: string;
2148
+ spaceArrow: string;
2149
+ arrowOffset: string;
2150
+ arrowOffsetVertical: string;
2151
+ arrowHeight: string;
2152
+ padding: string;
2153
+ }, any>;
2154
+ }>;
2155
+ }>>>;
2156
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2157
+ toolbarIconColor: string;
2158
+ toolbarColor: string;
2159
+ toolbarBoxShadow: string;
2160
+ toolbarBorderRadius: string;
2161
+ }, {
2162
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2163
+ borderRadius: string;
2164
+ boxShadow: string;
2165
+ color: string;
2166
+ textColor: string;
2167
+ padding: string;
2168
+ }, {
2169
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2170
+ fontSize: string;
2171
+ borderRadius: string;
2172
+ color: string;
2173
+ dividerColor: string;
2174
+ textColor: string;
2175
+ boxShadow: string;
2176
+ space: string;
2177
+ spaceArrow: string;
2178
+ arrowOffset: string;
2179
+ arrowOffsetVertical: string;
2180
+ arrowHeight: string;
2181
+ padding: string;
2182
+ }, any>;
2183
+ }>;
2184
+ }>>>;
2185
+ alt: StringConstructor;
2186
+ height: import('vue').PropType<string | number>;
2187
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2188
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2189
+ lazy: BooleanConstructor;
2190
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2191
+ objectFit: {
2192
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2193
+ default: string;
2194
+ };
2195
+ previewSrc: StringConstructor;
2196
+ fallbackSrc: StringConstructor;
2197
+ width: import('vue').PropType<string | number>;
2198
+ src: StringConstructor;
2199
+ previewDisabled: BooleanConstructor;
2200
+ loadDescription: StringConstructor;
2201
+ onError: import('vue').PropType<(e: Event) => void>;
2202
+ onLoad: import('vue').PropType<(e: Event) => void>;
2203
+ }>> & Readonly<{}>, {
2204
+ click: () => void;
2205
+ mergedClsPrefix: import('vue').Ref<string, string>;
2206
+ groupId: string | undefined;
2207
+ previewInstRef: import('vue').Ref<{
2208
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2209
+ setPreviewSrc: (src?: string) => void;
2210
+ toggleShow: () => void;
2211
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2212
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2213
+ setPreviewSrc: (src?: string) => void;
2214
+ toggleShow: () => void;
2215
+ } | null>;
2216
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2217
+ showError: import('vue').Ref<boolean, boolean>;
2218
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2219
+ loaded: import('vue').Ref<boolean, boolean>;
2220
+ mergedOnClick: (e: MouseEvent) => void;
2221
+ mergedOnError: (e: Event) => void;
2222
+ mergedOnLoad: (e: Event) => void;
2223
+ }, {}, {}, {}, {
2224
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2225
+ lazy: boolean;
2226
+ showToolbar: boolean;
2227
+ showToolbarTooltip: boolean;
2228
+ previewDisabled: boolean;
2229
+ }> | null;
893
2230
  };
894
2231
  $slots: Readonly<{
895
- [name: string]: import('vue').Slot<any>;
2232
+ [name: string]: import('vue').Slot<any> | undefined;
896
2233
  }>;
897
2234
  $root: import('vue').ComponentPublicInstance | null;
898
2235
  $parent: import('vue').ComponentPublicInstance | null;
@@ -900,7 +2237,7 @@ export declare const Comp: {
900
2237
  $emit: ((event: "load", ...args: any[]) => void) & ((event: "click") => void) & ((event: "error") => void);
901
2238
  $el: any;
902
2239
  $options: import('vue').ComponentOptionsBase<Readonly<{
903
- src?: import('./struct/image').Image_;
2240
+ src?: import('./struct/image.ts').Image_;
904
2241
  alt?: string;
905
2242
  previewable?: boolean;
906
2243
  retryMax?: number;
@@ -917,22 +2254,309 @@ export declare const Comp: {
917
2254
  error: Set<string>;
918
2255
  };
919
2256
  fetchpriority?: "high" | "low" | "auto";
920
- fallback?: import('./struct/image').Image_;
2257
+ fallback?: import('./struct/image.ts').Image_;
921
2258
  }> & Readonly<{
922
- onLoad?: (...args: any[]) => any;
923
- onClick?: () => any;
924
- onError?: () => any;
2259
+ onLoad?: ((...args: any[]) => any) | undefined;
2260
+ onClick?: (() => any) | undefined;
2261
+ onError?: (() => any) | undefined;
925
2262
  }>, {
926
2263
  isLoaded: import('vue').ComputedRef<boolean>;
927
- imageEl: any;
928
- imageIns: unknown;
2264
+ imageEl: HTMLImageElement | null | undefined;
2265
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
2266
+ onPreviewPrev: import('vue').PropType<() => void>;
2267
+ onPreviewNext: import('vue').PropType<() => void>;
2268
+ showToolbar: {
2269
+ type: BooleanConstructor;
2270
+ default: boolean;
2271
+ };
2272
+ showToolbarTooltip: BooleanConstructor;
2273
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
2274
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2275
+ toolbarIconColor: string;
2276
+ toolbarColor: string;
2277
+ toolbarBoxShadow: string;
2278
+ toolbarBorderRadius: string;
2279
+ }, {
2280
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2281
+ borderRadius: string;
2282
+ boxShadow: string;
2283
+ color: string;
2284
+ textColor: string;
2285
+ padding: string;
2286
+ }, {
2287
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2288
+ fontSize: string;
2289
+ borderRadius: string;
2290
+ color: string;
2291
+ dividerColor: string;
2292
+ textColor: string;
2293
+ boxShadow: string;
2294
+ space: string;
2295
+ spaceArrow: string;
2296
+ arrowOffset: string;
2297
+ arrowOffsetVertical: string;
2298
+ arrowHeight: string;
2299
+ padding: string;
2300
+ }, any>;
2301
+ }>;
2302
+ }>>;
2303
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2304
+ toolbarIconColor: string;
2305
+ toolbarColor: string;
2306
+ toolbarBoxShadow: string;
2307
+ toolbarBorderRadius: string;
2308
+ }, {
2309
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2310
+ borderRadius: string;
2311
+ boxShadow: string;
2312
+ color: string;
2313
+ textColor: string;
2314
+ padding: string;
2315
+ }, {
2316
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2317
+ fontSize: string;
2318
+ borderRadius: string;
2319
+ color: string;
2320
+ dividerColor: string;
2321
+ textColor: string;
2322
+ boxShadow: string;
2323
+ space: string;
2324
+ spaceArrow: string;
2325
+ arrowOffset: string;
2326
+ arrowOffsetVertical: string;
2327
+ arrowHeight: string;
2328
+ padding: string;
2329
+ }, any>;
2330
+ }>;
2331
+ }>>>;
2332
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2333
+ toolbarIconColor: string;
2334
+ toolbarColor: string;
2335
+ toolbarBoxShadow: string;
2336
+ toolbarBorderRadius: string;
2337
+ }, {
2338
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2339
+ borderRadius: string;
2340
+ boxShadow: string;
2341
+ color: string;
2342
+ textColor: string;
2343
+ padding: string;
2344
+ }, {
2345
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2346
+ fontSize: string;
2347
+ borderRadius: string;
2348
+ color: string;
2349
+ dividerColor: string;
2350
+ textColor: string;
2351
+ boxShadow: string;
2352
+ space: string;
2353
+ spaceArrow: string;
2354
+ arrowOffset: string;
2355
+ arrowOffsetVertical: string;
2356
+ arrowHeight: string;
2357
+ padding: string;
2358
+ }, any>;
2359
+ }>;
2360
+ }>>>;
2361
+ alt: StringConstructor;
2362
+ height: import('vue').PropType<string | number>;
2363
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2364
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2365
+ lazy: BooleanConstructor;
2366
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2367
+ objectFit: {
2368
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2369
+ default: string;
2370
+ };
2371
+ previewSrc: StringConstructor;
2372
+ fallbackSrc: StringConstructor;
2373
+ width: import('vue').PropType<string | number>;
2374
+ src: StringConstructor;
2375
+ previewDisabled: BooleanConstructor;
2376
+ loadDescription: StringConstructor;
2377
+ onError: import('vue').PropType<(e: Event) => void>;
2378
+ onLoad: import('vue').PropType<(e: Event) => void>;
2379
+ }>> & Readonly<{}>, {
2380
+ click: () => void;
2381
+ mergedClsPrefix: import('vue').Ref<string, string>;
2382
+ groupId: string | undefined;
2383
+ previewInstRef: import('vue').Ref<{
2384
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2385
+ setPreviewSrc: (src?: string) => void;
2386
+ toggleShow: () => void;
2387
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2388
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2389
+ setPreviewSrc: (src?: string) => void;
2390
+ toggleShow: () => void;
2391
+ } | null>;
2392
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2393
+ showError: import('vue').Ref<boolean, boolean>;
2394
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2395
+ loaded: import('vue').Ref<boolean, boolean>;
2396
+ mergedOnClick: (e: MouseEvent) => void;
2397
+ mergedOnError: (e: Event) => void;
2398
+ mergedOnLoad: (e: Event) => void;
2399
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
2400
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2401
+ lazy: boolean;
2402
+ showToolbar: boolean;
2403
+ showToolbarTooltip: boolean;
2404
+ previewDisabled: boolean;
2405
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2406
+ P: {};
2407
+ B: {};
2408
+ D: {};
2409
+ C: {};
2410
+ M: {};
2411
+ Defaults: {};
2412
+ }, Readonly<import('vue').ExtractPropTypes<{
2413
+ onPreviewPrev: import('vue').PropType<() => void>;
2414
+ onPreviewNext: import('vue').PropType<() => void>;
2415
+ showToolbar: {
2416
+ type: BooleanConstructor;
2417
+ default: boolean;
2418
+ };
2419
+ showToolbarTooltip: BooleanConstructor;
2420
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
2421
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2422
+ toolbarIconColor: string;
2423
+ toolbarColor: string;
2424
+ toolbarBoxShadow: string;
2425
+ toolbarBorderRadius: string;
2426
+ }, {
2427
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2428
+ borderRadius: string;
2429
+ boxShadow: string;
2430
+ color: string;
2431
+ textColor: string;
2432
+ padding: string;
2433
+ }, {
2434
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2435
+ fontSize: string;
2436
+ borderRadius: string;
2437
+ color: string;
2438
+ dividerColor: string;
2439
+ textColor: string;
2440
+ boxShadow: string;
2441
+ space: string;
2442
+ spaceArrow: string;
2443
+ arrowOffset: string;
2444
+ arrowOffsetVertical: string;
2445
+ arrowHeight: string;
2446
+ padding: string;
2447
+ }, any>;
2448
+ }>;
2449
+ }>>;
2450
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2451
+ toolbarIconColor: string;
2452
+ toolbarColor: string;
2453
+ toolbarBoxShadow: string;
2454
+ toolbarBorderRadius: string;
2455
+ }, {
2456
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2457
+ borderRadius: string;
2458
+ boxShadow: string;
2459
+ color: string;
2460
+ textColor: string;
2461
+ padding: string;
2462
+ }, {
2463
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2464
+ fontSize: string;
2465
+ borderRadius: string;
2466
+ color: string;
2467
+ dividerColor: string;
2468
+ textColor: string;
2469
+ boxShadow: string;
2470
+ space: string;
2471
+ spaceArrow: string;
2472
+ arrowOffset: string;
2473
+ arrowOffsetVertical: string;
2474
+ arrowHeight: string;
2475
+ padding: string;
2476
+ }, any>;
2477
+ }>;
2478
+ }>>>;
2479
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2480
+ toolbarIconColor: string;
2481
+ toolbarColor: string;
2482
+ toolbarBoxShadow: string;
2483
+ toolbarBorderRadius: string;
2484
+ }, {
2485
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2486
+ borderRadius: string;
2487
+ boxShadow: string;
2488
+ color: string;
2489
+ textColor: string;
2490
+ padding: string;
2491
+ }, {
2492
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2493
+ fontSize: string;
2494
+ borderRadius: string;
2495
+ color: string;
2496
+ dividerColor: string;
2497
+ textColor: string;
2498
+ boxShadow: string;
2499
+ space: string;
2500
+ spaceArrow: string;
2501
+ arrowOffset: string;
2502
+ arrowOffsetVertical: string;
2503
+ arrowHeight: string;
2504
+ padding: string;
2505
+ }, any>;
2506
+ }>;
2507
+ }>>>;
2508
+ alt: StringConstructor;
2509
+ height: import('vue').PropType<string | number>;
2510
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2511
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2512
+ lazy: BooleanConstructor;
2513
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2514
+ objectFit: {
2515
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2516
+ default: string;
2517
+ };
2518
+ previewSrc: StringConstructor;
2519
+ fallbackSrc: StringConstructor;
2520
+ width: import('vue').PropType<string | number>;
2521
+ src: StringConstructor;
2522
+ previewDisabled: BooleanConstructor;
2523
+ loadDescription: StringConstructor;
2524
+ onError: import('vue').PropType<(e: Event) => void>;
2525
+ onLoad: import('vue').PropType<(e: Event) => void>;
2526
+ }>> & Readonly<{}>, {
2527
+ click: () => void;
2528
+ mergedClsPrefix: import('vue').Ref<string, string>;
2529
+ groupId: string | undefined;
2530
+ previewInstRef: import('vue').Ref<{
2531
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2532
+ setPreviewSrc: (src?: string) => void;
2533
+ toggleShow: () => void;
2534
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2535
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2536
+ setPreviewSrc: (src?: string) => void;
2537
+ toggleShow: () => void;
2538
+ } | null>;
2539
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2540
+ showError: import('vue').Ref<boolean, boolean>;
2541
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2542
+ loaded: import('vue').Ref<boolean, boolean>;
2543
+ mergedOnClick: (e: MouseEvent) => void;
2544
+ mergedOnError: (e: Event) => void;
2545
+ mergedOnLoad: (e: Event) => void;
2546
+ }, {}, {}, {}, {
2547
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2548
+ lazy: boolean;
2549
+ showToolbar: boolean;
2550
+ showToolbarTooltip: boolean;
2551
+ previewDisabled: boolean;
2552
+ }> | null;
929
2553
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
930
2554
  load: (...args: any[]) => any;
931
2555
  click: () => any;
932
2556
  error: () => any;
933
2557
  }, string, {
934
- fetchpriority: "high" | "low" | "auto";
935
2558
  retryMax: number;
2559
+ fetchpriority: "high" | "low" | "auto";
936
2560
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
937
2561
  beforeCreate?: (() => void) | (() => void)[];
938
2562
  created?: (() => void) | (() => void)[];
@@ -954,10 +2578,10 @@ export declare const Comp: {
954
2578
  $nextTick: typeof import('vue').nextTick;
955
2579
  $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;
956
2580
  } & Readonly<{
957
- fetchpriority: "high" | "low" | "auto";
958
2581
  retryMax: number;
2582
+ fetchpriority: "high" | "low" | "auto";
959
2583
  }> & Omit<Readonly<{
960
- src?: import('./struct/image').Image_;
2584
+ src?: import('./struct/image.ts').Image_;
961
2585
  alt?: string;
962
2586
  previewable?: boolean;
963
2587
  retryMax?: number;
@@ -974,15 +2598,302 @@ export declare const Comp: {
974
2598
  error: Set<string>;
975
2599
  };
976
2600
  fetchpriority?: "high" | "low" | "auto";
977
- fallback?: import('./struct/image').Image_;
2601
+ fallback?: import('./struct/image.ts').Image_;
978
2602
  }> & Readonly<{
979
- onLoad?: (...args: any[]) => any;
980
- onClick?: () => any;
981
- onError?: () => any;
982
- }>, ("fetchpriority" | "retryMax") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
2603
+ onLoad?: ((...args: any[]) => any) | undefined;
2604
+ onClick?: (() => any) | undefined;
2605
+ onError?: (() => any) | undefined;
2606
+ }>, ("retryMax" | "fetchpriority") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
983
2607
  isLoaded: import('vue').ComputedRef<boolean>;
984
- imageEl: any;
985
- imageIns: unknown;
2608
+ imageEl: HTMLImageElement | null | undefined;
2609
+ imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
2610
+ onPreviewPrev: import('vue').PropType<() => void>;
2611
+ onPreviewNext: import('vue').PropType<() => void>;
2612
+ showToolbar: {
2613
+ type: BooleanConstructor;
2614
+ default: boolean;
2615
+ };
2616
+ showToolbarTooltip: BooleanConstructor;
2617
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
2618
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2619
+ toolbarIconColor: string;
2620
+ toolbarColor: string;
2621
+ toolbarBoxShadow: string;
2622
+ toolbarBorderRadius: string;
2623
+ }, {
2624
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2625
+ borderRadius: string;
2626
+ boxShadow: string;
2627
+ color: string;
2628
+ textColor: string;
2629
+ padding: string;
2630
+ }, {
2631
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2632
+ fontSize: string;
2633
+ borderRadius: string;
2634
+ color: string;
2635
+ dividerColor: string;
2636
+ textColor: string;
2637
+ boxShadow: string;
2638
+ space: string;
2639
+ spaceArrow: string;
2640
+ arrowOffset: string;
2641
+ arrowOffsetVertical: string;
2642
+ arrowHeight: string;
2643
+ padding: string;
2644
+ }, any>;
2645
+ }>;
2646
+ }>>;
2647
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2648
+ toolbarIconColor: string;
2649
+ toolbarColor: string;
2650
+ toolbarBoxShadow: string;
2651
+ toolbarBorderRadius: string;
2652
+ }, {
2653
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2654
+ borderRadius: string;
2655
+ boxShadow: string;
2656
+ color: string;
2657
+ textColor: string;
2658
+ padding: string;
2659
+ }, {
2660
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2661
+ fontSize: string;
2662
+ borderRadius: string;
2663
+ color: string;
2664
+ dividerColor: string;
2665
+ textColor: string;
2666
+ boxShadow: string;
2667
+ space: string;
2668
+ spaceArrow: string;
2669
+ arrowOffset: string;
2670
+ arrowOffsetVertical: string;
2671
+ arrowHeight: string;
2672
+ padding: string;
2673
+ }, any>;
2674
+ }>;
2675
+ }>>>;
2676
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2677
+ toolbarIconColor: string;
2678
+ toolbarColor: string;
2679
+ toolbarBoxShadow: string;
2680
+ toolbarBorderRadius: string;
2681
+ }, {
2682
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2683
+ borderRadius: string;
2684
+ boxShadow: string;
2685
+ color: string;
2686
+ textColor: string;
2687
+ padding: string;
2688
+ }, {
2689
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2690
+ fontSize: string;
2691
+ borderRadius: string;
2692
+ color: string;
2693
+ dividerColor: string;
2694
+ textColor: string;
2695
+ boxShadow: string;
2696
+ space: string;
2697
+ spaceArrow: string;
2698
+ arrowOffset: string;
2699
+ arrowOffsetVertical: string;
2700
+ arrowHeight: string;
2701
+ padding: string;
2702
+ }, any>;
2703
+ }>;
2704
+ }>>>;
2705
+ alt: StringConstructor;
2706
+ height: import('vue').PropType<string | number>;
2707
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2708
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2709
+ lazy: BooleanConstructor;
2710
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2711
+ objectFit: {
2712
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2713
+ default: string;
2714
+ };
2715
+ previewSrc: StringConstructor;
2716
+ fallbackSrc: StringConstructor;
2717
+ width: import('vue').PropType<string | number>;
2718
+ src: StringConstructor;
2719
+ previewDisabled: BooleanConstructor;
2720
+ loadDescription: StringConstructor;
2721
+ onError: import('vue').PropType<(e: Event) => void>;
2722
+ onLoad: import('vue').PropType<(e: Event) => void>;
2723
+ }>> & Readonly<{}>, {
2724
+ click: () => void;
2725
+ mergedClsPrefix: import('vue').Ref<string, string>;
2726
+ groupId: string | undefined;
2727
+ previewInstRef: import('vue').Ref<{
2728
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2729
+ setPreviewSrc: (src?: string) => void;
2730
+ toggleShow: () => void;
2731
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2732
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2733
+ setPreviewSrc: (src?: string) => void;
2734
+ toggleShow: () => void;
2735
+ } | null>;
2736
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2737
+ showError: import('vue').Ref<boolean, boolean>;
2738
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2739
+ loaded: import('vue').Ref<boolean, boolean>;
2740
+ mergedOnClick: (e: MouseEvent) => void;
2741
+ mergedOnError: (e: Event) => void;
2742
+ mergedOnLoad: (e: Event) => void;
2743
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
2744
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2745
+ lazy: boolean;
2746
+ showToolbar: boolean;
2747
+ showToolbarTooltip: boolean;
2748
+ previewDisabled: boolean;
2749
+ }, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2750
+ P: {};
2751
+ B: {};
2752
+ D: {};
2753
+ C: {};
2754
+ M: {};
2755
+ Defaults: {};
2756
+ }, Readonly<import('vue').ExtractPropTypes<{
2757
+ onPreviewPrev: import('vue').PropType<() => void>;
2758
+ onPreviewNext: import('vue').PropType<() => void>;
2759
+ showToolbar: {
2760
+ type: BooleanConstructor;
2761
+ default: boolean;
2762
+ };
2763
+ showToolbarTooltip: BooleanConstructor;
2764
+ renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
2765
+ theme: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2766
+ toolbarIconColor: string;
2767
+ toolbarColor: string;
2768
+ toolbarBoxShadow: string;
2769
+ toolbarBorderRadius: string;
2770
+ }, {
2771
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2772
+ borderRadius: string;
2773
+ boxShadow: string;
2774
+ color: string;
2775
+ textColor: string;
2776
+ padding: string;
2777
+ }, {
2778
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2779
+ fontSize: string;
2780
+ borderRadius: string;
2781
+ color: string;
2782
+ dividerColor: string;
2783
+ textColor: string;
2784
+ boxShadow: string;
2785
+ space: string;
2786
+ spaceArrow: string;
2787
+ arrowOffset: string;
2788
+ arrowOffsetVertical: string;
2789
+ arrowHeight: string;
2790
+ padding: string;
2791
+ }, any>;
2792
+ }>;
2793
+ }>>;
2794
+ themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2795
+ toolbarIconColor: string;
2796
+ toolbarColor: string;
2797
+ toolbarBoxShadow: string;
2798
+ toolbarBorderRadius: string;
2799
+ }, {
2800
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2801
+ borderRadius: string;
2802
+ boxShadow: string;
2803
+ color: string;
2804
+ textColor: string;
2805
+ padding: string;
2806
+ }, {
2807
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2808
+ fontSize: string;
2809
+ borderRadius: string;
2810
+ color: string;
2811
+ dividerColor: string;
2812
+ textColor: string;
2813
+ boxShadow: string;
2814
+ space: string;
2815
+ spaceArrow: string;
2816
+ arrowOffset: string;
2817
+ arrowOffsetVertical: string;
2818
+ arrowHeight: string;
2819
+ padding: string;
2820
+ }, any>;
2821
+ }>;
2822
+ }>>>;
2823
+ builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins/use-theme').Theme<"Image", {
2824
+ toolbarIconColor: string;
2825
+ toolbarColor: string;
2826
+ toolbarBoxShadow: string;
2827
+ toolbarBorderRadius: string;
2828
+ }, {
2829
+ Tooltip: import('naive-ui/es/_mixins/use-theme').Theme<"Tooltip", {
2830
+ borderRadius: string;
2831
+ boxShadow: string;
2832
+ color: string;
2833
+ textColor: string;
2834
+ padding: string;
2835
+ }, {
2836
+ Popover: import('naive-ui/es/_mixins/use-theme').Theme<"Popover", {
2837
+ fontSize: string;
2838
+ borderRadius: string;
2839
+ color: string;
2840
+ dividerColor: string;
2841
+ textColor: string;
2842
+ boxShadow: string;
2843
+ space: string;
2844
+ spaceArrow: string;
2845
+ arrowOffset: string;
2846
+ arrowOffsetVertical: string;
2847
+ arrowHeight: string;
2848
+ padding: string;
2849
+ }, any>;
2850
+ }>;
2851
+ }>>>;
2852
+ alt: StringConstructor;
2853
+ height: import('vue').PropType<string | number>;
2854
+ imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2855
+ previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
2856
+ lazy: BooleanConstructor;
2857
+ intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
2858
+ objectFit: {
2859
+ type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
2860
+ default: string;
2861
+ };
2862
+ previewSrc: StringConstructor;
2863
+ fallbackSrc: StringConstructor;
2864
+ width: import('vue').PropType<string | number>;
2865
+ src: StringConstructor;
2866
+ previewDisabled: BooleanConstructor;
2867
+ loadDescription: StringConstructor;
2868
+ onError: import('vue').PropType<(e: Event) => void>;
2869
+ onLoad: import('vue').PropType<(e: Event) => void>;
2870
+ }>> & Readonly<{}>, {
2871
+ click: () => void;
2872
+ mergedClsPrefix: import('vue').Ref<string, string>;
2873
+ groupId: string | undefined;
2874
+ previewInstRef: import('vue').Ref<{
2875
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2876
+ setPreviewSrc: (src?: string) => void;
2877
+ toggleShow: () => void;
2878
+ } | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
2879
+ setThumbnailEl: (e: HTMLImageElement | null) => void;
2880
+ setPreviewSrc: (src?: string) => void;
2881
+ toggleShow: () => void;
2882
+ } | null>;
2883
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
2884
+ showError: import('vue').Ref<boolean, boolean>;
2885
+ shouldStartLoading: import('vue').Ref<boolean, boolean>;
2886
+ loaded: import('vue').Ref<boolean, boolean>;
2887
+ mergedOnClick: (e: MouseEvent) => void;
2888
+ mergedOnError: (e: Event) => void;
2889
+ mergedOnLoad: (e: Event) => void;
2890
+ }, {}, {}, {}, {
2891
+ objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
2892
+ lazy: boolean;
2893
+ showToolbar: boolean;
2894
+ showToolbarTooltip: boolean;
2895
+ previewDisabled: boolean;
2896
+ }> | null;
986
2897
  }> & {} & import('vue').ComponentCustomProperties & {} & {
987
2898
  $slots: Readonly<{
988
2899
  loading?(): any;
@@ -991,7 +2902,7 @@ export declare const Comp: {
991
2902
  loading?(): any;
992
2903
  fail?(): any;
993
2904
  };
994
- };
2905
+ }) | null;
995
2906
  }, any, import('vue').ComponentProvideOptions, {
996
2907
  P: {};
997
2908
  B: {};
@@ -1000,14 +2911,14 @@ export declare const Comp: {
1000
2911
  M: {};
1001
2912
  Defaults: {};
1002
2913
  }, Readonly<{
1003
- item: import('./struct/item').Item | import('./struct/item').RawItem;
2914
+ item: import('./struct/item.ts').Item | import('./struct/item.ts').RawItem;
1004
2915
  freeHeight?: boolean;
1005
2916
  disabled?: boolean;
1006
2917
  type?: "default" | "big" | "small";
1007
2918
  class?: any;
1008
2919
  style?: import('vue').StyleValue;
1009
2920
  }> & Readonly<{
1010
- onClick?: () => any;
2921
+ onClick?: (() => any) | undefined;
1011
2922
  }>, {}, {}, {}, {}, {
1012
2923
  type: "default" | "big" | "small";
1013
2924
  }>;
@@ -1015,14 +2926,14 @@ export declare const Comp: {
1015
2926
  __isTeleport?: never;
1016
2927
  __isSuspense?: never;
1017
2928
  } & import('vue').ComponentOptionsBase<Readonly<{
1018
- item: import('./struct/item').Item | import('./struct/item').RawItem;
2929
+ item: import('./struct/item.ts').Item | import('./struct/item.ts').RawItem;
1019
2930
  freeHeight?: boolean;
1020
2931
  disabled?: boolean;
1021
2932
  type?: "default" | "big" | "small";
1022
2933
  class?: any;
1023
2934
  style?: import('vue').StyleValue;
1024
2935
  }> & Readonly<{
1025
- onClick?: () => any;
2936
+ onClick?: (() => any) | undefined;
1026
2937
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1027
2938
  click: () => any;
1028
2939
  }, string, {
@@ -1031,9 +2942,11 @@ export declare const Comp: {
1031
2942
  $slots: Readonly<{
1032
2943
  default(): void;
1033
2944
  smallTopInfo(): void;
2945
+ cover(): void;
1034
2946
  }> & {
1035
2947
  default(): void;
1036
2948
  smallTopInfo(): void;
2949
+ cover(): void;
1037
2950
  };
1038
2951
  });
1039
2952
  };
@@ -1058,7 +2971,7 @@ export declare namespace Utils {
1058
2971
  export import message = uMessage;
1059
2972
  }
1060
2973
  export declare const Store: {
1061
- useTemp: import('pinia').StoreDefinition<"core:temp", Pick<{
2974
+ useTemp: () => import('pinia').Store<"core:temp", Pick<{
1062
2975
  $apply: <T extends object>(id: string, def: () => T) => import('vue').Reactive<T>;
1063
2976
  $has: (id: string) => boolean;
1064
2977
  $onlyGet: <T extends object>(id: string) => import('vue').Reactive<T>;
@@ -1080,33 +2993,46 @@ export declare const Store: {
1080
2993
  $hasRaw: (id: string) => boolean;
1081
2994
  $onlyGetRaw: <T extends object>(id: string) => import('vue').Reactive<T>;
1082
2995
  }, "$apply" | "$has" | "$onlyGet" | "$applyRaw" | "$hasRaw" | "$onlyGetRaw">>;
1083
- useConfig: import('pinia').StoreDefinition<"config", Pick<{
2996
+ useConfig: () => import('pinia').Store<"config", Pick<{
2997
+ appConfig: {
2998
+ "core.recordHistory": boolean;
2999
+ "core.showAIProject": boolean;
3000
+ "core.darkMode": string;
3001
+ "core.easilyTitle": boolean;
3002
+ };
1084
3003
  isDark: import('vue').ComputedRef<boolean>;
1085
- $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
1086
- 'app.read.preloadImageNumbers': number;
1087
- 'app.read.watchFullscreen': boolean;
1088
- 'app.read.twoImage': boolean;
1089
- 'app.search.showAIProject': boolean;
1090
- 'app.darkMode': boolean;
1091
- "app.recordHistory": boolean;
1092
- }, "app.read.preloadImageNumbers" | "app.read.watchFullscreen" | "app.read.twoImage" | "app.search.showAIProject" | "app.darkMode" | "app.recordHistory">, Pick<{
3004
+ form: import('vue').ShallowReactive<Map<string, {
3005
+ form: Record<string, import('./index.ts').UniFormDescription>;
3006
+ value: import('vue').Ref<any>;
3007
+ }>>;
3008
+ $useCustomConfig: <T extends Record<string, Required<Pick<import('./index.ts').UniFormDescription, "defaultValue">> & import('./index.ts').UniFormDescription>, TPlugin extends string>(plugin: TPlugin, desc: T) => { [K in keyof T as `${TPlugin}.${Extract<K, string>}`]: import('./index.ts').UniFormResult<T[K]>; };
3009
+ }, "form" | "appConfig">, Pick<{
3010
+ appConfig: {
3011
+ "core.recordHistory": boolean;
3012
+ "core.showAIProject": boolean;
3013
+ "core.darkMode": string;
3014
+ "core.easilyTitle": boolean;
3015
+ };
1093
3016
  isDark: import('vue').ComputedRef<boolean>;
1094
- $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
1095
- 'app.read.preloadImageNumbers': number;
1096
- 'app.read.watchFullscreen': boolean;
1097
- 'app.read.twoImage': boolean;
1098
- 'app.search.showAIProject': boolean;
1099
- 'app.darkMode': boolean;
1100
- "app.recordHistory": boolean;
3017
+ form: import('vue').ShallowReactive<Map<string, {
3018
+ form: Record<string, import('./index.ts').UniFormDescription>;
3019
+ value: import('vue').Ref<any>;
3020
+ }>>;
3021
+ $useCustomConfig: <T extends Record<string, Required<Pick<import('./index.ts').UniFormDescription, "defaultValue">> & import('./index.ts').UniFormDescription>, TPlugin extends string>(plugin: TPlugin, desc: T) => { [K in keyof T as `${TPlugin}.${Extract<K, string>}`]: import('./index.ts').UniFormResult<T[K]>; };
1101
3022
  }, "isDark">, Pick<{
3023
+ appConfig: {
3024
+ "core.recordHistory": boolean;
3025
+ "core.showAIProject": boolean;
3026
+ "core.darkMode": string;
3027
+ "core.easilyTitle": boolean;
3028
+ };
1102
3029
  isDark: import('vue').ComputedRef<boolean>;
1103
- $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
1104
- 'app.read.preloadImageNumbers': number;
1105
- 'app.read.watchFullscreen': boolean;
1106
- 'app.read.twoImage': boolean;
1107
- 'app.search.showAIProject': boolean;
1108
- 'app.darkMode': boolean;
1109
- "app.recordHistory": boolean;
3030
+ form: import('vue').ShallowReactive<Map<string, {
3031
+ form: Record<string, import('./index.ts').UniFormDescription>;
3032
+ value: import('vue').Ref<any>;
3033
+ }>>;
3034
+ $useCustomConfig: <T extends Record<string, Required<Pick<import('./index.ts').UniFormDescription, "defaultValue">> & import('./index.ts').UniFormDescription>, TPlugin extends string>(plugin: TPlugin, desc: T) => { [K in keyof T as `${TPlugin}.${Extract<K, string>}`]: import('./index.ts').UniFormResult<T[K]>; };
1110
3035
  }, "$useCustomConfig">>;
1111
3036
  };
1112
- export * from './plugin';
3037
+ export * from './plugin/index';
3038
+ export * from './plugin/define.ts';