@mingto/mt-ui 1.1.32

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 (155) hide show
  1. package/README.md +19 -0
  2. package/dist/avatar-image/index.d.ts +86 -0
  3. package/dist/avatar-image/src/avatar-image.d.ts +35 -0
  4. package/dist/avatar-image/src/avatar-image.vue.d.ts +45 -0
  5. package/dist/avatar-text/index.d.ts +92 -0
  6. package/dist/avatar-text/src/avatar-text.d.ts +35 -0
  7. package/dist/avatar-text/src/avatar-text.vue.d.ts +62 -0
  8. package/dist/backtop/index.d.ts +103 -0
  9. package/dist/backtop/src/backtop.d.ts +43 -0
  10. package/dist/backtop/src/backtop.vue.d.ts +66 -0
  11. package/dist/badge/index.d.ts +117 -0
  12. package/dist/badge/src/badge.d.ts +48 -0
  13. package/dist/badge/src/badge.vue.d.ts +76 -0
  14. package/dist/button/index.d.ts +230 -0
  15. package/dist/button/src/button.d.ts +93 -0
  16. package/dist/button/src/button.vue.d.ts +144 -0
  17. package/dist/button-group/index.d.ts +18 -0
  18. package/dist/button-group/src/button-group.d.ts +3 -0
  19. package/dist/button-group/src/button-group.vue.d.ts +17 -0
  20. package/dist/cell/index.d.ts +157 -0
  21. package/dist/cell/src/cell.d.ts +56 -0
  22. package/dist/cell/src/cell.vue.d.ts +103 -0
  23. package/dist/cell-group/index.d.ts +83 -0
  24. package/dist/cell-group/src/cell-group.d.ts +104 -0
  25. package/dist/collapse-transition/index.d.ts +18 -0
  26. package/dist/collapse-transition/src/collapse-transition.d.ts +4 -0
  27. package/dist/collapse-transition/src/collapse-transition.vue.d.ts +17 -0
  28. package/dist/config-provider/index.d.ts +51 -0
  29. package/dist/config-provider/src/config-provider.d.ts +32 -0
  30. package/dist/dialog/index.d.ts +414 -0
  31. package/dist/dialog/src/dialog.d.ts +124 -0
  32. package/dist/dialog/src/dialog.vue.d.ts +174 -0
  33. package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +116 -0
  34. package/dist/empty/index.d.ts +86 -0
  35. package/dist/empty/src/empty.d.ts +35 -0
  36. package/dist/empty/src/empty.vue.d.ts +45 -0
  37. package/dist/fade-transition/index.d.ts +49 -0
  38. package/dist/fade-transition/src/fade-transition.d.ts +9 -0
  39. package/dist/fade-transition/src/fade-transition.vue.d.ts +33 -0
  40. package/dist/file-preview/index.d.ts +4 -0
  41. package/dist/file-preview/src/ai-music-preview.vue.d.ts +43 -0
  42. package/dist/file-preview/src/file-preview.d.ts +41 -0
  43. package/dist/file-preview/src/file-preview.vue.d.ts +42 -0
  44. package/dist/file-preview/src/iframe-preview.vue.d.ts +16 -0
  45. package/dist/file-preview/src/image-preview.vue.d.ts +14 -0
  46. package/dist/file-preview/src/method.d.ts +9 -0
  47. package/dist/file-preview/src/music-preview.vue.d.ts +14 -0
  48. package/dist/file-preview/src/video-preview.vue.d.ts +14 -0
  49. package/dist/hooks/dom/index.d.ts +1 -0
  50. package/dist/hooks/dom/use-z-index.d.ts +3 -0
  51. package/dist/hooks/event/index.d.ts +1 -0
  52. package/dist/hooks/event/use-click-outside.d.ts +2 -0
  53. package/dist/hooks/event/use-same-target.d.ts +5 -0
  54. package/dist/hooks/index.d.ts +4 -0
  55. package/dist/hooks/locale/index.d.ts +1 -0
  56. package/dist/hooks/locale/use-locale.d.ts +10 -0
  57. package/dist/hooks/vue/index.d.ts +2 -0
  58. package/dist/hooks/vue/use-children.d.ts +5 -0
  59. package/dist/hooks/vue/use-parent.d.ts +11 -0
  60. package/dist/icon/assets/font/iconfont.json.d.ts +2034 -0
  61. package/dist/icon/index.d.ts +98 -0
  62. package/dist/icon/src/icon.d.ts +42 -0
  63. package/dist/icon/src/icon.vue.d.ts +53 -0
  64. package/dist/image/index.d.ts +142 -0
  65. package/dist/image/src/image.d.ts +50 -0
  66. package/dist/image/src/image.vue.d.ts +92 -0
  67. package/dist/index.d.ts +80 -0
  68. package/dist/index.es.js +64743 -0
  69. package/dist/index.umd.js +64742 -0
  70. package/dist/infinite-scroll/index.d.ts +319 -0
  71. package/dist/infinite-scroll/src/infinite-scroll.d.ts +123 -0
  72. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +197 -0
  73. package/dist/loading/index.d.ts +72 -0
  74. package/dist/loading/src/loading.d.ts +27 -0
  75. package/dist/loading/src/loading.vue.d.ts +49 -0
  76. package/dist/locale/index.d.ts +17 -0
  77. package/dist/locale/lang/ar.d.ts +40 -0
  78. package/dist/locale/lang/en.d.ts +40 -0
  79. package/dist/locale/lang/ms.d.ts +40 -0
  80. package/dist/locale/lang/th.d.ts +40 -0
  81. package/dist/locale/lang/vi.d.ts +40 -0
  82. package/dist/locale/lang/zh-cn.d.ts +40 -0
  83. package/dist/locale/lang/zh-tw.d.ts +40 -0
  84. package/dist/message/index.d.ts +4 -0
  85. package/dist/message/src/instance.d.ts +16 -0
  86. package/dist/message/src/message.d.ts +69 -0
  87. package/dist/message/src/message.vue.d.ts +96 -0
  88. package/dist/message/src/method.d.ts +3 -0
  89. package/dist/overlay/index.d.ts +54 -0
  90. package/dist/overlay/src/overlay.d.ts +18 -0
  91. package/dist/overlay/src/overlay.vue.d.ts +38 -0
  92. package/dist/popover/index.d.ts +596 -0
  93. package/dist/popover/src/arrow.vue.d.ts +6 -0
  94. package/dist/popover/src/content.vue.d.ts +216 -0
  95. package/dist/popover/src/popover.d.ts +217 -0
  96. package/dist/popover/src/popover.vue.d.ts +344 -0
  97. package/dist/popover/src/trigger-ref.d.ts +17 -0
  98. package/dist/popover/src/trigger.vue.d.ts +59 -0
  99. package/dist/poster/index.d.ts +3 -0
  100. package/dist/poster/src/method.d.ts +51 -0
  101. package/dist/progress/index.d.ts +170 -0
  102. package/dist/progress/src/progress.d.ts +47 -0
  103. package/dist/progress/src/progress.vue.d.ts +109 -0
  104. package/dist/qrcode/index.d.ts +160 -0
  105. package/dist/qrcode/src/qrcode.d.ts +71 -0
  106. package/dist/qrcode/src/qrcode.vue.d.ts +88 -0
  107. package/dist/style.css +20075 -0
  108. package/dist/tab/index.d.ts +57 -0
  109. package/dist/tab/src/tab.d.ts +23 -0
  110. package/dist/tab/src/tab.vue.d.ts +25 -0
  111. package/dist/table/index.d.ts +20 -0
  112. package/dist/table/src/table.vue.d.ts +19 -0
  113. package/dist/table-column/index.d.ts +22 -0
  114. package/dist/table-column/src/table-column.vue.d.ts +21 -0
  115. package/dist/tabs/index.d.ts +71 -0
  116. package/dist/tabs/src/tabs.d.ts +26 -0
  117. package/dist/tabs/src/tabs.vue.d.ts +48 -0
  118. package/dist/tag/index.d.ts +118 -0
  119. package/dist/tag/src/tag.d.ts +44 -0
  120. package/dist/tag/src/tag.vue.d.ts +75 -0
  121. package/dist/teleport/index.d.ts +52 -0
  122. package/dist/teleport/src/teleport.d.ts +12 -0
  123. package/dist/teleport/src/teleport.vue.d.ts +38 -0
  124. package/dist/tooltip/index.d.ts +934 -0
  125. package/dist/tooltip/src/tooltip.d.ts +94 -0
  126. package/dist/tooltip/src/tooltip.vue.d.ts +1295 -0
  127. package/dist/upload/index.d.ts +982 -0
  128. package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +29 -0
  129. package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +59 -0
  130. package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +59 -0
  131. package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +47 -0
  132. package/dist/upload/src/trigger/upload-image-grid-trigger.vue.d.ts +45 -0
  133. package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +135 -0
  134. package/dist/upload/src/upload-config.d.ts +3 -0
  135. package/dist/upload/src/upload-content.d.ts +63 -0
  136. package/dist/upload/src/upload-content.vue.d.ts +129 -0
  137. package/dist/upload/src/upload-full-screen-drag.vue.d.ts +12 -0
  138. package/dist/upload/src/upload-image-copper.vue.d.ts +9 -0
  139. package/dist/upload/src/upload.d.ts +196 -0
  140. package/dist/upload/src/upload.vue.d.ts +825 -0
  141. package/dist/upload/src/use-full-scree-drag.d.ts +6 -0
  142. package/dist/utils/class/deferred.d.ts +7 -0
  143. package/dist/utils/dom/__test__/is-valid-css-value.test.d.ts +1 -0
  144. package/dist/utils/dom/index.d.ts +2 -0
  145. package/dist/utils/dom/style.d.ts +10 -0
  146. package/dist/utils/dom/unit.d.ts +35 -0
  147. package/dist/utils/function/index.d.ts +1 -0
  148. package/dist/utils/function/shared.d.ts +2 -0
  149. package/dist/utils/index.d.ts +5 -0
  150. package/dist/utils/prop/index.d.ts +1 -0
  151. package/dist/utils/prop/size.d.ts +9 -0
  152. package/dist/utils/vue/children.d.ts +5 -0
  153. package/dist/utils/vue/index.d.ts +2 -0
  154. package/dist/utils/vue/install.d.ts +5 -0
  155. package/package.json +41 -0
