@dcloudio/uni-app-x 0.7.119 → 0.7.121

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