@dcloudio/uni-app-x 0.7.64 → 0.7.66

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 (48) hide show
  1. package/package.json +2 -1
  2. package/types/dom2/UniNativeBaseView.d.ts +9 -2
  3. package/types/dom2/sharedData.d.ts +26 -14
  4. package/types/process.d.ts +12 -3
  5. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  7. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -2
  8. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +0 -2
  9. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +0 -1
  10. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +0 -173
  11. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -2
  12. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -4
  13. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +0 -4
  14. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +0 -2
  15. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +0 -10
  16. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/global.d.ts +0 -2
  17. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/index.d.ts +0 -1
  18. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/interface.d.ts +1 -7
  19. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/global.d.ts +0 -2
  20. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/index.d.ts +0 -1
  21. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/interface.d.ts +1 -7
  22. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2 -4
  23. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +0 -2
  24. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +0 -1
  25. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +0 -5
  26. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +0 -2
  27. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +0 -1
  28. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -7
  29. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +0 -2
  30. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +0 -1
  31. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +1 -8
  32. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +0 -16
  33. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +0 -8
  34. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +57 -2165
  35. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/global.d.ts +42 -0
  36. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/index.d.ts +20 -0
  37. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +1062 -0
  38. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +0 -2
  39. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +0 -1
  40. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +3 -10
  41. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +0 -5
  42. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +0 -5
  43. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +2 -4
  44. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +0 -14
  45. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +0 -7
  46. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +0 -148
  47. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +0 -4
  48. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +0 -8
