delta-comic-core 0.0.1

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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/bundle.css +2 -0
  4. package/dist/bundle.js +4896 -0
  5. package/dist/bundle.js.map +1 -0
  6. package/dist/bundle.umd.cjs +3 -0
  7. package/dist/bundle.umd.cjs.map +1 -0
  8. package/dist/components/await.vue.d.ts +26 -0
  9. package/dist/components/content/unitCard.vue.d.ts +317 -0
  10. package/dist/components/content.vue.d.ts +43 -0
  11. package/dist/components/floatPopup.vue.d.ts +39 -0
  12. package/dist/components/image.vue.d.ts +63 -0
  13. package/dist/components/list.vue.d.ts +53 -0
  14. package/dist/components/loading.vue.d.ts +18 -0
  15. package/dist/components/popup.vue.d.ts +41 -0
  16. package/dist/components/routerTab.vue.d.ts +34 -0
  17. package/dist/components/text.vue.d.ts +23 -0
  18. package/dist/components/toggleIcon.vue.d.ts +42 -0
  19. package/dist/components/user/previewUser.vue.d.ts +94 -0
  20. package/dist/components/var.vue.d.ts +23 -0
  21. package/dist/components/waterfall.vue.d.ts +54 -0
  22. package/dist/config/index.d.ts +38 -0
  23. package/dist/index.d.ts +1112 -0
  24. package/dist/layout/user.d.ts +0 -0
  25. package/dist/plugin.d.ts +189 -0
  26. package/dist/stores/temp.d.ts +23 -0
  27. package/dist/struct/comment.d.ts +55 -0
  28. package/dist/struct/content.d.ts +70 -0
  29. package/dist/struct/ep.d.ts +14 -0
  30. package/dist/struct/image.d.ts +44 -0
  31. package/dist/struct/index.d.ts +14 -0
  32. package/dist/struct/item.d.ts +56 -0
  33. package/dist/struct/user.d.ts +21 -0
  34. package/dist/symbol.d.ts +3 -0
  35. package/dist/utils/data.d.ts +123 -0
  36. package/dist/utils/delay.d.ts +1 -0
  37. package/dist/utils/eventBus.d.ts +34 -0
  38. package/dist/utils/image.d.ts +5 -0
  39. package/dist/utils/layout.d.ts +8 -0
  40. package/dist/utils/message.d.ts +22 -0
  41. package/dist/utils/plugin.d.ts +1 -0
  42. package/dist/utils/request.d.ts +48 -0
  43. package/dist/utils/translate.d.ts +2 -0
  44. package/package.json +73 -0