@@ -0,0 +1,319 @@
1
+ export declare const MtInfiniteScroll: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly modelValue: {
4
+ readonly type: ArrayConstructor;
5
+ readonly default: () => never[];
6
+ };
7
+ readonly height: {
8
+ readonly type: import('vue').PropType<number | string>;
9
+ readonly validator: (value: number | string) => boolean;
10
+ readonly default: "100%";
11
+ };
12
+ readonly upScrollPageNum: {
13
+ readonly type: NumberConstructor;
14
+ readonly default: 1;
15
+ };
16
+ readonly upScrollPageSize: {
17
+ readonly type: NumberConstructor;
18
+ readonly default: 10;
19
+ };
20
+ readonly upScrollEnabled: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: true;
23
+ };
24
+ readonly upScrollImmediate: {
25
+ readonly type: BooleanConstructor;
26
+ readonly default: true;
27
+ };
28
+ readonly scrollEventDelay: {
29
+ readonly type: NumberConstructor;
30
+ readonly default: 30;
31
+ };
32
+ readonly upScrollDistance: {
33
+ readonly type: NumberConstructor;
34
+ readonly default: 75;
35
+ };
36
+ readonly hideNoMoreByLimit: {
37
+ readonly type: NumberConstructor;
38
+ readonly default: 5;
39
+ };
40
+ readonly loadingMoreLoadingText: {
41
+ readonly type: StringConstructor;
42
+ readonly default: "加载中...";
43
+ };
44
+ readonly loadingMoreNoMoreText: {
45
+ readonly type: StringConstructor;
46
+ readonly default: "没有更多了";
47
+ };
48
+ readonly emptyText: {
49
+ readonly type: StringConstructor;
50
+ readonly default: "没有数据哦~";
51
+ };
52
+ readonly emptyImg: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "";
55
+ };
56
+ readonly emptyImageWidth: {
57
+ readonly type: import('vue').PropType<number | string>;
58
+ readonly validator: (value: number | string) => boolean;
59
+ readonly default: 200;
60
+ };
61
+ readonly queryMinDelay: {
62
+ readonly type: NumberConstructor;
63
+ readonly default: 0;
64
+ };
65
+ readonly showBacktop: {
66
+ readonly type: BooleanConstructor;
67
+ readonly default: false;
68
+ };
69
+ }>> & Readonly<{
70
+ "onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
71
+ onQuery?: ((args_0: {
72
+ pageNum: number;
73
+ pageSize: number;
74
+ }) => any) | undefined;
75
+ }>, {
76
+ endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
77
+ endError: () => void;
78
+ resetUpScroll: () => Promise<void>;
79
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
80
+ "update:modelValue": (args_0: any[]) => any;
81
+ query: (args_0: {
82
+ pageNum: number;
83
+ pageSize: number;
84
+ }) => any;
85
+ }, import('vue').PublicProps, {
86
+ readonly height: string | number;
87
+ readonly modelValue: unknown[];
88
+ readonly upScrollPageNum: number;
89
+ readonly upScrollPageSize: number;
90
+ readonly upScrollEnabled: boolean;
91
+ readonly upScrollImmediate: boolean;
92
+ readonly scrollEventDelay: number;
93
+ readonly upScrollDistance: number;
94
+ readonly hideNoMoreByLimit: number;
95
+ readonly loadingMoreLoadingText: string;
96
+ readonly loadingMoreNoMoreText: string;
97
+ readonly emptyText: string;
98
+ readonly emptyImg: string;
99
+ readonly emptyImageWidth: string | number;
100
+ readonly queryMinDelay: number;
101
+ readonly showBacktop: boolean;
102
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
103
+ containerRef: HTMLDivElement;
104
+ contentRef: HTMLDivElement;
105
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<import('vue').ExtractPropTypes<{
113
+ readonly modelValue: {
114
+ readonly type: ArrayConstructor;
115
+ readonly default: () => never[];
116
+ };
117
+ readonly height: {
118
+ readonly type: import('vue').PropType<number | string>;
119
+ readonly validator: (value: number | string) => boolean;
120
+ readonly default: "100%";
121
+ };
122
+ readonly upScrollPageNum: {
123
+ readonly type: NumberConstructor;
124
+ readonly default: 1;
125
+ };
126
+ readonly upScrollPageSize: {
127
+ readonly type: NumberConstructor;
128
+ readonly default: 10;
129
+ };
130
+ readonly upScrollEnabled: {
131
+ readonly type: BooleanConstructor;
132
+ readonly default: true;
133
+ };
134
+ readonly upScrollImmediate: {
135
+ readonly type: BooleanConstructor;
136
+ readonly default: true;
137
+ };
138
+ readonly scrollEventDelay: {
139
+ readonly type: NumberConstructor;
140
+ readonly default: 30;
141
+ };
142
+ readonly upScrollDistance: {
143
+ readonly type: NumberConstructor;
144
+ readonly default: 75;
145
+ };
146
+ readonly hideNoMoreByLimit: {
147
+ readonly type: NumberConstructor;
148
+ readonly default: 5;
149
+ };
150
+ readonly loadingMoreLoadingText: {
151
+ readonly type: StringConstructor;
152
+ readonly default: "加载中...";
153
+ };
154
+ readonly loadingMoreNoMoreText: {
155
+ readonly type: StringConstructor;
156
+ readonly default: "没有更多了";
157
+ };
158
+ readonly emptyText: {
159
+ readonly type: StringConstructor;
160
+ readonly default: "没有数据哦~";
161
+ };
162
+ readonly emptyImg: {
163
+ readonly type: StringConstructor;
164
+ readonly default: "";
165
+ };
166
+ readonly emptyImageWidth: {
167
+ readonly type: import('vue').PropType<number | string>;
168
+ readonly validator: (value: number | string) => boolean;
169
+ readonly default: 200;
170
+ };
171
+ readonly queryMinDelay: {
172
+ readonly type: NumberConstructor;
173
+ readonly default: 0;
174
+ };
175
+ readonly showBacktop: {
176
+ readonly type: BooleanConstructor;
177
+ readonly default: false;
178
+ };
179
+ }>> & Readonly<{
180
+ "onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
181
+ onQuery?: ((args_0: {
182
+ pageNum: number;
183
+ pageSize: number;
184
+ }) => any) | undefined;
185
+ }>, {
186
+ endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
187
+ endError: () => void;
188
+ resetUpScroll: () => Promise<void>;
189
+ }, {}, {}, {}, {
190
+ readonly height: string | number;
191
+ readonly modelValue: unknown[];
192
+ readonly upScrollPageNum: number;
193
+ readonly upScrollPageSize: number;
194
+ readonly upScrollEnabled: boolean;
195
+ readonly upScrollImmediate: boolean;
196
+ readonly scrollEventDelay: number;
197
+ readonly upScrollDistance: number;
198
+ readonly hideNoMoreByLimit: number;
199
+ readonly loadingMoreLoadingText: string;
200
+ readonly loadingMoreNoMoreText: string;
201
+ readonly emptyText: string;
202
+ readonly emptyImg: string;
203
+ readonly emptyImageWidth: string | number;
204
+ readonly queryMinDelay: number;
205
+ readonly showBacktop: boolean;
206
+ }>;
207
+ __isFragment?: never;
208
+ __isTeleport?: never;
209
+ __isSuspense?: never;
210
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
211
+ readonly modelValue: {
212
+ readonly type: ArrayConstructor;
213
+ readonly default: () => never[];
214
+ };
215
+ readonly height: {
216
+ readonly type: import('vue').PropType<number | string>;
217
+ readonly validator: (value: number | string) => boolean;
218
+ readonly default: "100%";
219
+ };
220
+ readonly upScrollPageNum: {
221
+ readonly type: NumberConstructor;
222
+ readonly default: 1;
223
+ };
224
+ readonly upScrollPageSize: {
225
+ readonly type: NumberConstructor;
226
+ readonly default: 10;
227
+ };
228
+ readonly upScrollEnabled: {
229
+ readonly type: BooleanConstructor;
230
+ readonly default: true;
231
+ };
232
+ readonly upScrollImmediate: {
233
+ readonly type: BooleanConstructor;
234
+ readonly default: true;
235
+ };
236
+ readonly scrollEventDelay: {
237
+ readonly type: NumberConstructor;
238
+ readonly default: 30;
239
+ };
240
+ readonly upScrollDistance: {
241
+ readonly type: NumberConstructor;
242
+ readonly default: 75;
243
+ };
244
+ readonly hideNoMoreByLimit: {
245
+ readonly type: NumberConstructor;
246
+ readonly default: 5;
247
+ };
248
+ readonly loadingMoreLoadingText: {
249
+ readonly type: StringConstructor;
250
+ readonly default: "加载中...";
251
+ };
252
+ readonly loadingMoreNoMoreText: {
253
+ readonly type: StringConstructor;
254
+ readonly default: "没有更多了";
255
+ };
256
+ readonly emptyText: {
257
+ readonly type: StringConstructor;
258
+ readonly default: "没有数据哦~";
259
+ };
260
+ readonly emptyImg: {
261
+ readonly type: StringConstructor;
262
+ readonly default: "";
263
+ };
264
+ readonly emptyImageWidth: {
265
+ readonly type: import('vue').PropType<number | string>;
266
+ readonly validator: (value: number | string) => boolean;
267
+ readonly default: 200;
268
+ };
269
+ readonly queryMinDelay: {
270
+ readonly type: NumberConstructor;
271
+ readonly default: 0;
272
+ };
273
+ readonly showBacktop: {
274
+ readonly type: BooleanConstructor;
275
+ readonly default: false;
276
+ };
277
+ }>> & Readonly<{
278
+ "onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
279
+ onQuery?: ((args_0: {
280
+ pageNum: number;
281
+ pageSize: number;
282
+ }) => any) | undefined;
283
+ }>, {
284
+ endSuccess: (data: Array<any>, totalSize: number) => Promise<void>;
285
+ endError: () => void;
286
+ resetUpScroll: () => Promise<void>;
287
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
288
+ "update:modelValue": (args_0: any[]) => any;
289
+ query: (args_0: {
290
+ pageNum: number;
291
+ pageSize: number;
292
+ }) => any;
293
+ }, string, {
294
+ readonly height: string | number;
295
+ readonly modelValue: unknown[];
296
+ readonly upScrollPageNum: number;
297
+ readonly upScrollPageSize: number;
298
+ readonly upScrollEnabled: boolean;
299
+ readonly upScrollImmediate: boolean;
300
+ readonly scrollEventDelay: number;
301
+ readonly upScrollDistance: number;
302
+ readonly hideNoMoreByLimit: number;
303
+ readonly loadingMoreLoadingText: string;
304
+ readonly loadingMoreNoMoreText: string;
305
+ readonly emptyText: string;
306
+ readonly emptyImg: string;
307
+ readonly emptyImageWidth: string | number;
308
+ readonly queryMinDelay: number;
309
+ readonly showBacktop: boolean;
310
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
311
+ $slots: Readonly<{
312
+ default: any;
313
+ empty: any;
314
+ }> & {
315
+ default: any;
316
+ empty: any;
317
+ };
318
+ }) & import('vue').Plugin;
319
+ export default MtInfiniteScroll;
@@ -0,0 +1,123 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const infiniteScrollProps: {
3
+ /**
4
+ * 绑定最终的列表渲染变量(页面data中声明的值),当列表数据改变时,所绑定的变量会跟着改变
5
+ */
6
+ readonly modelValue: {
7
+ readonly type: ArrayConstructor;
8
+ readonly default: () => never[];
9
+ };
10
+ /**
11
+ * 滚动区域高度
12
+ */
13
+ readonly height: {
14
+ readonly type: PropType<number | string>;
15
+ readonly validator: (value: number | string) => boolean;
16
+ readonly default: "100%";
17
+ };
18
+ /**
19
+ * 默认页码
20
+ */
21
+ readonly upScrollPageNum: {
22
+ readonly type: NumberConstructor;
23
+ readonly default: 1;
24
+ };
25
+ /**
26
+ * 默认每页加载数量
27
+ */
28
+ readonly upScrollPageSize: {
29
+ readonly type: NumberConstructor;
30
+ readonly default: 10;
31
+ };
32
+ /**
33
+ * 是否开启加载更多数据
34
+ */
35
+ readonly upScrollEnabled: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: true;
38
+ };
39
+ /**
40
+ * 是否立即上拉加载
41
+ */
42
+ readonly upScrollImmediate: {
43
+ readonly type: BooleanConstructor;
44
+ readonly default: true;
45
+ };
46
+ /**
47
+ * 滚动节流时延,单位为ms
48
+ */
49
+ readonly scrollEventDelay: {
50
+ readonly type: NumberConstructor;
51
+ readonly default: 30;
52
+ };
53
+ /**
54
+ * 上拉加载的阈值
55
+ */
56
+ readonly upScrollDistance: {
57
+ readonly type: NumberConstructor;
58
+ readonly default: 75;
59
+ };
60
+ /**
61
+ * 当没有更多数据且分页数组长度少于这个值时,隐藏没有更多
62
+ */
63
+ readonly hideNoMoreByLimit: {
64
+ readonly type: NumberConstructor;
65
+ readonly default: 5;
66
+ };
67
+ /**
68
+ * 滑动到底部"加载中"文字
69
+ */
70
+ readonly loadingMoreLoadingText: {
71
+ readonly type: StringConstructor;
72
+ readonly default: "加载中...";
73
+ };
74
+ /**
75
+ * 滑动到底部"没有更多"文字
76
+ */
77
+ readonly loadingMoreNoMoreText: {
78
+ readonly type: StringConstructor;
79
+ readonly default: "没有更多了";
80
+ };
81
+ /**
82
+ * 空数据图描述文字
83
+ */
84
+ readonly emptyText: {
85
+ readonly type: StringConstructor;
86
+ readonly default: "没有数据哦~";
87
+ };
88
+ /**
89
+ * 空数据图图片地址
90
+ */
91
+ readonly emptyImg: {
92
+ readonly type: StringConstructor;
93
+ readonly default: "";
94
+ };
95
+ /**
96
+ * 空数据图图片宽度
97
+ */
98
+ readonly emptyImageWidth: {
99
+ readonly type: PropType<number | string>;
100
+ readonly validator: (value: number | string) => boolean;
101
+ readonly default: 200;
102
+ };
103
+ readonly queryMinDelay: {
104
+ readonly type: NumberConstructor;
105
+ readonly default: 0;
106
+ };
107
+ /**
108
+ * 是否显示返回顶部按钮
109
+ */
110
+ readonly showBacktop: {
111
+ readonly type: BooleanConstructor;
112
+ readonly default: false;
113
+ };
114
+ };
115
+ declare enum UpScrollStatusEnum {
116
+ DEFAULT = 0,
117
+ LOADING = 1,
118
+ NO_MORE = 2,
119
+ EMPTY = 3,
120
+ FAIL = 4
121
+ }
122
+ export type InfiniteScrollProps = ExtractPropTypes<typeof infiniteScrollProps>;
123
+ export { infiniteScrollProps, UpScrollStatusEnum };
@@ -0,0 +1,197 @@
1
+ declare function endError(): void;
2
+ declare function endSuccess(data: Array<any>, totalSize: number): Promise<void>;
3
+ declare function resetUpScroll(): Promise<void>;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<{
7
+ default: any;
8
+ empty: any;
9
+ }> & {
10
+ default: any;
11
+ empty: any;
12
+ };
13
+ refs: {
14
+ containerRef: HTMLDivElement;
15
+ contentRef: HTMLDivElement;
16
+ };
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
21
+ readonly modelValue: {
22
+ readonly type: ArrayConstructor;
23
+ readonly default: () => never[];
24
+ };
25
+ readonly height: {
26
+ readonly type: import('vue').PropType<number | string>;
27
+ readonly validator: (value: number | string) => boolean;
28
+ readonly default: "100%";
29
+ };
30
+ readonly upScrollPageNum: {
31
+ readonly type: NumberConstructor;
32
+ readonly default: 1;
33
+ };
34
+ readonly upScrollPageSize: {
35
+ readonly type: NumberConstructor;
36
+ readonly default: 10;
37
+ };
38
+ readonly upScrollEnabled: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: true;
41
+ };
42
+ readonly upScrollImmediate: {
43
+ readonly type: BooleanConstructor;
44
+ readonly default: true;
45
+ };
46
+ readonly scrollEventDelay: {
47
+ readonly type: NumberConstructor;
48
+ readonly default: 30;
49
+ };
50
+ readonly upScrollDistance: {
51
+ readonly type: NumberConstructor;
52
+ readonly default: 75;
53
+ };
54
+ readonly hideNoMoreByLimit: {
55
+ readonly type: NumberConstructor;
56
+ readonly default: 5;
57
+ };
58
+ readonly loadingMoreLoadingText: {
59
+ readonly type: StringConstructor;
60
+ readonly default: "加载中...";
61
+ };
62
+ readonly loadingMoreNoMoreText: {
63
+ readonly type: StringConstructor;
64
+ readonly default: "没有更多了";
65
+ };
66
+ readonly emptyText: {
67
+ readonly type: StringConstructor;
68
+ readonly default: "没有数据哦~";
69
+ };
70
+ readonly emptyImg: {
71
+ readonly type: StringConstructor;
72
+ readonly default: "";
73
+ };
74
+ readonly emptyImageWidth: {
75
+ readonly type: import('vue').PropType<number | string>;
76
+ readonly validator: (value: number | string) => boolean;
77
+ readonly default: 200;
78
+ };
79
+ readonly queryMinDelay: {
80
+ readonly type: NumberConstructor;
81
+ readonly default: 0;
82
+ };
83
+ readonly showBacktop: {
84
+ readonly type: BooleanConstructor;
85
+ readonly default: false;
86
+ };
87
+ }>, {
88
+ endSuccess: typeof endSuccess;
89
+ endError: typeof endError;
90
+ resetUpScroll: typeof resetUpScroll;
91
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
92
+ "update:modelValue": (args_0: any[]) => any;
93
+ query: (args_0: {
94
+ pageNum: number;
95
+ pageSize: number;
96
+ }) => any;
97
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
98
+ readonly modelValue: {
99
+ readonly type: ArrayConstructor;
100
+ readonly default: () => never[];
101
+ };
102
+ readonly height: {
103
+ readonly type: import('vue').PropType<number | string>;
104
+ readonly validator: (value: number | string) => boolean;
105
+ readonly default: "100%";
106
+ };
107
+ readonly upScrollPageNum: {
108
+ readonly type: NumberConstructor;
109
+ readonly default: 1;
110
+ };
111
+ readonly upScrollPageSize: {
112
+ readonly type: NumberConstructor;
113
+ readonly default: 10;
114
+ };
115
+ readonly upScrollEnabled: {
116
+ readonly type: BooleanConstructor;
117
+ readonly default: true;
118
+ };
119
+ readonly upScrollImmediate: {
120
+ readonly type: BooleanConstructor;
121
+ readonly default: true;
122
+ };
123
+ readonly scrollEventDelay: {
124
+ readonly type: NumberConstructor;
125
+ readonly default: 30;
126
+ };
127
+ readonly upScrollDistance: {
128
+ readonly type: NumberConstructor;
129
+ readonly default: 75;
130
+ };
131
+ readonly hideNoMoreByLimit: {
132
+ readonly type: NumberConstructor;
133
+ readonly default: 5;
134
+ };
135
+ readonly loadingMoreLoadingText: {
136
+ readonly type: StringConstructor;
137
+ readonly default: "加载中...";
138
+ };
139
+ readonly loadingMoreNoMoreText: {
140
+ readonly type: StringConstructor;
141
+ readonly default: "没有更多了";
142
+ };
143
+ readonly emptyText: {
144
+ readonly type: StringConstructor;
145
+ readonly default: "没有数据哦~";
146
+ };
147
+ readonly emptyImg: {
148
+ readonly type: StringConstructor;
149
+ readonly default: "";
150
+ };
151
+ readonly emptyImageWidth: {
152
+ readonly type: import('vue').PropType<number | string>;
153
+ readonly validator: (value: number | string) => boolean;
154
+ readonly default: 200;
155
+ };
156
+ readonly queryMinDelay: {
157
+ readonly type: NumberConstructor;
158
+ readonly default: 0;
159
+ };
160
+ readonly showBacktop: {
161
+ readonly type: BooleanConstructor;
162
+ readonly default: false;
163
+ };
164
+ }>> & Readonly<{
165
+ "onUpdate:modelValue"?: ((args_0: any[]) => any) | undefined;
166
+ onQuery?: ((args_0: {
167
+ pageNum: number;
168
+ pageSize: number;
169
+ }) => any) | undefined;
170
+ }>, {
171
+ readonly height: string | number;
172
+ readonly modelValue: unknown[];
173
+ readonly upScrollPageNum: number;
174
+ readonly upScrollPageSize: number;
175
+ readonly upScrollEnabled: boolean;
176
+ readonly upScrollImmediate: boolean;
177
+ readonly scrollEventDelay: number;
178
+ readonly upScrollDistance: number;
179
+ readonly hideNoMoreByLimit: number;
180
+ readonly loadingMoreLoadingText: string;
181
+ readonly loadingMoreNoMoreText: string;
182
+ readonly emptyText: string;
183
+ readonly emptyImg: string;
184
+ readonly emptyImageWidth: string | number;
185
+ readonly queryMinDelay: number;
186
+ readonly showBacktop: boolean;
187
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
188
+ containerRef: HTMLDivElement;
189
+ contentRef: HTMLDivElement;
190
+ }, HTMLDivElement>;
191
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
192
+ export default _default;
193
+ type __VLS_WithTemplateSlots<T, S> = T & {
194
+ new (): {
195
+ $slots: S;
196
+ };
197
+ };