@@ -0,0 +1,1062 @@
1
+
2
+ /**
3
+ * uni.showLoading成功回调参数
4
+ */
5
+ export type ShowLoadingSuccess = {
6
+ }
7
+
8
+ /**
9
+ * uni.showLoading失败回调参数
10
+ */
11
+ export type ShowLoadingFailErrorCode = 4
12
+ export interface ShowLoadingFail extends IUniError {
13
+ errCode: ShowLoadingFailErrorCode
14
+ }
15
+
16
+ export class ShowLoadingFailImpl extends UniError implements ShowLoadingFail {
17
+ override errCode: ShowLoadingFailErrorCode
18
+ constructor(errMsg: string = 'showLoading:fail cancel', errCode: ShowLoadingFailErrorCode = 4) {
19
+ super()
20
+ this.errMsg = errMsg
21
+ this.errCode = errCode
22
+ }
23
+ }
24
+
25
+ /**
26
+ * uni.showLoading成功回调函数定义
27
+ * @uniPlatform {
28
+ * "mp": {
29
+ * "weixin": {
30
+ * "hostVer": "√",
31
+ * "uniVer": "√",
32
+ * "unixVer": "4.41"
33
+ * },
34
+ * "alipay": {
35
+ * "hostVer": "-",
36
+ * "uniVer": "-",
37
+ * "unixVer": "-"
38
+ * },
39
+ * "baidu": {
40
+ * "hostVer": "-",
41
+ * "uniVer": "-",
42
+ * "unixVer": "-"
43
+ * },
44
+ * "toutiao": {
45
+ * "hostVer": "-",
46
+ * "uniVer": "-",
47
+ * "unixVer": "-"
48
+ * },
49
+ * "lark": {
50
+ * "hostVer": "-",
51
+ * "uniVer": "-",
52
+ * "unixVer": "-"
53
+ * },
54
+ * "qq": {
55
+ * "hostVer": "-",
56
+ * "uniVer": "-",
57
+ * "unixVer": "-"
58
+ * },
59
+ * "kuaishou": {
60
+ * "hostVer": "-",
61
+ * "uniVer": "-",
62
+ * "unixVer": "-"
63
+ * },
64
+ * "jd": {
65
+ * "hostVer": "-",
66
+ * "uniVer": "-",
67
+ * "unixVer": "-"
68
+ * }
69
+ * }
70
+ * }
71
+ */
72
+ export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
73
+ /**
74
+ * uni.showLoading失败回调函数定义
75
+ * @uniPlatform {
76
+ * "mp": {
77
+ * "weixin": {
78
+ * "hostVer": "√",
79
+ * "uniVer": "√",
80
+ * "unixVer": "4.41"
81
+ * },
82
+ * "alipay": {
83
+ * "hostVer": "-",
84
+ * "uniVer": "-",
85
+ * "unixVer": "-"
86
+ * },
87
+ * "baidu": {
88
+ * "hostVer": "-",
89
+ * "uniVer": "-",
90
+ * "unixVer": "-"
91
+ * },
92
+ * "toutiao": {
93
+ * "hostVer": "-",
94
+ * "uniVer": "-",
95
+ * "unixVer": "-"
96
+ * },
97
+ * "lark": {
98
+ * "hostVer": "-",
99
+ * "uniVer": "-",
100
+ * "unixVer": "-"
101
+ * },
102
+ * "qq": {
103
+ * "hostVer": "-",
104
+ * "uniVer": "-",
105
+ * "unixVer": "-"
106
+ * },
107
+ * "kuaishou": {
108
+ * "hostVer": "-",
109
+ * "uniVer": "-",
110
+ * "unixVer": "-"
111
+ * },
112
+ * "jd": {
113
+ * "hostVer": "-",
114
+ * "uniVer": "-",
115
+ * "unixVer": "-"
116
+ * }
117
+ * }
118
+ * }
119
+ */
120
+ export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
121
+ /**
122
+ * uni.showLoading完成回调函数定义
123
+ * @uniPlatform {
124
+ * "mp": {
125
+ * "weixin": {
126
+ * "hostVer": "√",
127
+ * "uniVer": "√",
128
+ * "unixVer": "4.41"
129
+ * },
130
+ * "alipay": {
131
+ * "hostVer": "-",
132
+ * "uniVer": "-",
133
+ * "unixVer": "-"
134
+ * },
135
+ * "baidu": {
136
+ * "hostVer": "-",
137
+ * "uniVer": "-",
138
+ * "unixVer": "-"
139
+ * },
140
+ * "toutiao": {
141
+ * "hostVer": "-",
142
+ * "uniVer": "-",
143
+ * "unixVer": "-"
144
+ * },
145
+ * "lark": {
146
+ * "hostVer": "-",
147
+ * "uniVer": "-",
148
+ * "unixVer": "-"
149
+ * },
150
+ * "qq": {
151
+ * "hostVer": "-",
152
+ * "uniVer": "-",
153
+ * "unixVer": "-"
154
+ * },
155
+ * "kuaishou": {
156
+ * "hostVer": "-",
157
+ * "uniVer": "-",
158
+ * "unixVer": "-"
159
+ * },
160
+ * "jd": {
161
+ * "hostVer": "-",
162
+ * "uniVer": "-",
163
+ * "unixVer": "-"
164
+ * }
165
+ * }
166
+ * }
167
+ */
168
+ export type ShowLoadingCompleteCallback = (res: any) => void
169
+
170
+ /**
171
+ * uni.showLoading参数定义
172
+ */
173
+ export type ShowLoadingOptions = {
174
+ /**
175
+ * 提示的内容,长度与 icon 取值有关。
176
+ * @uniPlatform {
177
+ * "mp": {
178
+ * "weixin": {
179
+ * "hostVer": "√",
180
+ * "uniVer": "√",
181
+ * "unixVer": "4.41"
182
+ * },
183
+ * "alipay": {
184
+ * "hostVer": "-",
185
+ * "uniVer": "-",
186
+ * "unixVer": "-"
187
+ * },
188
+ * "baidu": {
189
+ * "hostVer": "-",
190
+ * "uniVer": "-",
191
+ * "unixVer": "-"
192
+ * },
193
+ * "toutiao": {
194
+ * "hostVer": "-",
195
+ * "uniVer": "-",
196
+ * "unixVer": "-"
197
+ * },
198
+ * "lark": {
199
+ * "hostVer": "-",
200
+ * "uniVer": "-",
201
+ * "unixVer": "-"
202
+ * },
203
+ * "qq": {
204
+ * "hostVer": "-",
205
+ * "uniVer": "-",
206
+ * "unixVer": "-"
207
+ * },
208
+ * "kuaishou": {
209
+ * "hostVer": "-",
210
+ * "uniVer": "-",
211
+ * "unixVer": "-"
212
+ * },
213
+ * "jd": {
214
+ * "hostVer": "-",
215
+ * "uniVer": "-",
216
+ * "unixVer": "-"
217
+ * }
218
+ * }
219
+ * }
220
+ */
221
+ title: string,
222
+ /**
223
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
224
+ * @uniPlatform {
225
+ * "mp": {
226
+ * "weixin": {
227
+ * "hostVer": "√",
228
+ * "uniVer": "√",
229
+ * "unixVer": "4.41"
230
+ * },
231
+ * "alipay": {
232
+ * "hostVer": "-",
233
+ * "uniVer": "-",
234
+ * "unixVer": "-"
235
+ * },
236
+ * "baidu": {
237
+ * "hostVer": "-",
238
+ * "uniVer": "-",
239
+ * "unixVer": "-"
240
+ * },
241
+ * "toutiao": {
242
+ * "hostVer": "-",
243
+ * "uniVer": "-",
244
+ * "unixVer": "-"
245
+ * },
246
+ * "lark": {
247
+ * "hostVer": "-",
248
+ * "uniVer": "-",
249
+ * "unixVer": "-"
250
+ * },
251
+ * "qq": {
252
+ * "hostVer": "-",
253
+ * "uniVer": "-",
254
+ * "unixVer": "-"
255
+ * },
256
+ * "kuaishou": {
257
+ * "hostVer": "-",
258
+ * "uniVer": "-",
259
+ * "unixVer": "-"
260
+ * },
261
+ * "jd": {
262
+ * "hostVer": "-",
263
+ * "uniVer": "-",
264
+ * "unixVer": "-"
265
+ * }
266
+ * }
267
+ * }
268
+ */
269
+ mask?: boolean | null,
270
+ /**
271
+ * 接口调用成功的回调函数
272
+ * @uniPlatform {
273
+ * "mp": {
274
+ * "weixin": {
275
+ * "hostVer": "√",
276
+ * "uniVer": "√",
277
+ * "unixVer": "4.41"
278
+ * },
279
+ * "alipay": {
280
+ * "hostVer": "-",
281
+ * "uniVer": "-",
282
+ * "unixVer": "-"
283
+ * },
284
+ * "baidu": {
285
+ * "hostVer": "-",
286
+ * "uniVer": "-",
287
+ * "unixVer": "-"
288
+ * },
289
+ * "toutiao": {
290
+ * "hostVer": "-",
291
+ * "uniVer": "-",
292
+ * "unixVer": "-"
293
+ * },
294
+ * "lark": {
295
+ * "hostVer": "-",
296
+ * "uniVer": "-",
297
+ * "unixVer": "-"
298
+ * },
299
+ * "qq": {
300
+ * "hostVer": "-",
301
+ * "uniVer": "-",
302
+ * "unixVer": "-"
303
+ * },
304
+ * "kuaishou": {
305
+ * "hostVer": "-",
306
+ * "uniVer": "-",
307
+ * "unixVer": "-"
308
+ * },
309
+ * "jd": {
310
+ * "hostVer": "-",
311
+ * "uniVer": "-",
312
+ * "unixVer": "-"
313
+ * }
314
+ * }
315
+ * }
316
+ */
317
+ success?: ShowLoadingSuccessCallback | null,
318
+ /**
319
+ * 接口调用失败的回调函数
320
+ * @uniPlatform {
321
+ * "mp": {
322
+ * "weixin": {
323
+ * "hostVer": "√",
324
+ * "uniVer": "√",
325
+ * "unixVer": "4.41"
326
+ * },
327
+ * "alipay": {
328
+ * "hostVer": "-",
329
+ * "uniVer": "-",
330
+ * "unixVer": "-"
331
+ * },
332
+ * "baidu": {
333
+ * "hostVer": "-",
334
+ * "uniVer": "-",
335
+ * "unixVer": "-"
336
+ * },
337
+ * "toutiao": {
338
+ * "hostVer": "-",
339
+ * "uniVer": "-",
340
+ * "unixVer": "-"
341
+ * },
342
+ * "lark": {
343
+ * "hostVer": "-",
344
+ * "uniVer": "-",
345
+ * "unixVer": "-"
346
+ * },
347
+ * "qq": {
348
+ * "hostVer": "-",
349
+ * "uniVer": "-",
350
+ * "unixVer": "-"
351
+ * },
352
+ * "kuaishou": {
353
+ * "hostVer": "-",
354
+ * "uniVer": "-",
355
+ * "unixVer": "-"
356
+ * },
357
+ * "jd": {
358
+ * "hostVer": "-",
359
+ * "uniVer": "-",
360
+ * "unixVer": "-"
361
+ * }
362
+ * }
363
+ * }
364
+ */
365
+ fail?: ShowLoadingFailCallback | null,
366
+ /**
367
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
368
+ * @uniPlatform {
369
+ * "mp": {
370
+ * "weixin": {
371
+ * "hostVer": "√",
372
+ * "uniVer": "√",
373
+ * "unixVer": "4.41"
374
+ * },
375
+ * "alipay": {
376
+ * "hostVer": "-",
377
+ * "uniVer": "-",
378
+ * "unixVer": "-"
379
+ * },
380
+ * "baidu": {
381
+ * "hostVer": "-",
382
+ * "uniVer": "-",
383
+ * "unixVer": "-"
384
+ * },
385
+ * "toutiao": {
386
+ * "hostVer": "-",
387
+ * "uniVer": "-",
388
+ * "unixVer": "-"
389
+ * },
390
+ * "lark": {
391
+ * "hostVer": "-",
392
+ * "uniVer": "-",
393
+ * "unixVer": "-"
394
+ * },
395
+ * "qq": {
396
+ * "hostVer": "-",
397
+ * "uniVer": "-",
398
+ * "unixVer": "-"
399
+ * },
400
+ * "kuaishou": {
401
+ * "hostVer": "-",
402
+ * "uniVer": "-",
403
+ * "unixVer": "-"
404
+ * },
405
+ * "jd": {
406
+ * "hostVer": "-",
407
+ * "uniVer": "-",
408
+ * "unixVer": "-"
409
+ * }
410
+ * }
411
+ * }
412
+ */
413
+ complete?: ShowLoadingCompleteCallback | null
414
+ }
415
+
416
+ export type ShowLoading = (options: ShowLoadingOptions) => LoadingPage | null
417
+
418
+
419
+ /**
420
+ * uni.showLoading成功回调参数
421
+ */
422
+ export type HideLoadingSuccess = {
423
+ }
424
+
425
+ /**
426
+ * uni.showLoading失败回调参数
427
+ */
428
+ export type HideLoadingFailErrorCode = 4
429
+ /**
430
+ * uni.showLoading失败回调参数
431
+ * @uniPlatform {
432
+ * "mp": {
433
+ * "weixin": {
434
+ * "hostVer": "√",
435
+ * "uniVer": "√",
436
+ * "unixVer": "4.41"
437
+ * },
438
+ * "alipay": {
439
+ * "hostVer": "-",
440
+ * "uniVer": "-",
441
+ * "unixVer": "-"
442
+ * },
443
+ * "baidu": {
444
+ * "hostVer": "-",
445
+ * "uniVer": "-",
446
+ * "unixVer": "-"
447
+ * },
448
+ * "toutiao": {
449
+ * "hostVer": "-",
450
+ * "uniVer": "-",
451
+ * "unixVer": "-"
452
+ * },
453
+ * "lark": {
454
+ * "hostVer": "-",
455
+ * "uniVer": "-",
456
+ * "unixVer": "-"
457
+ * },
458
+ * "qq": {
459
+ * "hostVer": "-",
460
+ * "uniVer": "-",
461
+ * "unixVer": "-"
462
+ * },
463
+ * "kuaishou": {
464
+ * "hostVer": "-",
465
+ * "uniVer": "-",
466
+ * "unixVer": "-"
467
+ * },
468
+ * "jd": {
469
+ * "hostVer": "-",
470
+ * "uniVer": "-",
471
+ * "unixVer": "-"
472
+ * }
473
+ * }
474
+ * }
475
+ */
476
+ export interface HideLoadingFail extends IUniError {
477
+ errCode: HideLoadingFailErrorCode
478
+ }
479
+
480
+ export class HideLoadingFailImpl extends UniError implements HideLoadingFail {
481
+ override errCode: HideLoadingFailErrorCode
482
+ constructor(errMsg: string = 'hideLoading:fail cancel', errCode: HideLoadingFailErrorCode = 4) {
483
+ super()
484
+ this.errMsg = errMsg
485
+ this.errCode = errCode
486
+ }
487
+ }
488
+
489
+
490
+ /**
491
+ * uni.showLoading成功回调函数定义
492
+ * @uniPlatform {
493
+ * "mp": {
494
+ * "weixin": {
495
+ * "hostVer": "√",
496
+ * "uniVer": "√",
497
+ * "unixVer": "4.41"
498
+ * },
499
+ * "alipay": {
500
+ * "hostVer": "-",
501
+ * "uniVer": "-",
502
+ * "unixVer": "-"
503
+ * },
504
+ * "baidu": {
505
+ * "hostVer": "-",
506
+ * "uniVer": "-",
507
+ * "unixVer": "-"
508
+ * },
509
+ * "toutiao": {
510
+ * "hostVer": "-",
511
+ * "uniVer": "-",
512
+ * "unixVer": "-"
513
+ * },
514
+ * "lark": {
515
+ * "hostVer": "-",
516
+ * "uniVer": "-",
517
+ * "unixVer": "-"
518
+ * },
519
+ * "qq": {
520
+ * "hostVer": "-",
521
+ * "uniVer": "-",
522
+ * "unixVer": "-"
523
+ * },
524
+ * "kuaishou": {
525
+ * "hostVer": "-",
526
+ * "uniVer": "-",
527
+ * "unixVer": "-"
528
+ * },
529
+ * "jd": {
530
+ * "hostVer": "-",
531
+ * "uniVer": "-",
532
+ * "unixVer": "-"
533
+ * }
534
+ * }
535
+ * }
536
+ */
537
+ export type HideLoadingSuccessCallback = (res: HideLoadingSuccess) => void
538
+ /**
539
+ * uni.showLoading失败回调函数定义
540
+ * @uniPlatform {
541
+ * "mp": {
542
+ * "weixin": {
543
+ * "hostVer": "√",
544
+ * "uniVer": "√",
545
+ * "unixVer": "4.41"
546
+ * },
547
+ * "alipay": {
548
+ * "hostVer": "-",
549
+ * "uniVer": "-",
550
+ * "unixVer": "-"
551
+ * },
552
+ * "baidu": {
553
+ * "hostVer": "-",
554
+ * "uniVer": "-",
555
+ * "unixVer": "-"
556
+ * },
557
+ * "toutiao": {
558
+ * "hostVer": "-",
559
+ * "uniVer": "-",
560
+ * "unixVer": "-"
561
+ * },
562
+ * "lark": {
563
+ * "hostVer": "-",
564
+ * "uniVer": "-",
565
+ * "unixVer": "-"
566
+ * },
567
+ * "qq": {
568
+ * "hostVer": "-",
569
+ * "uniVer": "-",
570
+ * "unixVer": "-"
571
+ * },
572
+ * "kuaishou": {
573
+ * "hostVer": "-",
574
+ * "uniVer": "-",
575
+ * "unixVer": "-"
576
+ * },
577
+ * "jd": {
578
+ * "hostVer": "-",
579
+ * "uniVer": "-",
580
+ * "unixVer": "-"
581
+ * }
582
+ * }
583
+ * }
584
+ */
585
+ export type HideLoadingFailCallback = (res: HideLoadingFail) => void
586
+ /**
587
+ * uni.showLoading完成回调函数定义
588
+ * @uniPlatform {
589
+ * "mp": {
590
+ * "weixin": {
591
+ * "hostVer": "√",
592
+ * "uniVer": "√",
593
+ * "unixVer": "4.41"
594
+ * },
595
+ * "alipay": {
596
+ * "hostVer": "-",
597
+ * "uniVer": "-",
598
+ * "unixVer": "-"
599
+ * },
600
+ * "baidu": {
601
+ * "hostVer": "-",
602
+ * "uniVer": "-",
603
+ * "unixVer": "-"
604
+ * },
605
+ * "toutiao": {
606
+ * "hostVer": "-",
607
+ * "uniVer": "-",
608
+ * "unixVer": "-"
609
+ * },
610
+ * "lark": {
611
+ * "hostVer": "-",
612
+ * "uniVer": "-",
613
+ * "unixVer": "-"
614
+ * },
615
+ * "qq": {
616
+ * "hostVer": "-",
617
+ * "uniVer": "-",
618
+ * "unixVer": "-"
619
+ * },
620
+ * "kuaishou": {
621
+ * "hostVer": "-",
622
+ * "uniVer": "-",
623
+ * "unixVer": "-"
624
+ * },
625
+ * "jd": {
626
+ * "hostVer": "-",
627
+ * "uniVer": "-",
628
+ * "unixVer": "-"
629
+ * }
630
+ * }
631
+ * }
632
+ */
633
+ export type HideLoadingCompleteCallback = (res: any) => void
634
+
635
+ /**
636
+ * uni.showLoading参数定义
637
+ */
638
+ export type HideLoadingOptions = {
639
+ /**
640
+ * 期望隐藏的目标LoadingPage 如果为null 会关闭当前栈顶全部LoadingPage
641
+ * @uniPlatform {
642
+ * "mp": {
643
+ * "weixin": {
644
+ * "hostVer": "√",
645
+ * "uniVer": "√",
646
+ * "unixVer": "4.41"
647
+ * },
648
+ * "alipay": {
649
+ * "hostVer": "-",
650
+ * "uniVer": "-",
651
+ * "unixVer": "-"
652
+ * },
653
+ * "baidu": {
654
+ * "hostVer": "-",
655
+ * "uniVer": "-",
656
+ * "unixVer": "-"
657
+ * },
658
+ * "toutiao": {
659
+ * "hostVer": "-",
660
+ * "uniVer": "-",
661
+ * "unixVer": "-"
662
+ * },
663
+ * "lark": {
664
+ * "hostVer": "-",
665
+ * "uniVer": "-",
666
+ * "unixVer": "-"
667
+ * },
668
+ * "qq": {
669
+ * "hostVer": "-",
670
+ * "uniVer": "-",
671
+ * "unixVer": "-"
672
+ * },
673
+ * "kuaishou": {
674
+ * "hostVer": "-",
675
+ * "uniVer": "-",
676
+ * "unixVer": "-"
677
+ * },
678
+ * "jd": {
679
+ * "hostVer": "-",
680
+ * "uniVer": "-",
681
+ * "unixVer": "-"
682
+ * }
683
+ * }
684
+ * }
685
+ */
686
+ loadingPage?: LoadingPage | null,
687
+ /**
688
+ * 接口调用成功的回调函数
689
+ * @uniPlatform {
690
+ * "mp": {
691
+ * "weixin": {
692
+ * "hostVer": "√",
693
+ * "uniVer": "√",
694
+ * "unixVer": "4.41"
695
+ * },
696
+ * "alipay": {
697
+ * "hostVer": "-",
698
+ * "uniVer": "-",
699
+ * "unixVer": "-"
700
+ * },
701
+ * "baidu": {
702
+ * "hostVer": "-",
703
+ * "uniVer": "-",
704
+ * "unixVer": "-"
705
+ * },
706
+ * "toutiao": {
707
+ * "hostVer": "-",
708
+ * "uniVer": "-",
709
+ * "unixVer": "-"
710
+ * },
711
+ * "lark": {
712
+ * "hostVer": "-",
713
+ * "uniVer": "-",
714
+ * "unixVer": "-"
715
+ * },
716
+ * "qq": {
717
+ * "hostVer": "-",
718
+ * "uniVer": "-",
719
+ * "unixVer": "-"
720
+ * },
721
+ * "kuaishou": {
722
+ * "hostVer": "-",
723
+ * "uniVer": "-",
724
+ * "unixVer": "-"
725
+ * },
726
+ * "jd": {
727
+ * "hostVer": "-",
728
+ * "uniVer": "-",
729
+ * "unixVer": "-"
730
+ * }
731
+ * }
732
+ * }
733
+ */
734
+ success?: HideLoadingSuccessCallback | null,
735
+ /**
736
+ * 接口调用失败的回调函数
737
+ * @uniPlatform {
738
+ * "mp": {
739
+ * "weixin": {
740
+ * "hostVer": "√",
741
+ * "uniVer": "√",
742
+ * "unixVer": "4.41"
743
+ * },
744
+ * "alipay": {
745
+ * "hostVer": "-",
746
+ * "uniVer": "-",
747
+ * "unixVer": "-"
748
+ * },
749
+ * "baidu": {
750
+ * "hostVer": "-",
751
+ * "uniVer": "-",
752
+ * "unixVer": "-"
753
+ * },
754
+ * "toutiao": {
755
+ * "hostVer": "-",
756
+ * "uniVer": "-",
757
+ * "unixVer": "-"
758
+ * },
759
+ * "lark": {
760
+ * "hostVer": "-",
761
+ * "uniVer": "-",
762
+ * "unixVer": "-"
763
+ * },
764
+ * "qq": {
765
+ * "hostVer": "-",
766
+ * "uniVer": "-",
767
+ * "unixVer": "-"
768
+ * },
769
+ * "kuaishou": {
770
+ * "hostVer": "-",
771
+ * "uniVer": "-",
772
+ * "unixVer": "-"
773
+ * },
774
+ * "jd": {
775
+ * "hostVer": "-",
776
+ * "uniVer": "-",
777
+ * "unixVer": "-"
778
+ * }
779
+ * }
780
+ * }
781
+ */
782
+ fail?: HideLoadingFailCallback | null,
783
+ /**
784
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
785
+ * @uniPlatform {
786
+ * "mp": {
787
+ * "weixin": {
788
+ * "hostVer": "√",
789
+ * "uniVer": "√",
790
+ * "unixVer": "4.41"
791
+ * },
792
+ * "alipay": {
793
+ * "hostVer": "-",
794
+ * "uniVer": "-",
795
+ * "unixVer": "-"
796
+ * },
797
+ * "baidu": {
798
+ * "hostVer": "-",
799
+ * "uniVer": "-",
800
+ * "unixVer": "-"
801
+ * },
802
+ * "toutiao": {
803
+ * "hostVer": "-",
804
+ * "uniVer": "-",
805
+ * "unixVer": "-"
806
+ * },
807
+ * "lark": {
808
+ * "hostVer": "-",
809
+ * "uniVer": "-",
810
+ * "unixVer": "-"
811
+ * },
812
+ * "qq": {
813
+ * "hostVer": "-",
814
+ * "uniVer": "-",
815
+ * "unixVer": "-"
816
+ * },
817
+ * "kuaishou": {
818
+ * "hostVer": "-",
819
+ * "uniVer": "-",
820
+ * "unixVer": "-"
821
+ * },
822
+ * "jd": {
823
+ * "hostVer": "-",
824
+ * "uniVer": "-",
825
+ * "unixVer": "-"
826
+ * }
827
+ * }
828
+ * }
829
+ */
830
+ complete?: HideLoadingCompleteCallback | null
831
+ /**
832
+ * 需要基础库: `2.22.1`
833
+ *
834
+ * 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性
835
+ *
836
+ * @uniPlatform {
837
+ * "mp": {
838
+ * "weixin": {
839
+ * "hostVer": "2.22.1",
840
+ * "uniVer": "√",
841
+ * "unixVer": "4.41"
842
+ * },
843
+ * "alipay": {
844
+ * "hostVer": "-",
845
+ * "uniVer": "-",
846
+ * "unixVer": "-"
847
+ * },
848
+ * "baidu": {
849
+ * "hostVer": "-",
850
+ * "uniVer": "-",
851
+ * "unixVer": "-"
852
+ * },
853
+ * "toutiao": {
854
+ * "hostVer": "-",
855
+ * "uniVer": "-",
856
+ * "unixVer": "-"
857
+ * },
858
+ * "lark": {
859
+ * "hostVer": "-",
860
+ * "uniVer": "-",
861
+ * "unixVer": "-"
862
+ * },
863
+ * "qq": {
864
+ * "hostVer": "-",
865
+ * "uniVer": "-",
866
+ * "unixVer": "-"
867
+ * },
868
+ * "kuaishou": {
869
+ * "hostVer": "-",
870
+ * "uniVer": "-",
871
+ * "unixVer": "-"
872
+ * },
873
+ * "jd": {
874
+ * "hostVer": "-",
875
+ * "uniVer": "-",
876
+ * "unixVer": "-"
877
+ * }
878
+ * }
879
+ * }
880
+ */
881
+ noConflict?: boolean | null;
882
+ }
883
+
884
+ export type HideLoading = (options?: HideLoadingOptions|null) => void
885
+
886
+ export type LoadingPage = UniPage;
887
+
888
+ export interface Uni {
889
+
890
+ /**
891
+ * @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
892
+ * @example
893
+ ```typescript
894
+ uni.showLoading({
895
+ title: '加载中'
896
+ });
897
+ ```
898
+ * @remark
899
+ * - showLoading 和 showToast 同时只能显示一个
900
+ * - showToast 应与 hideToast 配对使用
901
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
902
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
903
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
904
+ * @uniPlatform {
905
+ * "app": {
906
+ * "android": {
907
+ * "osVer": "5.0",
908
+ * "uniVer": "√",
909
+ * "uniUtsPlugin": "3.91",
910
+ * "unixVer": "3.91"
911
+ * },
912
+ * "ios": {
913
+ * "osVer": "12.0",
914
+ * "uniVer": "√",
915
+ * "uniUtsPlugin": "4.11",
916
+ * "unixVer": "4.11",
917
+ * "unixUtsPlugin": "4.11"
918
+ * },
919
+ * "harmony": {
920
+ * "osVer": "3.0",
921
+ * "uniVer": "4.23",
922
+ * "unixVer": "4.61"
923
+ * }
924
+ * },
925
+ * "mp": {
926
+ * "weixin": {
927
+ * "hostVer": "1.1.0",
928
+ * "uniVer": "√",
929
+ * "unixVer": "4.41"
930
+ * },
931
+ * "alipay": {
932
+ * "hostVer": "√",
933
+ * "uniVer": "√",
934
+ * "unixVer": "x"
935
+ * },
936
+ * "baidu": {
937
+ * "hostVer": "√",
938
+ * "uniVer": "√",
939
+ * "unixVer": "x"
940
+ * },
941
+ * "toutiao": {
942
+ * "hostVer": "√",
943
+ * "uniVer": "√",
944
+ * "unixVer": "x"
945
+ * },
946
+ * "lark": {
947
+ * "hostVer": "√",
948
+ * "uniVer": "√",
949
+ * "unixVer": "x"
950
+ * },
951
+ * "qq": {
952
+ * "hostVer": "√",
953
+ * "uniVer": "√",
954
+ * "unixVer": "x"
955
+ * },
956
+ * "kuaishou": {
957
+ * "hostVer": "√",
958
+ * "uniVer": "√",
959
+ * "unixVer": "x"
960
+ * },
961
+ * "jd": {
962
+ * "hostVer": "√",
963
+ * "uniVer": "√",
964
+ * "unixVer": "x"
965
+ * }
966
+ * },
967
+ * "web": {
968
+ * "uniVer": "√",
969
+ * "unixVer": "4.0"
970
+ * }
971
+ * }
972
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html
973
+ */
974
+ showLoading(options: ShowLoadingOptions): void,
975
+
976
+ /**
977
+ * @description 隐藏 loading 提示框。
978
+ * @example
979
+ ```typescript
980
+ uni.showLoading({
981
+ title: '加载中'
982
+ });
983
+
984
+ setTimeout(function () {
985
+ uni.hideLoading();
986
+ }, 2000);
987
+ ```
988
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
989
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
990
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
991
+ * @uniPlatform {
992
+ * "app": {
993
+ * "android": {
994
+ * "osVer": "5.0",
995
+ * "uniVer": "√",
996
+ * "uniUtsPlugin": "3.91",
997
+ * "unixVer": "3.91"
998
+ * },
999
+ * "ios": {
1000
+ * "osVer": "12.0",
1001
+ * "uniVer": "√",
1002
+ * "uniUtsPlugin": "4.11",
1003
+ * "unixVer": "4.11",
1004
+ * "unixUtsPlugin": "4.11"
1005
+ * },
1006
+ * "harmony": {
1007
+ * "osVer": "3.0",
1008
+ * "uniVer": "4.23",
1009
+ * "unixVer": "4.61"
1010
+ * }
1011
+ * },
1012
+ * "mp": {
1013
+ * "weixin": {
1014
+ * "hostVer": "1.1.0",
1015
+ * "uniVer": "√",
1016
+ * "unixVer": "4.41"
1017
+ * },
1018
+ * "alipay": {
1019
+ * "hostVer": "√",
1020
+ * "uniVer": "√",
1021
+ * "unixVer": "x"
1022
+ * },
1023
+ * "baidu": {
1024
+ * "hostVer": "√",
1025
+ * "uniVer": "√",
1026
+ * "unixVer": "x"
1027
+ * },
1028
+ * "toutiao": {
1029
+ * "hostVer": "√",
1030
+ * "uniVer": "√",
1031
+ * "unixVer": "x"
1032
+ * },
1033
+ * "lark": {
1034
+ * "hostVer": "√",
1035
+ * "uniVer": "√",
1036
+ * "unixVer": "x"
1037
+ * },
1038
+ * "qq": {
1039
+ * "hostVer": "√",
1040
+ * "uniVer": "√",
1041
+ * "unixVer": "x"
1042
+ * },
1043
+ * "kuaishou": {
1044
+ * "hostVer": "√",
1045
+ * "uniVer": "√",
1046
+ * "unixVer": "x"
1047
+ * },
1048
+ * "jd": {
1049
+ * "hostVer": "√",
1050
+ * "uniVer": "√",
1051
+ * "unixVer": "x"
1052
+ * }
1053
+ * },
1054
+ * "web": {
1055
+ * "uniVer": "√",
1056
+ * "unixVer": "4.0"
1057
+ * }
1058
+ * }
1059
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideLoading.html
1060
+ */
1061
+ hideLoading(options?: HideLoadingOptions|null): void,
1062
+ }