@@ -0,0 +1,26 @@
1
+ declare const _default: <T extends PromiseLike<unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
3
+ promise: () => T;
4
+ autoLoad?: boolean;
5
+ } & Partial<{}>> & import('vue').PublicProps;
6
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
+ attrs: any;
8
+ slots: Readonly<{
9
+ default(arg: {
10
+ result: Awaited<T> | undefined;
11
+ load: () => Promise<T>;
12
+ }): any;
13
+ }> & {
14
+ default(arg: {
15
+ result: Awaited<T> | undefined;
16
+ load: () => Promise<T>;
17
+ }): any;
18
+ };
19
+ emit: {};
20
+ }>) => import('vue').VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
22
+ };
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -0,0 +1,317 @@
1
+ import { uni } from '../../struct';
2
+ import { StyleValue } from 'vue';
3
+ type __VLS_Props = {
4
+ item: uni.item.Item | uni.item.RawItem;
5
+ freeHeight?: boolean;
6
+ disabled?: boolean;
7
+ type?: 'default' | 'big' | 'small';
8
+ class?: any;
9
+ style?: StyleValue;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<{
14
+ default(): void;
15
+ smallTopInfo(): void;
16
+ }> & {
17
+ default(): void;
18
+ smallTopInfo(): void;
19
+ };
20
+ refs: {
21
+ container: HTMLDivElement;
22
+ cover: {
23
+ $: import('vue').ComponentInternalInstance;
24
+ $data: {};
25
+ $props: Partial<{
26
+ fetchpriority: "high" | "low" | "auto";
27
+ retryMax: number;
28
+ }> & Omit<{
29
+ readonly src?: uni.image.Image_;
30
+ readonly alt?: string;
31
+ readonly previewable?: boolean;
32
+ readonly retryMax?: number;
33
+ readonly round?: boolean;
34
+ readonly fit?: import('naive-ui').ImageProps["objectFit"];
35
+ readonly class?: any;
36
+ readonly hideLoading?: boolean;
37
+ readonly hideError?: boolean;
38
+ readonly inline?: boolean;
39
+ readonly style?: StyleValue;
40
+ readonly imgProp?: import('vue').ImgHTMLAttributes;
41
+ readonly useList?: {
42
+ loaded: Set<string>;
43
+ error: Set<string>;
44
+ };
45
+ readonly fetchpriority?: "high" | "low" | "auto";
46
+ readonly fallback?: uni.image.Image_;
47
+ readonly onLoad?: (...args: any[]) => any;
48
+ readonly onClick?: () => any;
49
+ readonly onError?: () => any;
50
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "fetchpriority" | "retryMax">;
51
+ $attrs: {
52
+ [x: string]: unknown;
53
+ };
54
+ $refs: {
55
+ [x: string]: unknown;
56
+ } & {
57
+ img: unknown;
58
+ };
59
+ $slots: Readonly<{
60
+ [name: string]: import('vue').Slot<any>;
61
+ }>;
62
+ $root: import('vue').ComponentPublicInstance | null;
63
+ $parent: import('vue').ComponentPublicInstance | null;
64
+ $host: Element | null;
65
+ $emit: ((event: "load", ...args: any[]) => void) & ((event: "click") => void) & ((event: "error") => void);
66
+ $el: any;
67
+ $options: import('vue').ComponentOptionsBase<Readonly<{
68
+ src?: uni.image.Image_;
69
+ alt?: string;
70
+ previewable?: boolean;
71
+ retryMax?: number;
72
+ round?: boolean;
73
+ fit?: import('naive-ui').ImageProps["objectFit"];
74
+ class?: any;
75
+ hideLoading?: boolean;
76
+ hideError?: boolean;
77
+ inline?: boolean;
78
+ style?: StyleValue;
79
+ imgProp?: import('vue').ImgHTMLAttributes;
80
+ useList?: {
81
+ loaded: Set<string>;
82
+ error: Set<string>;
83
+ };
84
+ fetchpriority?: "high" | "low" | "auto";
85
+ fallback?: uni.image.Image_;
86
+ }> & Readonly<{
87
+ onLoad?: (...args: any[]) => any;
88
+ onClick?: () => any;
89
+ onError?: () => any;
90
+ }>, {
91
+ isLoaded: import('vue').ComputedRef<boolean>;
92
+ imageEl: any;
93
+ imageIns: unknown;
94
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
95
+ load: (...args: any[]) => any;
96
+ click: () => any;
97
+ error: () => any;
98
+ }, string, {
99
+ fetchpriority: "high" | "low" | "auto";
100
+ retryMax: number;
101
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
102
+ beforeCreate?: (() => void) | (() => void)[];
103
+ created?: (() => void) | (() => void)[];
104
+ beforeMount?: (() => void) | (() => void)[];
105
+ mounted?: (() => void) | (() => void)[];
106
+ beforeUpdate?: (() => void) | (() => void)[];
107
+ updated?: (() => void) | (() => void)[];
108
+ activated?: (() => void) | (() => void)[];
109
+ deactivated?: (() => void) | (() => void)[];
110
+ beforeDestroy?: (() => void) | (() => void)[];
111
+ beforeUnmount?: (() => void) | (() => void)[];
112
+ destroyed?: (() => void) | (() => void)[];
113
+ unmounted?: (() => void) | (() => void)[];
114
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
115
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
116
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
117
+ };
118
+ $forceUpdate: () => void;
119
+ $nextTick: typeof import('vue').nextTick;
120
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
121
+ } & Readonly<{
122
+ fetchpriority: "high" | "low" | "auto";
123
+ retryMax: number;
124
+ }> & Omit<Readonly<{
125
+ src?: uni.image.Image_;
126
+ alt?: string;
127
+ previewable?: boolean;
128
+ retryMax?: number;
129
+ round?: boolean;
130
+ fit?: import('naive-ui').ImageProps["objectFit"];
131
+ class?: any;
132
+ hideLoading?: boolean;
133
+ hideError?: boolean;
134
+ inline?: boolean;
135
+ style?: StyleValue;
136
+ imgProp?: import('vue').ImgHTMLAttributes;
137
+ useList?: {
138
+ loaded: Set<string>;
139
+ error: Set<string>;
140
+ };
141
+ fetchpriority?: "high" | "low" | "auto";
142
+ fallback?: uni.image.Image_;
143
+ }> & Readonly<{
144
+ onLoad?: (...args: any[]) => any;
145
+ onClick?: () => any;
146
+ onError?: () => any;
147
+ }>, ("fetchpriority" | "retryMax") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
148
+ isLoaded: import('vue').ComputedRef<boolean>;
149
+ imageEl: any;
150
+ imageIns: unknown;
151
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
152
+ $slots: Readonly<{
153
+ loading?(): any;
154
+ fail?(): any;
155
+ }> & {
156
+ loading?(): any;
157
+ fail?(): any;
158
+ };
159
+ };
160
+ };
161
+ rootEl: any;
162
+ };
163
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
164
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
165
+ click: () => any;
166
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
167
+ onClick?: () => any;
168
+ }>, {
169
+ type: "default" | "big" | "small";
170
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
171
+ container: HTMLDivElement;
172
+ cover: {
173
+ $: import('vue').ComponentInternalInstance;
174
+ $data: {};
175
+ $props: Partial<{
176
+ fetchpriority: "high" | "low" | "auto";
177
+ retryMax: number;
178
+ }> & Omit<{
179
+ readonly src?: uni.image.Image_;
180
+ readonly alt?: string;
181
+ readonly previewable?: boolean;
182
+ readonly retryMax?: number;
183
+ readonly round?: boolean;
184
+ readonly fit?: import('naive-ui').ImageProps["objectFit"];
185
+ readonly class?: any;
186
+ readonly hideLoading?: boolean;
187
+ readonly hideError?: boolean;
188
+ readonly inline?: boolean;
189
+ readonly style?: StyleValue;
190
+ readonly imgProp?: import('vue').ImgHTMLAttributes;
191
+ readonly useList?: {
192
+ loaded: Set<string>;
193
+ error: Set<string>;
194
+ };
195
+ readonly fetchpriority?: "high" | "low" | "auto";
196
+ readonly fallback?: uni.image.Image_;
197
+ readonly onLoad?: (...args: any[]) => any;
198
+ readonly onClick?: () => any;
199
+ readonly onError?: () => any;
200
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "fetchpriority" | "retryMax">;
201
+ $attrs: {
202
+ [x: string]: unknown;
203
+ };
204
+ $refs: {
205
+ [x: string]: unknown;
206
+ } & {
207
+ img: unknown;
208
+ };
209
+ $slots: Readonly<{
210
+ [name: string]: import('vue').Slot<any>;
211
+ }>;
212
+ $root: import('vue').ComponentPublicInstance | null;
213
+ $parent: import('vue').ComponentPublicInstance | null;
214
+ $host: Element | null;
215
+ $emit: ((event: "load", ...args: any[]) => void) & ((event: "click") => void) & ((event: "error") => void);
216
+ $el: any;
217
+ $options: import('vue').ComponentOptionsBase<Readonly<{
218
+ src?: uni.image.Image_;
219
+ alt?: string;
220
+ previewable?: boolean;
221
+ retryMax?: number;
222
+ round?: boolean;
223
+ fit?: import('naive-ui').ImageProps["objectFit"];
224
+ class?: any;
225
+ hideLoading?: boolean;
226
+ hideError?: boolean;
227
+ inline?: boolean;
228
+ style?: StyleValue;
229
+ imgProp?: import('vue').ImgHTMLAttributes;
230
+ useList?: {
231
+ loaded: Set<string>;
232
+ error: Set<string>;
233
+ };
234
+ fetchpriority?: "high" | "low" | "auto";
235
+ fallback?: uni.image.Image_;
236
+ }> & Readonly<{
237
+ onLoad?: (...args: any[]) => any;
238
+ onClick?: () => any;
239
+ onError?: () => any;
240
+ }>, {
241
+ isLoaded: import('vue').ComputedRef<boolean>;
242
+ imageEl: any;
243
+ imageIns: unknown;
244
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
245
+ load: (...args: any[]) => any;
246
+ click: () => any;
247
+ error: () => any;
248
+ }, string, {
249
+ fetchpriority: "high" | "low" | "auto";
250
+ retryMax: number;
251
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
252
+ beforeCreate?: (() => void) | (() => void)[];
253
+ created?: (() => void) | (() => void)[];
254
+ beforeMount?: (() => void) | (() => void)[];
255
+ mounted?: (() => void) | (() => void)[];
256
+ beforeUpdate?: (() => void) | (() => void)[];
257
+ updated?: (() => void) | (() => void)[];
258
+ activated?: (() => void) | (() => void)[];
259
+ deactivated?: (() => void) | (() => void)[];
260
+ beforeDestroy?: (() => void) | (() => void)[];
261
+ beforeUnmount?: (() => void) | (() => void)[];
262
+ destroyed?: (() => void) | (() => void)[];
263
+ unmounted?: (() => void) | (() => void)[];
264
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
265
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
266
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
267
+ };
268
+ $forceUpdate: () => void;
269
+ $nextTick: typeof import('vue').nextTick;
270
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
271
+ } & Readonly<{
272
+ fetchpriority: "high" | "low" | "auto";
273
+ retryMax: number;
274
+ }> & Omit<Readonly<{
275
+ src?: uni.image.Image_;
276
+ alt?: string;
277
+ previewable?: boolean;
278
+ retryMax?: number;
279
+ round?: boolean;
280
+ fit?: import('naive-ui').ImageProps["objectFit"];
281
+ class?: any;
282
+ hideLoading?: boolean;
283
+ hideError?: boolean;
284
+ inline?: boolean;
285
+ style?: StyleValue;
286
+ imgProp?: import('vue').ImgHTMLAttributes;
287
+ useList?: {
288
+ loaded: Set<string>;
289
+ error: Set<string>;
290
+ };
291
+ fetchpriority?: "high" | "low" | "auto";
292
+ fallback?: uni.image.Image_;
293
+ }> & Readonly<{
294
+ onLoad?: (...args: any[]) => any;
295
+ onClick?: () => any;
296
+ onError?: () => any;
297
+ }>, ("fetchpriority" | "retryMax") | "isLoaded" | "imageEl" | "imageIns"> & import('vue').ShallowUnwrapRef<{
298
+ isLoaded: import('vue').ComputedRef<boolean>;
299
+ imageEl: any;
300
+ imageIns: unknown;
301
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
302
+ $slots: Readonly<{
303
+ loading?(): any;
304
+ fail?(): any;
305
+ }> & {
306
+ loading?(): any;
307
+ fail?(): any;
308
+ };
309
+ };
310
+ }, any>;
311
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
312
+ export default _default;
313
+ type __VLS_WithTemplateSlots<T, S> = T & {
314
+ new (): {
315
+ $slots: S;
316
+ };
317
+ };
@@ -0,0 +1,43 @@
1
+ import { PromiseContent, Stream } from '../utils/data';
2
+ import { StyleValue } from 'vue';
3
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly onRetry?: () => any;
6
+ readonly onResetRetry?: () => any;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onRetry" | "onResetRetry"> & ({
8
+ retriable?: boolean;
9
+ hideError?: boolean;
10
+ hideEmpty?: boolean;
11
+ hideLoading?: boolean;
12
+ source: PromiseContent<any, T[]> | Stream<T> | T[] | T;
13
+ } & {
14
+ class?: any;
15
+ classError?: any;
16
+ classEmpty?: any;
17
+ classLoading?: any;
18
+ style?: StyleValue;
19
+ styleError?: StyleValue;
20
+ styleEmpty?: StyleValue;
21
+ styleLoading?: StyleValue;
22
+ }) & Partial<{}>> & import('vue').PublicProps;
23
+ expose(exposed: import('vue').ShallowUnwrapRef<{
24
+ cont: Readonly<import('vue').ShallowRef<HTMLDivElement>>;
25
+ }>): void;
26
+ attrs: any;
27
+ slots: Readonly<{
28
+ default(data: {
29
+ data?: T;
30
+ }): any;
31
+ }> & {
32
+ default(data: {
33
+ data?: T;
34
+ }): any;
35
+ };
36
+ emit: ((evt: "retry") => void) & ((evt: "resetRetry") => void);
37
+ }>) => import('vue').VNode & {
38
+ __ctx?: Awaited<typeof __VLS_setup>;
39
+ };
40
+ export default _default;
41
+ type __VLS_PrettifyLocal<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
@@ -0,0 +1,39 @@
1
+ import { StyleValue } from 'vue';
2
+ type __VLS_Props = {
3
+ anchors?: 'high' | 'low' | number[];
4
+ lockScroll?: boolean;
5
+ class?: any;
6
+ style?: StyleValue;
7
+ overlay?: boolean;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: Readonly<{
12
+ default(arg: {
13
+ height: number;
14
+ }): void;
15
+ }> & {
16
+ default(arg: {
17
+ height: number;
18
+ }): void;
19
+ };
20
+ refs: {};
21
+ rootEl: any;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
25
+ show(node?: number): void;
26
+ close(): void;
27
+ isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
28
+ height: Readonly<import('vue').ShallowRef<number, number>>;
29
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
30
+ anchors: "high" | "low" | number[];
31
+ lockScroll: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,63 @@
1
+ import { ImgHTMLAttributes, StyleValue } from 'vue';
2
+ import { ImageProps } from 'naive-ui';
3
+ import { uni } from '../struct';
4
+ type __VLS_Props = {
5
+ src?: uni.image.Image_;
6
+ alt?: string;
7
+ previewable?: boolean;
8
+ retryMax?: number;
9
+ round?: boolean;
10
+ fit?: ImageProps['objectFit'];
11
+ class?: any;
12
+ hideLoading?: boolean;
13
+ hideError?: boolean;
14
+ inline?: boolean;
15
+ style?: StyleValue;
16
+ imgProp?: ImgHTMLAttributes;
17
+ useList?: {
18
+ loaded: Set<string>;
19
+ error: Set<string>;
20
+ };
21
+ fetchpriority?: 'high' | 'low' | 'auto';
22
+ fallback?: uni.image.Image_;
23
+ };
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: Readonly<{
27
+ loading?(): any;
28
+ fail?(): any;
29
+ }> & {
30
+ loading?(): any;
31
+ fail?(): any;
32
+ };
33
+ refs: {
34
+ img: unknown;
35
+ };
36
+ rootEl: any;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
40
+ isLoaded: import('vue').ComputedRef<boolean>;
41
+ imageEl: any;
42
+ imageIns: unknown;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
+ load: (...args: any[]) => any;
45
+ click: () => any;
46
+ error: () => any;
47
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
48
+ onLoad?: (...args: any[]) => any;
49
+ onClick?: () => any;
50
+ onError?: () => any;
51
+ }>, {
52
+ fetchpriority: "high" | "low" | "auto";
53
+ retryMax: number;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
55
+ img: unknown;
56
+ }, any>;
57
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
+ export default _default;
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,53 @@
1
+ import { VirtualListInst, VirtualListProps } from 'naive-ui';
2
+ import { Ref, StyleValue } from 'vue';
3
+ import { IfAny } from '@vueuse/core';
4
+ import { RPromiseContent, Stream } from '../utils/data';
5
+ declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number], PF extends ((d: T[]) => any[])>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly onRetry?: (then: () => void) => any;
8
+ readonly onNext?: (then: () => void) => any;
9
+ readonly onReset?: () => any;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext"> & {
11
+ source: {
12
+ data: RPromiseContent<any, T[]>;
13
+ isEnd?: boolean;
14
+ reloadable?: boolean;
15
+ } | Stream<T> | Array<T>;
16
+ itemHeight: number;
17
+ listProp?: Partial<VirtualListProps>;
18
+ goBottom?: boolean;
19
+ itemResizable?: boolean;
20
+ dataProcessor?: PF;
21
+ style?: StyleValue;
22
+ class?: any;
23
+ } & Partial<{}>> & import('vue').PublicProps;
24
+ expose(exposed: import('vue').ShallowUnwrapRef<{
25
+ scrollTop: import('vue').WritableComputedRef<number, number>;
26
+ listInstance: Ref<VirtualListInst>;
27
+ }>): void;
28
+ attrs: any;
29
+ slots: Readonly<{
30
+ default(props: {
31
+ height: number;
32
+ data: {
33
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
34
+ index: number;
35
+ };
36
+ }): any;
37
+ }> & {
38
+ default(props: {
39
+ height: number;
40
+ data: {
41
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
42
+ index: number;
43
+ };
44
+ }): any;
45
+ };
46
+ emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
47
+ }>) => import('vue').VNode & {
48
+ __ctx?: Awaited<typeof __VLS_setup>;
49
+ };
50
+ export default _default;
51
+ type __VLS_PrettifyLocal<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
@@ -0,0 +1,18 @@
1
+ import { LoadingProps } from 'vant';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<Partial<LoadingProps>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<LoadingProps>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,41 @@
1
+ import { PopupProps } from 'vant';
2
+ import { StyleValue } from 'vue';
3
+ type __VLS_Props = Partial<PopupProps & {
4
+ noBorder?: boolean;
5
+ useTrulyShow: boolean;
6
+ style?: StyleValue;
7
+ }>;
8
+ type __VLS_PublicProps = {
9
+ 'show': boolean;
10
+ } & __VLS_Props;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<{
14
+ default(): void;
15
+ }> & {
16
+ default(): void;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
23
+ zIndex: import('vue').ComputedRef<number>;
24
+ trulyShow: import('vue').ShallowRef<boolean, boolean>;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:show": (value: boolean) => any;
27
+ closed: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:show"?: (value: boolean) => any;
30
+ onClosed?: () => any;
31
+ }>, {
32
+ position: import('vant').PopupPosition;
33
+ noBorder: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,34 @@
1
+ declare const _default: <T extends {
2
+ name: string;
3
+ title: string;
4
+ queries?: Record<string, string>;
5
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
7
+ items: T[];
8
+ routerBase: string;
9
+ } & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: Readonly<{
13
+ default(arg: {
14
+ itemName: T;
15
+ }): any;
16
+ left(): any;
17
+ right(): any;
18
+ bottom(): any;
19
+ }> & {
20
+ default(arg: {
21
+ itemName: T;
22
+ }): any;
23
+ left(): any;
24
+ right(): any;
25
+ bottom(): any;
26
+ };
27
+ emit: {};
28
+ }>) => import('vue').VNode & {
29
+ __ctx?: Awaited<typeof __VLS_setup>;
30
+ };
31
+ export default _default;
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ text?: string;
3
+ ellipsis?: number;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ text: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };