@dcloudio/uni-app-x 0.7.4 → 0.7.6

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 (114) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +9 -9
  3. package/types/native/CSSStyleDeclaration.d.ts +4 -2
  4. package/types/native/IUniElement.d.ts +26 -4
  5. package/types/native/UniApp.d.ts +2 -2
  6. package/types/native/UniCustomEvent.d.ts +25 -0
  7. package/types/native/UniElement.d.ts +6 -3
  8. package/types/native/{Event.d.ts → UniEvent.d.ts} +18 -4
  9. package/types/native/UniForm.d.ts +8 -0
  10. package/types/native/UniImageErrorEvent.d.ts +16 -0
  11. package/types/native/UniImageLoadEvent.d.ts +20 -0
  12. package/types/native/UniInputBlurEvent.d.ts +20 -0
  13. package/types/native/UniInputConfirmEvent.d.ts +16 -0
  14. package/types/native/{InputEvent.d.ts → UniInputEvent.d.ts} +6 -3
  15. package/types/native/{TextareaFocusEvent.d.ts → UniInputFocusEvent.d.ts} +6 -3
  16. package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +20 -0
  17. package/types/native/{NestedPreScrollEvent.d.ts → UniNestedPreScrollEvent.d.ts} +26 -22
  18. package/types/native/UniPage.d.ts +4 -4
  19. package/types/native/UniPageEvent.d.ts +11 -0
  20. package/types/native/UniPageScrollEvent.d.ts +14 -0
  21. package/types/native/{PointerEvent.d.ts → UniPointerEvent.d.ts} +11 -4
  22. package/types/native/UniRefresherEvent.d.ts +14 -0
  23. package/types/native/{ResizeEvent.d.ts → UniResizeEvent.d.ts} +6 -3
  24. package/types/native/{RichTextItemClickEvent.d.ts → UniRichTextItemClickEvent.d.ts} +5 -2
  25. package/types/native/{ScrollEvent.d.ts → UniScrollEvent.d.ts} +6 -3
  26. package/types/native/UniScrollToLowerEvent.d.ts +16 -0
  27. package/types/native/UniScrollToUpperEvent.d.ts +16 -0
  28. package/types/native/{StartNestedScrollEvent.d.ts → UniStartNestedScrollEvent.d.ts} +6 -3
  29. package/types/native/{StopNestedScrollEvent.d.ts → UniStopNestedScrollEvent.d.ts} +5 -2
  30. package/types/native/{SwiperAnimationFinishEvent.d.ts → UniSwiperAnimationFinishEvent.d.ts} +5 -2
  31. package/types/native/{SwiperChangeEvent.d.ts → UniSwiperChangeEvent.d.ts} +5 -2
  32. package/types/native/{SwiperTransitionEvent.d.ts → UniSwiperTransitionEvent.d.ts} +5 -2
  33. package/types/native/{TabTapEvent.d.ts → UniTabTapEvent.d.ts} +6 -3
  34. package/types/native/UniTextElement.d.ts +3 -0
  35. package/types/native/UniTextareaBlurEvent.d.ts +20 -0
  36. package/types/native/{InputFocusEvent.d.ts → UniTextareaFocusEvent.d.ts} +7 -3
  37. package/types/native/UniTextareaLineChangeEvent.d.ts +24 -0
  38. package/types/native/{TouchEvent.d.ts → UniTouchEvent.d.ts} +13 -6
  39. package/types/native/UniVideoElement.d.ts +5 -5
  40. package/types/native/{WebViewDownloadEvent.d.ts → UniWebViewDownloadEvent.d.ts} +10 -4
  41. package/types/native/{WebViewErrorEvent.d.ts → UniWebViewErrorEvent.d.ts} +10 -4
  42. package/types/native/UniWebViewLoadEvent.d.ts +27 -0
  43. package/types/native/UniWebViewLoadingEvent.d.ts +28 -0
  44. package/types/native/UniWebViewMessageEvent.d.ts +27 -0
  45. package/types/native/UniWebViewServiceMessageEvent.d.ts +1 -1
  46. package/types/native/global.d.ts +238 -111
  47. package/types/native/index.d.ts +35 -34
  48. package/types/page.d.ts +19 -19
  49. package/types/uni/core/lib/base/event/interface.d.ts +244 -4
  50. package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
  51. package/types/uni/core/lib/lifecycle/interface.d.ts +26 -1
  52. package/types/uni/core/lib/performance/interface.d.ts +26 -1
  53. package/types/uni/core/lib/route/interface.d.ts +30 -30
  54. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +73 -73
  55. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +2 -2
  56. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +9 -9
  57. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +37 -37
  58. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +122 -2
  59. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +7 -7
  60. package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +6 -6
  61. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +489 -9
  62. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  63. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  64. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -0
  65. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -0
  66. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +44 -0
  67. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +11 -7
  68. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
  69. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +22 -18
  70. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  71. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
  72. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +8 -4
  73. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +33 -29
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +7 -3
  75. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +18 -14
  76. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -94
  77. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
  78. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +6 -2
  79. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +11 -3
  80. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +176 -152
  81. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +66 -18
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +51 -11
  83. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +238 -186
  84. package/types/uni/uts-plugin-biz/global.d.ts +1 -1
  85. package/types/uni/uts-plugin-biz/index.d.ts +1 -1
  86. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +17 -18
  87. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +26 -4
  88. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +13 -2
  89. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +93 -32
  90. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -2
  91. package/types/vue/LifeCycle.d.ts +3 -3
  92. package/types/vue/PickerViewChangeEvent.d.ts +9 -2
  93. package/types/vue/ProgressActiveendEvent.d.ts +9 -2
  94. package/types/vue/RadioGroupChangeEvent.d.ts +9 -2
  95. package/types/vue/SliderChangeEvent.d.ts +9 -2
  96. package/types/vue/SwitchChangeEvent.d.ts +9 -2
  97. package/types/vue/UniFormElement.d.ts +18 -4
  98. package/uts-plugin.d.ts +6 -6
  99. package/types/native/CustomEvent.d.ts +0 -18
  100. package/types/native/ImageErrorEvent.d.ts +0 -13
  101. package/types/native/ImageLoadEvent.d.ts +0 -17
  102. package/types/native/InputBlurEvent.d.ts +0 -17
  103. package/types/native/InputConfirmEvent.d.ts +0 -13
  104. package/types/native/InputKeyboardHeightChangeEvent.d.ts +0 -17
  105. package/types/native/PageEvent.d.ts +0 -8
  106. package/types/native/PageScrollEvent.d.ts +0 -11
  107. package/types/native/RefresherEvent.d.ts +0 -10
  108. package/types/native/ScrollToLowerEvent.d.ts +0 -13
  109. package/types/native/ScrollToUpperEvent.d.ts +0 -13
  110. package/types/native/TextareaBlurEvent.d.ts +0 -17
  111. package/types/native/TextareaLineChangeEvent.d.ts +0 -21
  112. package/types/native/WebViewLoadedEvent.d.ts +0 -21
  113. package/types/native/WebViewLoadingEvent.d.ts +0 -22
  114. package/types/native/WebViewMessageEvent.d.ts +0 -21
@@ -34,41 +34,41 @@ export type RequestOptions<T> = {
34
34
  /**
35
35
  * 如果设为 json,会对返回的数据进行一次 JSON.parse,非 json 不会进行 JSON.parse
36
36
  * @defaultValue "json"
37
- * @deprecated 不支持
37
+ * @deprecated 不支持
38
38
  * @autodoc false
39
39
  */
40
40
  dataType?: string | null,
41
41
  /**
42
42
  * 设置响应的数据类型。
43
43
  *
44
- * @deprecated 不支持
44
+ * @deprecated 不支持
45
45
  * @autodoc false
46
46
  */
47
47
  responseType?: string | null,
48
48
  /**
49
49
  * 验证 ssl 证书
50
50
  *
51
- * @deprecated 不支持
51
+ * @deprecated 不支持
52
52
  * @autodoc false
53
53
  */
54
54
  sslVerify?: boolean | null,
55
55
  /**
56
56
  * 跨域请求时是否携带凭证(cookies)
57
57
  *
58
- * @uniPlatform
59
- * {
60
- * "app": {
61
- * "android": {
62
- * "osVer": "4.4",
63
- * "uniVer": "√",
64
- * "unixVer": "x"
65
- * },
66
- * "ios": {
67
- * "osVer": "9.0",
68
- * "uniVer": "√",
69
- * "unixVer": "x"
70
- * }
71
- * }
58
+ * @uniPlatform
59
+ * {
60
+ * "app": {
61
+ * "android": {
62
+ * "osVer": "4.4",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * },
66
+ * "ios": {
67
+ * "osVer": "9.0",
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * }
71
+ * }
72
72
  * }
73
73
  */
74
74
  withCredentials?: boolean | null,
@@ -156,20 +156,24 @@ export interface RequestTask {
156
156
  * @param {void}
157
157
  * @return {void}
158
158
  * @tutorial https://uniapp.dcloud.net.cn/api/request/request.html#request
159
- * @uniPlatform
160
- * {
161
- * "app": {
162
- * "android": {
163
- * "osVer": "4.4",
164
- * "uniVer": "√",
165
- * "unixVer": "3.9+"
166
- * },
167
- * "ios": {
168
- * "osVer": "9.0",
169
- * "uniVer": "√",
170
- * "unixVer": "x"
171
- * }
172
- * }
159
+ * @uniPlatform
160
+ * {
161
+ * "app": {
162
+ * "android": {
163
+ * "osVer": "4.4",
164
+ * "uniVer": "√",
165
+ * "unixVer": "3.9+"
166
+ * },
167
+ * "ios": {
168
+ * "osVer": "9.0",
169
+ * "uniVer": "√",
170
+ * "unixVer": "x"
171
+ * }
172
+ * },
173
+ * "web": {
174
+ * "uniVer": "x",
175
+ * "unixVer": "x"
176
+ * }
173
177
  * }
174
178
  * @example
175
179
  ```typescript
@@ -199,20 +203,20 @@ export type UploadFileOptionFiles = {
199
203
  uri: string,
200
204
  /**
201
205
  * 要上传的文件对象
202
- * @uniPlatform
203
- * {
204
- * "app": {
205
- * "android": {
206
- * "osVer": "4.4",
207
- * "uniVer": "√",
208
- * "unixVer": "x"
209
- * },
210
- * "ios": {
211
- * "osVer": "9.0",
212
- * "uniVer": "√",
213
- * "unixVer": "x"
214
- * }
215
- * }
206
+ * @uniPlatform
207
+ * {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "4.4",
211
+ * "uniVer": "√",
212
+ * "unixVer": "x"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "9.0",
216
+ * "uniVer": "√",
217
+ * "unixVer": "x"
218
+ * }
219
+ * }
216
220
  * }
217
221
  */
218
222
  file?: any | null
@@ -312,20 +316,24 @@ export interface UploadTask {
312
316
  * @param {void}
313
317
  * @return {void}
314
318
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
315
- * @uniPlatform
316
- * {
317
- * "app": {
318
- * "android": {
319
- * "osVer": "4.4",
320
- * "uniVer": "√",
321
- * "unixVer": "3.9+"
322
- * },
323
- * "ios": {
324
- * "osVer": "9.0",
325
- * "uniVer": "√",
326
- * "unixVer": "x"
327
- * }
328
- * }
319
+ * @uniPlatform
320
+ * {
321
+ * "app": {
322
+ * "android": {
323
+ * "osVer": "4.4",
324
+ * "uniVer": "√",
325
+ * "unixVer": "3.9+"
326
+ * },
327
+ * "ios": {
328
+ * "osVer": "9.0",
329
+ * "uniVer": "√",
330
+ * "unixVer": "x"
331
+ * }
332
+ * },
333
+ * "web": {
334
+ * "uniVer": "x",
335
+ * "unixVer": "x"
336
+ * }
329
337
  * }
330
338
  * @example
331
339
  ```typescript
@@ -344,20 +352,20 @@ export interface UploadTask {
344
352
  * @param {UploadFileProgressUpdateCallback} callback
345
353
  * @return {void}
346
354
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
347
- * @uniPlatform
348
- * {
349
- * "app": {
350
- * "android": {
351
- * "osVer": "4.4",
352
- * "uniVer": "√",
353
- * "unixVer": "3.9+"
354
- * },
355
- * "ios": {
356
- * "osVer": "9.0",
357
- * "uniVer": "√",
358
- * "unixVer": "x"
359
- * }
360
- * }
355
+ * @uniPlatform
356
+ * {
357
+ * "app": {
358
+ * "android": {
359
+ * "osVer": "4.4",
360
+ * "uniVer": "√",
361
+ * "unixVer": "3.9+"
362
+ * },
363
+ * "ios": {
364
+ * "osVer": "9.0",
365
+ * "uniVer": "√",
366
+ * "unixVer": "x"
367
+ * }
368
+ * }
361
369
  * }
362
370
  * @example
363
371
  ```typescript
@@ -403,15 +411,15 @@ export type DownloadFileOptions = {
403
411
  * HTTP 请求 Header,header 中不能设置 Referer
404
412
  * @defaultValue null
405
413
  */
406
- header?: UTSJSONObject | null,
407
- /**
408
- * 指定文件下载路径
409
- * 支持相对路径与绝对路径,例:
410
- * `/imgs/pic.png`、`/storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/temp/imgs/pic.png`
411
- * 并且支持指定下载目录,例:
412
- * `/imgs/`
413
- * @defaultValue null
414
- */
414
+ header?: UTSJSONObject | null,
415
+ /**
416
+ * 指定文件下载路径
417
+ * 支持相对路径与绝对路径,例:
418
+ * `/imgs/pic.png`、`/storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/temp/imgs/pic.png`
419
+ * 并且支持指定下载目录,例:
420
+ * `/imgs/`
421
+ * @defaultValue null
422
+ */
415
423
  filePath?: string | null,
416
424
  /**
417
425
  * 超时时间,单位 ms
@@ -457,20 +465,24 @@ export interface DownloadTask {
457
465
  * @param {void}
458
466
  * @return {void}
459
467
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
460
- * @uniPlatform
461
- * {
462
- * "app": {
463
- * "android": {
464
- * "osVer": "4.4",
465
- * "uniVer": "√",
466
- * "unixVer": "3.9+"
467
- * },
468
- * "ios": {
469
- * "osVer": "9.0",
470
- * "uniVer": "√",
471
- * "unixVer": "x"
472
- * }
473
- * }
468
+ * @uniPlatform
469
+ * {
470
+ * "app": {
471
+ * "android": {
472
+ * "osVer": "4.4",
473
+ * "uniVer": "√",
474
+ * "unixVer": "3.9+"
475
+ * },
476
+ * "ios": {
477
+ * "osVer": "9.0",
478
+ * "uniVer": "√",
479
+ * "unixVer": "x"
480
+ * }
481
+ * },
482
+ * "web": {
483
+ * "uniVer": "x",
484
+ * "unixVer": "x"
485
+ * }
474
486
  * }
475
487
  * @example
476
488
  ```typescript
@@ -489,20 +501,20 @@ export interface DownloadTask {
489
501
  * @param {DownloadFileProgressUpdateCallback} callback
490
502
  * @return {void}
491
503
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
492
- * @uniPlatform
493
- * {
494
- * "app": {
495
- * "android": {
496
- * "osVer": "4.4",
497
- * "uniVer": "√",
498
- * "unixVer": "3.9+"
499
- * },
500
- * "ios": {
501
- * "osVer": "9.0",
502
- * "uniVer": "√",
503
- * "unixVer": "x"
504
- * }
505
- * }
504
+ * @uniPlatform
505
+ * {
506
+ * "app": {
507
+ * "android": {
508
+ * "osVer": "4.4",
509
+ * "uniVer": "√",
510
+ * "unixVer": "3.9+"
511
+ * },
512
+ * "ios": {
513
+ * "osVer": "9.0",
514
+ * "uniVer": "√",
515
+ * "unixVer": "x"
516
+ * }
517
+ * }
506
518
  * }
507
519
  * @example
508
520
  ```typescript
@@ -525,20 +537,24 @@ export interface Uni {
525
537
  * @param {RequestOptions} options
526
538
  * @return {RequestTask}
527
539
  * @tutorial https://uniapp.dcloud.net.cn/api/request/request.html
528
- * @uniPlatform
529
- * {
530
- * "app": {
531
- * "android": {
532
- * "osVer": "4.4",
533
- * "uniVer": "√",
534
- * "unixVer": "3.9+"
535
- * },
536
- * "ios": {
537
- * "osVer": "9.0",
538
- * "uniVer": "√",
539
- * "unixVer": "x"
540
- * }
541
- * }
540
+ * @uniPlatform
541
+ * {
542
+ * "app": {
543
+ * "android": {
544
+ * "osVer": "4.4",
545
+ * "uniVer": "√",
546
+ * "unixVer": "3.9+"
547
+ * },
548
+ * "ios": {
549
+ * "osVer": "9.0",
550
+ * "uniVer": "√",
551
+ * "unixVer": "x"
552
+ * }
553
+ * },
554
+ * "web": {
555
+ * "uniVer": "√",
556
+ * "unixVer": "4.0"
557
+ * }
542
558
  * }
543
559
  * @example
544
560
  ```typescript
@@ -577,20 +593,24 @@ export interface Uni {
577
593
  * @param {UploadFileOptions} options
578
594
  * @return {UploadTask}
579
595
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
580
- * @uniPlatform
581
- * {
582
- * "app": {
583
- * "android": {
584
- * "osVer": "4.4",
585
- * "uniVer": "√",
586
- * "unixVer": "3.9+"
587
- * },
588
- * "ios": {
589
- * "osVer": "9.0",
590
- * "uniVer": "√",
591
- * "unixVer": "x"
592
- * }
593
- * }
596
+ * @uniPlatform
597
+ * {
598
+ * "app": {
599
+ * "android": {
600
+ * "osVer": "4.4",
601
+ * "uniVer": "√",
602
+ * "unixVer": "3.9+"
603
+ * },
604
+ * "ios": {
605
+ * "osVer": "9.0",
606
+ * "uniVer": "√",
607
+ * "unixVer": "x"
608
+ * }
609
+ * },
610
+ * "web": {
611
+ * "uniVer": "√",
612
+ * "unixVer": "4.0"
613
+ * }
594
614
  * }
595
615
  * @example
596
616
  ```typescript
@@ -615,20 +635,24 @@ export interface Uni {
615
635
  * @param {DownloadFileOptions} options
616
636
  * @return {DownloadTask}
617
637
  * @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
618
- * @uniPlatform
619
- * {
620
- * "app": {
621
- * "android": {
622
- * "osVer": "4.4",
623
- * "uniVer": "√",
624
- * "unixVer": "3.9+"
625
- * },
626
- * "ios": {
627
- * "osVer": "9.0",
628
- * "uniVer": "√",
629
- * "unixVer": "x"
630
- * }
631
- * }
638
+ * @uniPlatform
639
+ * {
640
+ * "app": {
641
+ * "android": {
642
+ * "osVer": "4.4",
643
+ * "uniVer": "√",
644
+ * "unixVer": "3.9+"
645
+ * },
646
+ * "ios": {
647
+ * "osVer": "9.0",
648
+ * "uniVer": "√",
649
+ * "unixVer": "x"
650
+ * }
651
+ * },
652
+ * "web": {
653
+ * "uniVer": "√",
654
+ * "unixVer": "4.0"
655
+ * }
632
656
  * }
633
657
  * @example
634
658
  ```typescript
@@ -29,11 +29,11 @@ export type ShowToastOptions = {
29
29
  * 图标,有效值详见下方说明,默认:success。
30
30
  * @description icon值说明 success: 显示成功图标,error: 显示错误图标; fail: 显示错误图标,此时title文本无长度显示; exception: 显示异常图标,此时title文本无长度显示; loading: 显示加载图标;none: 不显示图标。
31
31
  */
32
- icon?: string | null,
32
+ icon?: "success" | "error" | "fail" | "exception" | "loading" | "none" | null,
33
33
  /**
34
34
  * 自定义图标的本地路径(app端暂不支持gif)
35
35
  */
36
- image?: string | null,
36
+ image?: string.ImageURIString | null,
37
37
  /**
38
38
  * 是否显示透明蒙层,防止触摸穿透,默认:false
39
39
  */
@@ -46,7 +46,7 @@ export type ShowToastOptions = {
46
46
  * 纯文本轻提示显示位置,填写有效值后只有 title 属性生效,且不支持通过 uni.hideToast 隐藏。
47
47
  * @description position值说明(仅App生效) top: 居上显示; center: 居中显示;bottom: 居底显示
48
48
  */
49
- position?: string | null,
49
+ position?: "top" | "center" | "bottom" | null,
50
50
  /**
51
51
  * 接口调用成功的回调函数
52
52
  */
@@ -70,7 +70,7 @@ export type ShowToastOptions = {
70
70
  * @uniPlatform {
71
71
  * "app": {
72
72
  * "android": {
73
- * "osVer": "4.4.4",
73
+ * "osVer": "5.0",
74
74
  * "uniVer": "√",
75
75
  * "unixVer": "3.9.0"
76
76
  * },
@@ -79,6 +79,10 @@ export type ShowToastOptions = {
79
79
  * "uniVer": "√",
80
80
  * "unixVer": "3.9.0"
81
81
  * }
82
+ * },
83
+ * "web": {
84
+ * "uniVer": "√",
85
+ * "unixVer": "4.0"
82
86
  * }
83
87
  * }
84
88
  */
@@ -92,7 +96,7 @@ export type ShowToast = (options: ShowToastOptions) => void
92
96
  * @uniPlatform {
93
97
  * "app": {
94
98
  * "android": {
95
- * "osVer": "4.4.4",
99
+ * "osVer": "5.0",
96
100
  * "uniVer": "√",
97
101
  * "unixVer": "3.9.0"
98
102
  * },
@@ -101,6 +105,10 @@ export type ShowToast = (options: ShowToastOptions) => void
101
105
  * "uniVer": "√",
102
106
  * "unixVer": "3.9.0"
103
107
  * }
108
+ * },
109
+ * "web": {
110
+ * "uniVer": "√",
111
+ * "unixVer": "4.0"
104
112
  * }
105
113
  * }
106
114
  */
@@ -161,7 +169,7 @@ export type ShowLoadingOptions = {
161
169
  * @uniPlatform {
162
170
  * "app": {
163
171
  * "android": {
164
- * "osVer": "4.4.4",
172
+ * "osVer": "5.0",
165
173
  * "uniVer": "√",
166
174
  * "unixVer": "3.9.0"
167
175
  * },
@@ -170,6 +178,10 @@ export type ShowLoadingOptions = {
170
178
  * "uniVer": "√",
171
179
  * "unixVer": "3.9.0"
172
180
  * }
181
+ * },
182
+ * "web": {
183
+ * "uniVer": "√",
184
+ * "unixVer": "4.0"
173
185
  * }
174
186
  * }
175
187
  */
@@ -183,7 +195,7 @@ export type ShowLoading = (options: ShowLoadingOptions) => void
183
195
  * @uniPlatform {
184
196
  * "app": {
185
197
  * "android": {
186
- * "osVer": "4.4.4",
198
+ * "osVer": "5.0",
187
199
  * "uniVer": "√",
188
200
  * "unixVer": "3.9.0"
189
201
  * },
@@ -192,6 +204,10 @@ export type ShowLoading = (options: ShowLoadingOptions) => void
192
204
  * "uniVer": "√",
193
205
  * "unixVer": "3.9.0"
194
206
  * }
207
+ * },
208
+ * "web": {
209
+ * "uniVer": "√",
210
+ * "unixVer": "4.0"
195
211
  * }
196
212
  * }
197
213
  *
@@ -252,7 +268,7 @@ export type ShowModalOptions = {
252
268
  /**
253
269
  * 取消按钮的文字颜色,默认为"#000000"
254
270
  */
255
- cancelColor?: string | null,
271
+ cancelColor?: string.ColorString | null,
256
272
  /**
257
273
  * 确定按钮的文字,默认为"确定"
258
274
  */
@@ -260,7 +276,7 @@ export type ShowModalOptions = {
260
276
  /**
261
277
  * 确定按钮的文字颜色
262
278
  */
263
- confirmColor?: string | null,
279
+ confirmColor?: string.ColorString | null,
264
280
  /**
265
281
  * @default false
266
282
  * 是否显示输入框
@@ -294,7 +310,7 @@ export type ShowModalOptions = {
294
310
  * @uniPlatform {
295
311
  * "app": {
296
312
  * "android": {
297
- * "osVer": "4.4.4",
313
+ * "osVer": "5.0",
298
314
  * "uniVer": "√",
299
315
  * "unixVer": "3.9.0"
300
316
  * },
@@ -303,6 +319,10 @@ export type ShowModalOptions = {
303
319
  * "uniVer": "√",
304
320
  * "unixVer": "3.9.0"
305
321
  * }
322
+ * },
323
+ * "web": {
324
+ * "uniVer": "√",
325
+ * "unixVer": "4.0"
306
326
  * }
307
327
  * }
308
328
  */
@@ -369,7 +389,7 @@ export type ShowActionSheetOptions = {
369
389
  /**
370
390
  * 按钮的文字颜色,字符串格式(iOS默认为系统控件颜色)
371
391
  */
372
- itemColor?: string | null,
392
+ itemColor?: string.ColorString | null,
373
393
  /**
374
394
  * 大屏设备弹出原生选择按钮框的指示区域,默认居中显示
375
395
  */
@@ -398,7 +418,7 @@ export type ShowActionSheetOptions = {
398
418
  * @uniPlatform {
399
419
  * "app": {
400
420
  * "android": {
401
- * "osVer": "4.4.4",
421
+ * "osVer": "5.0",
402
422
  * "uniVer": "√",
403
423
  * "unixVer": "3.9.0"
404
424
  * },
@@ -407,6 +427,10 @@ export type ShowActionSheetOptions = {
407
427
  * "uniVer": "√",
408
428
  * "unixVer": "3.9.0"
409
429
  * }
430
+ * },
431
+ * "web": {
432
+ * "uniVer": "√",
433
+ * "unixVer": "4.0"
410
434
  * }
411
435
  * }
412
436
  */
@@ -431,7 +455,7 @@ export interface Uni {
431
455
  * @uniPlatform {
432
456
  * "app": {
433
457
  * "android": {
434
- * "osVer": "4.4.4",
458
+ * "osVer": "5.0",
435
459
  * "uniVer": "√",
436
460
  * "unixVer": "3.9.0"
437
461
  * },
@@ -440,6 +464,10 @@ export interface Uni {
440
464
  * "uniVer": "√",
441
465
  * "unixVer": "3.9.0"
442
466
  * }
467
+ * },
468
+ * "web": {
469
+ * "uniVer": "√",
470
+ * "unixVer": "4.0"
443
471
  * }
444
472
  * }
445
473
  */
@@ -454,7 +482,7 @@ export interface Uni {
454
482
  * @uniPlatform {
455
483
  * "app": {
456
484
  * "android": {
457
- * "osVer": "4.4.4",
485
+ * "osVer": "5.0",
458
486
  * "uniVer": "√",
459
487
  * "unixVer": "3.9.0"
460
488
  * },
@@ -463,6 +491,10 @@ export interface Uni {
463
491
  * "uniVer": "√",
464
492
  * "unixVer": "3.9.0"
465
493
  * }
494
+ * },
495
+ * "web": {
496
+ * "uniVer": "√",
497
+ * "unixVer": "4.0"
466
498
  * }
467
499
  * }
468
500
  */
@@ -483,7 +515,7 @@ export interface Uni {
483
515
  * @uniPlatform {
484
516
  * "app": {
485
517
  * "android": {
486
- * "osVer": "4.4.4",
518
+ * "osVer": "5.0",
487
519
  * "uniVer": "√",
488
520
  * "unixVer": "3.9.0"
489
521
  * },
@@ -492,6 +524,10 @@ export interface Uni {
492
524
  * "uniVer": "√",
493
525
  * "unixVer": "3.9.0"
494
526
  * }
527
+ * },
528
+ * "web": {
529
+ * "uniVer": "√",
530
+ * "unixVer": "4.0"
495
531
  * }
496
532
  * }
497
533
  */
@@ -513,7 +549,7 @@ export interface Uni {
513
549
  * @uniPlatform {
514
550
  * "app": {
515
551
  * "android": {
516
- * "osVer": "4.4.4",
552
+ * "osVer": "5.0",
517
553
  * "uniVer": "√",
518
554
  * "unixVer": "3.9.0"
519
555
  * },
@@ -522,6 +558,10 @@ export interface Uni {
522
558
  * "uniVer": "√",
523
559
  * "unixVer": "3.9.0"
524
560
  * }
561
+ * },
562
+ * "web": {
563
+ * "uniVer": "√",
564
+ * "unixVer": "4.0"
525
565
  * }
526
566
  * }
527
567
  */
@@ -549,7 +589,7 @@ export interface Uni {
549
589
  * @uniPlatform {
550
590
  * "app": {
551
591
  * "android": {
552
- * "osVer": "4.4.4",
592
+ * "osVer": "5.0",
553
593
  * "uniVer": "√",
554
594
  * "unixVer": "3.9.0"
555
595
  * },
@@ -558,6 +598,10 @@ export interface Uni {
558
598
  * "uniVer": "√",
559
599
  * "unixVer": "3.9.0"
560
600
  * }
601
+ * },
602
+ * "web": {
603
+ * "uniVer": "√",
604
+ * "unixVer": "4.0"
561
605
  * }
562
606
  * }
563
607
  */
@@ -581,7 +625,7 @@ export interface Uni {
581
625
  * @uniPlatform {
582
626
  * "app": {
583
627
  * "android": {
584
- * "osVer": "4.4.4",
628
+ * "osVer": "5.0",
585
629
  * "uniVer": "√",
586
630
  * "unixVer": "3.9.0"
587
631
  * },
@@ -590,6 +634,10 @@ export interface Uni {
590
634
  * "uniVer": "√",
591
635
  * "unixVer": "3.9.0"
592
636
  * }
637
+ * },
638
+ * "web": {
639
+ * "uniVer": "√",
640
+ * "unixVer": "4.0"
593
641
  * }
594
642
  * }
595
643
  */