@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,446 +1,1617 @@
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
- */
28
- export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
29
- /**
30
- * uni.showLoading失败回调函数定义
31
- */
32
- export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
33
- /**
34
- * uni.showLoading完成回调函数定义
35
- */
36
- export type ShowLoadingCompleteCallback = (res: any) => void
37
-
38
- /**
39
- * uni.showLoading参数定义
40
- */
41
- export type ShowLoadingOptions = {
42
- /**
43
- * 提示的内容,长度与 icon 取值有关。
44
- */
45
- title?: string | null,
46
- /**
47
- * 是否显示透明蒙层,防止触摸穿透,默认:false
48
- * @uniPlatform {
49
- "app": {
50
- "android": {
51
- "osVer": "x",
52
- "uniVer": "x",
53
- "unixVer": "x"
54
- },
55
- "ios": {
56
- "osVer": "x",
57
- "uniVer": "x",
58
- "unixVer": "x"
59
- },
60
- "harmony": {
61
- "osVer": "x",
62
- "uniVer": "x",
63
- "unixVer": "x"
64
- }
65
- },
66
- "mp": {
67
- "weixin": {
68
- "hostVer": "",
69
- "uniVer": "",
70
- "unixVer": "4.41"
71
- },
72
- "alipay": {
73
- "hostVer": "√",
74
- "uniVer": "√",
75
- "unixVer": "x"
76
- },
77
- "baidu": {
78
- "hostVer": "",
79
- "uniVer": "√",
80
- "unixVer": "x"
81
- },
82
- "toutiao": {
83
- "hostVer": "",
84
- "uniVer": "√",
85
- "unixVer": "x"
86
- },
87
- "lark": {
88
- "hostVer": "",
89
- "uniVer": "√",
90
- "unixVer": "x"
91
- },
92
- "qq": {
93
- "hostVer": "",
94
- "uniVer": "√",
95
- "unixVer": "x"
96
- },
97
- "kuaishou": {
98
- "hostVer": "",
99
- "uniVer": "√",
100
- "unixVer": "x"
101
- },
102
- "jd": {
103
- "hostVer": "",
104
- "uniVer": "√",
105
- "unixVer": "x"
106
- }
107
- },
108
- "web": {
109
- "uniVer": "√",
110
- "unixVer": "4.0"
111
- }
112
- }
113
- */
114
- mask?: boolean | null,
115
- /**
116
- * iOS是否采用系统雪花状样式
117
- * @defaultValue true
118
- * @default true
119
- * @internal
120
- * @uniPlatform {
121
- "app": {
122
- "android": {
123
- "osVer": "x",
124
- "uniVer": "x",
125
- "unixVer": "x"
126
- },
127
- "ios": {
128
- "osVer": "12.0",
129
- "uniVer": "x",
130
- "unixVer": "5.0"
131
- },
132
- "harmony": {
133
- "osVer": "x",
134
- "uniVer": "x",
135
- "unixVer": "x"
136
- }
137
- },
138
- "mp": {
139
- "weixin": {
140
- "hostVer": "x",
141
- "uniVer": "x",
142
- "unixVer": "x"
143
- },
144
- "alipay": {
145
- "hostVer": "x",
146
- "uniVer": "x",
147
- "unixVer": "x"
148
- },
149
- "baidu": {
150
- "hostVer": "x",
151
- "uniVer": "x",
152
- "unixVer": "x"
153
- },
154
- "toutiao": {
155
- "hostVer": "x",
156
- "uniVer": "x",
157
- "unixVer": "x"
158
- },
159
- "lark": {
160
- "hostVer": "x",
161
- "uniVer": "x",
162
- "unixVer": "x"
163
- },
164
- "qq": {
165
- "hostVer": "x",
166
- "uniVer": "x",
167
- "unixVer": "x"
168
- },
169
- "kuaishou": {
170
- "hostVer": "x",
171
- "uniVer": "x",
172
- "unixVer": "x"
173
- },
174
- "jd": {
175
- "hostVer": "x",
176
- "uniVer": "x",
177
- "unixVer": "x"
178
- }
179
- },
180
- "web": {
181
- "uniVer": "x",
182
- "unixVer": "x"
183
- }
184
- }
185
- */
186
- iosSpinner?: boolean | null,
187
- /**
188
- * 接口调用成功的回调函数
189
- */
190
- success?: ShowLoadingSuccessCallback | null,
191
- /**
192
- * 接口调用失败的回调函数
193
- */
194
- fail?: ShowLoadingFailCallback | null,
195
- /**
196
- * 接口调用结束的回调函数(调用成功、失败都会执行)
197
- */
198
- complete?: ShowLoadingCompleteCallback | null
199
- }
200
-
201
- export type ShowLoading = (options?: ShowLoadingOptions|null) => LoadingPage | null
202
-
203
-
204
- /**
205
- * uni.showLoading成功回调参数
206
- */
207
- export type HideLoadingSuccess = {
208
- }
209
-
210
- /**
211
- * uni.showLoading失败回调参数
212
- */
213
- export type HideLoadingFailErrorCode = 4
214
- /**
215
- * uni.showLoading失败回调参数
216
- */
217
- export interface HideLoadingFail extends IUniError {
218
- errCode: HideLoadingFailErrorCode
219
- }
220
-
221
- export class HideLoadingFailImpl extends UniError implements HideLoadingFail {
222
- override errCode: HideLoadingFailErrorCode
223
- constructor(errMsg: string = 'hideLoading:fail cancel', errCode: HideLoadingFailErrorCode = 4) {
224
- super()
225
- this.errMsg = errMsg
226
- this.errCode = errCode
227
- }
228
- }
229
-
230
-
231
- /**
232
- * uni.hideLoading成功回调函数定义
233
- */
234
- export type HideLoadingSuccessCallback = (res: HideLoadingSuccess) => void
235
- /**
236
- * uni.hideLoading失败回调函数定义
237
- */
238
- export type HideLoadingFailCallback = (res: HideLoadingFail) => void
239
- /**
240
- * uni.hideLoading完成回调函数定义
241
- */
242
- export type HideLoadingCompleteCallback = (res: any) => void
243
-
244
- /**
245
- * uni.showLoading参数定义
246
- */
247
- export type HideLoadingOptions = {
248
- /**
249
- * 期望隐藏的目标LoadingPage 如果为null 会关闭当前栈顶全部LoadingPage
250
- */
251
- loadingPage?: LoadingPage | null,
252
- /**
253
- * 接口调用成功的回调函数
254
- */
255
- success?: HideLoadingSuccessCallback | null,
256
- /**
257
- * 接口调用失败的回调函数
258
- */
259
- fail?: HideLoadingFailCallback | null,
260
- /**
261
- * 接口调用结束的回调函数(调用成功、失败都会执行)
262
- */
263
- complete?: HideLoadingCompleteCallback | null
264
- }
265
-
266
- export type HideLoading = (options?: HideLoadingOptions|null) => void
267
-
268
- export type LoadingPage = UniPage;
269
-
270
- export interface Uni {
271
-
272
- /**
273
- * @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
274
- * @example
275
- ```typescript
276
- uni.showLoading({
277
- title: '加载中'
278
- });
279
- ```
280
- * @remark
281
- * - showLoading 和 showToast 同时只能显示一个
282
- * - showToast 应与 hideToast 配对使用
283
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
284
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
285
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
286
- * @uniPlatform
287
- {
288
- "app": {
289
- "android": {
290
- "osVer": "5.0",
291
- "uniVer": "√",
292
- "uniUtsPlugin": "3.91",
293
- "unixVer": "3.91"
294
- },
295
- "ios": {
296
- "osVer": "12.0",
297
- "uniVer": "√",
298
- "uniUtsPlugin": "4.11",
299
- "unixVer": "4.11",
300
- "unixUtsPlugin": "4.11"
301
- },
302
- "harmony": {
303
- "osVer": "3.0",
304
- "uniVer": "4.23",
305
- "unixVer": "4.61",
306
- "unixVaporVer": "5.0"
307
- }
308
- },
309
- "mp": {
310
- "weixin": {
311
- "hostVer": "√",
312
- "uniVer": "√",
313
- "unixVer": "4.41"
314
- },
315
- "alipay": {
316
- "hostVer": "",
317
- "uniVer": "",
318
- "unixVer": "x"
319
- },
320
- "baidu": {
321
- "hostVer": "",
322
- "uniVer": "",
323
- "unixVer": "x"
324
- },
325
- "toutiao": {
326
- "hostVer": "√",
327
- "uniVer": "√",
328
- "unixVer": "x"
329
- },
330
- "lark": {
331
- "hostVer": "√",
332
- "uniVer": "√",
333
- "unixVer": "x"
334
- },
335
- "qq": {
336
- "hostVer": "√",
337
- "uniVer": "√",
338
- "unixVer": "x"
339
- },
340
- "kuaishou": {
341
- "hostVer": "√",
342
- "uniVer": "√",
343
- "unixVer": "x"
344
- },
345
- "jd": {
346
- "hostVer": "√",
347
- "uniVer": "√",
348
- "unixVer": "x"
349
- }
350
- },
351
- "web": {
352
- "uniVer": "√",
353
- "unixVer": "4.0"
354
- }
355
- }
356
- */
357
- showLoading(options?: ShowLoadingOptions|null): void,
358
-
359
- /**
360
- * @description 隐藏 loading 提示框。
361
- * @example
362
- ```typescript
363
- uni.showLoading({
364
- title: '加载中'
365
- });
366
-
367
- setTimeout(function () {
368
- uni.hideLoading();
369
- }, 2000);
370
- ```
371
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
372
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
373
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
374
- * @uniPlatform
375
- {
376
- "app": {
377
- "android": {
378
- "osVer": "5.0",
379
- "uniVer": "√",
380
- "uniUtsPlugin": "3.91",
381
- "unixVer": "3.91"
382
- },
383
- "ios": {
384
- "osVer": "12.0",
385
- "uniVer": "√",
386
- "uniUtsPlugin": "4.11",
387
- "unixVer": "4.11",
388
- "unixUtsPlugin": "4.11"
389
- },
390
- "harmony": {
391
- "osVer": "3.0",
392
- "uniVer": "4.23",
393
- "unixVer": "4.61",
394
- "unixVaporVer": "5.0"
395
- }
396
- },
397
- "mp": {
398
- "weixin": {
399
- "hostVer": "√",
400
- "uniVer": "",
401
- "unixVer": "4.41"
402
- },
403
- "alipay": {
404
- "hostVer": "√",
405
- "uniVer": "",
406
- "unixVer": "x"
407
- },
408
- "baidu": {
409
- "hostVer": "√",
410
- "uniVer": "",
411
- "unixVer": "x"
412
- },
413
- "toutiao": {
414
- "hostVer": "√",
415
- "uniVer": "",
416
- "unixVer": "x"
417
- },
418
- "lark": {
419
- "hostVer": "√",
420
- "uniVer": "",
421
- "unixVer": "x"
422
- },
423
- "qq": {
424
- "hostVer": "√",
425
- "uniVer": "",
426
- "unixVer": "x"
427
- },
428
- "kuaishou": {
429
- "hostVer": "√",
430
- "uniVer": "",
431
- "unixVer": "x"
432
- },
433
- "jd": {
434
- "hostVer": "√",
435
- "uniVer": "",
436
- "unixVer": "x"
437
- }
438
- },
439
- "web": {
440
- "uniVer": "",
441
- "unixVer": "4.0"
442
- }
443
- }
444
- */
445
- hideLoading(options?: HideLoadingOptions|null): void,
446
- }
1
+ /**
2
+ * uni.showLoading成功回调参数
3
+ * @uniPlatform {
4
+ * "mp": {
5
+ * "weixin": {
6
+ * "hostVer": "√",
7
+ * "uniVer": "√",
8
+ * "unixVer": "4.41"
9
+ * },
10
+ * "alipay": {
11
+ * "hostVer": "-",
12
+ * "uniVer": "-",
13
+ * "unixVer": "-"
14
+ * },
15
+ * "baidu": {
16
+ * "hostVer": "-",
17
+ * "uniVer": "-",
18
+ * "unixVer": "-"
19
+ * },
20
+ * "toutiao": {
21
+ * "hostVer": "-",
22
+ * "uniVer": "-",
23
+ * "unixVer": "-"
24
+ * },
25
+ * "lark": {
26
+ * "hostVer": "-",
27
+ * "uniVer": "-",
28
+ * "unixVer": "-"
29
+ * },
30
+ * "qq": {
31
+ * "hostVer": "-",
32
+ * "uniVer": "-",
33
+ * "unixVer": "-"
34
+ * },
35
+ * "kuaishou": {
36
+ * "hostVer": "-",
37
+ * "uniVer": "-",
38
+ * "unixVer": "-"
39
+ * },
40
+ * "jd": {
41
+ * "hostVer": "-",
42
+ * "uniVer": "-",
43
+ * "unixVer": "-"
44
+ * }
45
+ * }
46
+ * }
47
+ */
48
+ export interface ShowLoadingSuccess {
49
+ /**
50
+ * 错误信息
51
+ * @uniPlatform
52
+ {
53
+ "app": {
54
+ "android": {
55
+ "osVer": "5.0",
56
+ "uniVer": "x",
57
+ "uniUtsPlugin": "x",
58
+ "unixVer": "4.61"
59
+ },
60
+ "ios": {
61
+ "osVer": "12.0",
62
+ "uniVer": "x",
63
+ "uniUtsPlugin": "x",
64
+ "unixVer": "4.61",
65
+ "unixUtsPlugin": "4.61"
66
+ },
67
+ "harmony": {
68
+ "osVer": "3.0",
69
+ "uniVer": "4.23",
70
+ "unixVer": "4.61",
71
+ "unixVaporVer": "5.0"
72
+ }
73
+ },
74
+ "mp": {
75
+ "weixin": {
76
+ "hostVer": "√",
77
+ "uniVer": "√",
78
+ "unixVer": "4.41"
79
+ },
80
+ "alipay": {
81
+ "hostVer": "√",
82
+ "uniVer": "√",
83
+ "unixVer": "x"
84
+ },
85
+ "baidu": {
86
+ "hostVer": "√",
87
+ "uniVer": "√",
88
+ "unixVer": "x"
89
+ },
90
+ "toutiao": {
91
+ "hostVer": "√",
92
+ "uniVer": "√",
93
+ "unixVer": "x"
94
+ },
95
+ "lark": {
96
+ "hostVer": "√",
97
+ "uniVer": "√",
98
+ "unixVer": "x"
99
+ },
100
+ "qq": {
101
+ "hostVer": "√",
102
+ "uniVer": "√",
103
+ "unixVer": "x"
104
+ },
105
+ "kuaishou": {
106
+ "hostVer": "√",
107
+ "uniVer": "√",
108
+ "unixVer": "x"
109
+ },
110
+ "jd": {
111
+ "hostVer": "√",
112
+ "uniVer": "√",
113
+ "unixVer": "x"
114
+ }
115
+ },
116
+ "web": {
117
+ "uniVer": "√",
118
+ "unixVer": "4.0"
119
+ }
120
+ }
121
+ */
122
+ errMsg: string
123
+ }
124
+
125
+ /**
126
+ * uni.showLoading失败回调参数
127
+ */
128
+ export type ShowLoadingFailErrorCode = 4
129
+
130
+ export interface ShowLoadingFail extends IUniError {
131
+ errCode: ShowLoadingFailErrorCode
132
+ }
133
+
134
+ export class ShowLoadingSuccessImpl implements ShowLoadingSuccess {
135
+ errMsg: string
136
+ constructor(errMsg: string = 'showLoading:ok') {
137
+ this.errMsg = errMsg
138
+ }
139
+ }
140
+
141
+ export class ShowLoadingFailImpl extends UniError implements ShowLoadingFail {
142
+ override errCode: ShowLoadingFailErrorCode
143
+ constructor(errMsg: string = 'showLoading:fail cancel', errCode: ShowLoadingFailErrorCode = 4) {
144
+ super()
145
+ this.errMsg = errMsg
146
+ this.errCode = errCode
147
+ }
148
+ }
149
+
150
+ export type ShowLoadingComplete = any
151
+
152
+ /**
153
+ * uni.showLoading成功回调函数定义
154
+ * @uniPlatform {
155
+ * "mp": {
156
+ * "weixin": {
157
+ * "hostVer": "",
158
+ * "uniVer": "√",
159
+ * "unixVer": "4.41"
160
+ * },
161
+ * "alipay": {
162
+ * "hostVer": "-",
163
+ * "uniVer": "-",
164
+ * "unixVer": "-"
165
+ * },
166
+ * "baidu": {
167
+ * "hostVer": "-",
168
+ * "uniVer": "-",
169
+ * "unixVer": "-"
170
+ * },
171
+ * "toutiao": {
172
+ * "hostVer": "-",
173
+ * "uniVer": "-",
174
+ * "unixVer": "-"
175
+ * },
176
+ * "lark": {
177
+ * "hostVer": "-",
178
+ * "uniVer": "-",
179
+ * "unixVer": "-"
180
+ * },
181
+ * "qq": {
182
+ * "hostVer": "-",
183
+ * "uniVer": "-",
184
+ * "unixVer": "-"
185
+ * },
186
+ * "kuaishou": {
187
+ * "hostVer": "-",
188
+ * "uniVer": "-",
189
+ * "unixVer": "-"
190
+ * },
191
+ * "jd": {
192
+ * "hostVer": "-",
193
+ * "uniVer": "-",
194
+ * "unixVer": "-"
195
+ * }
196
+ * }
197
+ * }
198
+ */
199
+ export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
200
+ /**
201
+ * uni.showLoading失败回调函数定义
202
+ * @uniPlatform {
203
+ * "mp": {
204
+ * "weixin": {
205
+ * "hostVer": "√",
206
+ * "uniVer": "√",
207
+ * "unixVer": "4.41"
208
+ * },
209
+ * "alipay": {
210
+ * "hostVer": "-",
211
+ * "uniVer": "-",
212
+ * "unixVer": "-"
213
+ * },
214
+ * "baidu": {
215
+ * "hostVer": "-",
216
+ * "uniVer": "-",
217
+ * "unixVer": "-"
218
+ * },
219
+ * "toutiao": {
220
+ * "hostVer": "-",
221
+ * "uniVer": "-",
222
+ * "unixVer": "-"
223
+ * },
224
+ * "lark": {
225
+ * "hostVer": "-",
226
+ * "uniVer": "-",
227
+ * "unixVer": "-"
228
+ * },
229
+ * "qq": {
230
+ * "hostVer": "-",
231
+ * "uniVer": "-",
232
+ * "unixVer": "-"
233
+ * },
234
+ * "kuaishou": {
235
+ * "hostVer": "-",
236
+ * "uniVer": "-",
237
+ * "unixVer": "-"
238
+ * },
239
+ * "jd": {
240
+ * "hostVer": "-",
241
+ * "uniVer": "-",
242
+ * "unixVer": "-"
243
+ * }
244
+ * }
245
+ * }
246
+ */
247
+ export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
248
+ /**
249
+ * uni.showLoading完成回调函数定义
250
+ * @uniPlatform {
251
+ * "mp": {
252
+ * "weixin": {
253
+ * "hostVer": "√",
254
+ * "uniVer": "√",
255
+ * "unixVer": "4.41"
256
+ * },
257
+ * "alipay": {
258
+ * "hostVer": "-",
259
+ * "uniVer": "-",
260
+ * "unixVer": "-"
261
+ * },
262
+ * "baidu": {
263
+ * "hostVer": "-",
264
+ * "uniVer": "-",
265
+ * "unixVer": "-"
266
+ * },
267
+ * "toutiao": {
268
+ * "hostVer": "-",
269
+ * "uniVer": "-",
270
+ * "unixVer": "-"
271
+ * },
272
+ * "lark": {
273
+ * "hostVer": "-",
274
+ * "uniVer": "-",
275
+ * "unixVer": "-"
276
+ * },
277
+ * "qq": {
278
+ * "hostVer": "-",
279
+ * "uniVer": "-",
280
+ * "unixVer": "-"
281
+ * },
282
+ * "kuaishou": {
283
+ * "hostVer": "-",
284
+ * "uniVer": "-",
285
+ * "unixVer": "-"
286
+ * },
287
+ * "jd": {
288
+ * "hostVer": "-",
289
+ * "uniVer": "-",
290
+ * "unixVer": "-"
291
+ * }
292
+ * }
293
+ * }
294
+ */
295
+ export type ShowLoadingCompleteCallback = (res: ShowLoadingComplete) => void
296
+
297
+ /**
298
+ * uni.showLoading参数定义
299
+ */
300
+ export type ShowLoadingOptions = {
301
+ /**
302
+ * 提示的内容,长度与 icon 取值有关。
303
+ * @uniPlatform
304
+ {
305
+ "app": {
306
+ "android": {
307
+ "osVer": "5.0",
308
+ "uniVer": "x",
309
+ "uniUtsPlugin": "x",
310
+ "unixVer": "4.61"
311
+ },
312
+ "ios": {
313
+ "osVer": "12.0",
314
+ "uniVer": "x",
315
+ "uniUtsPlugin": "x",
316
+ "unixVer": "4.61",
317
+ "unixUtsPlugin": "4.61"
318
+ },
319
+ "harmony": {
320
+ "osVer": "3.0",
321
+ "uniVer": "4.23",
322
+ "unixVer": "4.61",
323
+ "unixVaporVer": "5.0"
324
+ }
325
+ },
326
+ "mp": {
327
+ "weixin": {
328
+ "hostVer": "",
329
+ "uniVer": "√",
330
+ "unixVer": "4.41"
331
+ },
332
+ "alipay": {
333
+ "hostVer": "",
334
+ "uniVer": "√",
335
+ "unixVer": "x"
336
+ },
337
+ "baidu": {
338
+ "hostVer": "",
339
+ "uniVer": "√",
340
+ "unixVer": "x"
341
+ },
342
+ "toutiao": {
343
+ "hostVer": "",
344
+ "uniVer": "√",
345
+ "unixVer": "x"
346
+ },
347
+ "lark": {
348
+ "hostVer": "",
349
+ "uniVer": "√",
350
+ "unixVer": "x"
351
+ },
352
+ "qq": {
353
+ "hostVer": "",
354
+ "uniVer": "√",
355
+ "unixVer": "x"
356
+ },
357
+ "kuaishou": {
358
+ "hostVer": "√",
359
+ "uniVer": "√",
360
+ "unixVer": "x"
361
+ },
362
+ "jd": {
363
+ "hostVer": "√",
364
+ "uniVer": "√",
365
+ "unixVer": "x"
366
+ }
367
+ },
368
+ "web": {
369
+ "uniVer": "√",
370
+ "unixVer": "4.0"
371
+ }
372
+ }
373
+ */
374
+ title?: string | null,
375
+ /**
376
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
377
+ * @uniPlatform
378
+ {
379
+ "app": {
380
+ "android": {
381
+ "osVer": "x",
382
+ "uniVer": "x",
383
+ "unixVer": "x"
384
+ },
385
+ "ios": {
386
+ "osVer": "x",
387
+ "uniVer": "x",
388
+ "unixVer": "x"
389
+ },
390
+ "harmony": {
391
+ "osVer": "x",
392
+ "uniVer": "x",
393
+ "unixVer": "x"
394
+ }
395
+ },
396
+ "mp": {
397
+ "weixin": {
398
+ "hostVer": "√",
399
+ "uniVer": "√",
400
+ "unixVer": "4.41"
401
+ },
402
+ "alipay": {
403
+ "hostVer": "√",
404
+ "uniVer": "√",
405
+ "unixVer": "x"
406
+ },
407
+ "baidu": {
408
+ "hostVer": "√",
409
+ "uniVer": "√",
410
+ "unixVer": "x"
411
+ },
412
+ "toutiao": {
413
+ "hostVer": "√",
414
+ "uniVer": "√",
415
+ "unixVer": "x"
416
+ },
417
+ "lark": {
418
+ "hostVer": "√",
419
+ "uniVer": "√",
420
+ "unixVer": "x"
421
+ },
422
+ "qq": {
423
+ "hostVer": "√",
424
+ "uniVer": "√",
425
+ "unixVer": "x"
426
+ },
427
+ "kuaishou": {
428
+ "hostVer": "√",
429
+ "uniVer": "√",
430
+ "unixVer": "x"
431
+ },
432
+ "jd": {
433
+ "hostVer": "√",
434
+ "uniVer": "√",
435
+ "unixVer": "x"
436
+ }
437
+ },
438
+ "web": {
439
+ "uniVer": "√",
440
+ "unixVer": "4.0"
441
+ }
442
+ }
443
+ */
444
+ mask?: boolean | null,
445
+ /**
446
+ * iOS是否采用系统雪花状样式
447
+ * @uniPlatform
448
+ {
449
+ "app": {
450
+ "android": {
451
+ "osVer": "x",
452
+ "uniVer": "x",
453
+ "unixVer": "x"
454
+ },
455
+ "ios": {
456
+ "osVer": "12.0",
457
+ "uniVer": "x",
458
+ "unixVer": "5.0"
459
+ },
460
+ "harmony": {
461
+ "osVer": "x",
462
+ "uniVer": "x",
463
+ "unixVer": "x"
464
+ }
465
+ },
466
+ "mp": {
467
+ "weixin": {
468
+ "hostVer": "x",
469
+ "uniVer": "x",
470
+ "unixVer": "x"
471
+ },
472
+ "alipay": {
473
+ "hostVer": "x",
474
+ "uniVer": "x",
475
+ "unixVer": "x"
476
+ },
477
+ "baidu": {
478
+ "hostVer": "x",
479
+ "uniVer": "x",
480
+ "unixVer": "x"
481
+ },
482
+ "toutiao": {
483
+ "hostVer": "x",
484
+ "uniVer": "x",
485
+ "unixVer": "x"
486
+ },
487
+ "lark": {
488
+ "hostVer": "x",
489
+ "uniVer": "x",
490
+ "unixVer": "x"
491
+ },
492
+ "qq": {
493
+ "hostVer": "x",
494
+ "uniVer": "x",
495
+ "unixVer": "x"
496
+ },
497
+ "kuaishou": {
498
+ "hostVer": "x",
499
+ "uniVer": "x",
500
+ "unixVer": "x"
501
+ },
502
+ "jd": {
503
+ "hostVer": "x",
504
+ "uniVer": "x",
505
+ "unixVer": "x"
506
+ }
507
+ },
508
+ "web": {
509
+ "uniVer": "x",
510
+ "unixVer": "x"
511
+ }
512
+ }
513
+ * @defaultValue true
514
+ * @default true
515
+ * @internal
516
+ */
517
+ iosSpinner?: boolean | null,
518
+ /**
519
+ * 接口调用成功的回调函数
520
+ * @uniPlatform
521
+ {
522
+ "app": {
523
+ "android": {
524
+ "osVer": "5.0",
525
+ "uniVer": "x",
526
+ "uniUtsPlugin": "x",
527
+ "unixVer": "4.61"
528
+ },
529
+ "ios": {
530
+ "osVer": "12.0",
531
+ "uniVer": "x",
532
+ "uniUtsPlugin": "x",
533
+ "unixVer": "4.61",
534
+ "unixUtsPlugin": "4.61"
535
+ },
536
+ "harmony": {
537
+ "osVer": "3.0",
538
+ "uniVer": "4.23",
539
+ "unixVer": "4.61",
540
+ "unixVaporVer": "5.0"
541
+ }
542
+ },
543
+ "mp": {
544
+ "weixin": {
545
+ "hostVer": "√",
546
+ "uniVer": "√",
547
+ "unixVer": "4.41"
548
+ },
549
+ "alipay": {
550
+ "hostVer": "√",
551
+ "uniVer": "√",
552
+ "unixVer": "x"
553
+ },
554
+ "baidu": {
555
+ "hostVer": "√",
556
+ "uniVer": "√",
557
+ "unixVer": "x"
558
+ },
559
+ "toutiao": {
560
+ "hostVer": "√",
561
+ "uniVer": "√",
562
+ "unixVer": "x"
563
+ },
564
+ "lark": {
565
+ "hostVer": "√",
566
+ "uniVer": "√",
567
+ "unixVer": "x"
568
+ },
569
+ "qq": {
570
+ "hostVer": "√",
571
+ "uniVer": "√",
572
+ "unixVer": "x"
573
+ },
574
+ "kuaishou": {
575
+ "hostVer": "√",
576
+ "uniVer": "√",
577
+ "unixVer": "x"
578
+ },
579
+ "jd": {
580
+ "hostVer": "√",
581
+ "uniVer": "√",
582
+ "unixVer": "x"
583
+ }
584
+ },
585
+ "web": {
586
+ "uniVer": "√",
587
+ "unixVer": "4.0"
588
+ }
589
+ }
590
+ */
591
+ success?: ShowLoadingSuccessCallback | null,
592
+ /**
593
+ * 接口调用失败的回调函数
594
+ * @uniPlatform
595
+ {
596
+ "app": {
597
+ "android": {
598
+ "osVer": "5.0",
599
+ "uniVer": "x",
600
+ "uniUtsPlugin": "x",
601
+ "unixVer": "4.61"
602
+ },
603
+ "ios": {
604
+ "osVer": "12.0",
605
+ "uniVer": "x",
606
+ "uniUtsPlugin": "x",
607
+ "unixVer": "4.61",
608
+ "unixUtsPlugin": "4.61"
609
+ },
610
+ "harmony": {
611
+ "osVer": "3.0",
612
+ "uniVer": "4.23",
613
+ "unixVer": "4.61",
614
+ "unixVaporVer": "5.0"
615
+ }
616
+ },
617
+ "mp": {
618
+ "weixin": {
619
+ "hostVer": "√",
620
+ "uniVer": "√",
621
+ "unixVer": "4.41"
622
+ },
623
+ "alipay": {
624
+ "hostVer": "√",
625
+ "uniVer": "√",
626
+ "unixVer": "x"
627
+ },
628
+ "baidu": {
629
+ "hostVer": "√",
630
+ "uniVer": "√",
631
+ "unixVer": "x"
632
+ },
633
+ "toutiao": {
634
+ "hostVer": "√",
635
+ "uniVer": "√",
636
+ "unixVer": "x"
637
+ },
638
+ "lark": {
639
+ "hostVer": "√",
640
+ "uniVer": "√",
641
+ "unixVer": "x"
642
+ },
643
+ "qq": {
644
+ "hostVer": "√",
645
+ "uniVer": "√",
646
+ "unixVer": "x"
647
+ },
648
+ "kuaishou": {
649
+ "hostVer": "√",
650
+ "uniVer": "√",
651
+ "unixVer": "x"
652
+ },
653
+ "jd": {
654
+ "hostVer": "√",
655
+ "uniVer": "√",
656
+ "unixVer": "x"
657
+ }
658
+ },
659
+ "web": {
660
+ "uniVer": "√",
661
+ "unixVer": "4.0"
662
+ }
663
+ }
664
+ */
665
+ fail?: ShowLoadingFailCallback | null,
666
+ /**
667
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
668
+ * @uniPlatform
669
+ {
670
+ "app": {
671
+ "android": {
672
+ "osVer": "5.0",
673
+ "uniVer": "x",
674
+ "uniUtsPlugin": "x",
675
+ "unixVer": "4.61"
676
+ },
677
+ "ios": {
678
+ "osVer": "12.0",
679
+ "uniVer": "x",
680
+ "uniUtsPlugin": "x",
681
+ "unixVer": "4.61",
682
+ "unixUtsPlugin": "4.61"
683
+ },
684
+ "harmony": {
685
+ "osVer": "3.0",
686
+ "uniVer": "4.23",
687
+ "unixVer": "4.61",
688
+ "unixVaporVer": "5.0"
689
+ }
690
+ },
691
+ "mp": {
692
+ "weixin": {
693
+ "hostVer": "√",
694
+ "uniVer": "√",
695
+ "unixVer": "4.41"
696
+ },
697
+ "alipay": {
698
+ "hostVer": "√",
699
+ "uniVer": "√",
700
+ "unixVer": "x"
701
+ },
702
+ "baidu": {
703
+ "hostVer": "√",
704
+ "uniVer": "√",
705
+ "unixVer": "x"
706
+ },
707
+ "toutiao": {
708
+ "hostVer": "√",
709
+ "uniVer": "√",
710
+ "unixVer": "x"
711
+ },
712
+ "lark": {
713
+ "hostVer": "√",
714
+ "uniVer": "√",
715
+ "unixVer": "x"
716
+ },
717
+ "qq": {
718
+ "hostVer": "√",
719
+ "uniVer": "√",
720
+ "unixVer": "x"
721
+ },
722
+ "kuaishou": {
723
+ "hostVer": "√",
724
+ "uniVer": "√",
725
+ "unixVer": "x"
726
+ },
727
+ "jd": {
728
+ "hostVer": "√",
729
+ "uniVer": "√",
730
+ "unixVer": "x"
731
+ }
732
+ },
733
+ "web": {
734
+ "uniVer": "√",
735
+ "unixVer": "4.0"
736
+ }
737
+ }
738
+ */
739
+ complete?: ShowLoadingCompleteCallback | null
740
+ }
741
+
742
+ export type ShowLoading = (options?: ShowLoadingOptions | null) => LoadingPage | null
743
+
744
+ /**
745
+ * uni.hideLoading成功回调参数
746
+ * @uniPlatform {
747
+ * "mp": {
748
+ * "weixin": {
749
+ * "hostVer": "√",
750
+ * "uniVer": "√",
751
+ * "unixVer": "4.41"
752
+ * },
753
+ * "alipay": {
754
+ * "hostVer": "-",
755
+ * "uniVer": "-",
756
+ * "unixVer": "-"
757
+ * },
758
+ * "baidu": {
759
+ * "hostVer": "-",
760
+ * "uniVer": "-",
761
+ * "unixVer": "-"
762
+ * },
763
+ * "toutiao": {
764
+ * "hostVer": "-",
765
+ * "uniVer": "-",
766
+ * "unixVer": "-"
767
+ * },
768
+ * "lark": {
769
+ * "hostVer": "-",
770
+ * "uniVer": "-",
771
+ * "unixVer": "-"
772
+ * },
773
+ * "qq": {
774
+ * "hostVer": "-",
775
+ * "uniVer": "-",
776
+ * "unixVer": "-"
777
+ * },
778
+ * "kuaishou": {
779
+ * "hostVer": "-",
780
+ * "uniVer": "-",
781
+ * "unixVer": "-"
782
+ * },
783
+ * "jd": {
784
+ * "hostVer": "-",
785
+ * "uniVer": "-",
786
+ * "unixVer": "-"
787
+ * }
788
+ * }
789
+ * }
790
+ */
791
+ export interface HideLoadingSuccess {
792
+ /**
793
+ * 错误信息
794
+ * @uniPlatform
795
+ {
796
+ "app": {
797
+ "android": {
798
+ "osVer": "5.0",
799
+ "uniVer": "x",
800
+ "uniUtsPlugin": "x",
801
+ "unixVer": "4.61"
802
+ },
803
+ "ios": {
804
+ "osVer": "12.0",
805
+ "uniVer": "x",
806
+ "uniUtsPlugin": "x",
807
+ "unixVer": "4.61",
808
+ "unixUtsPlugin": "4.61"
809
+ },
810
+ "harmony": {
811
+ "osVer": "3.0",
812
+ "uniVer": "4.23",
813
+ "unixVer": "4.61",
814
+ "unixVaporVer": "5.0"
815
+ }
816
+ },
817
+ "mp": {
818
+ "weixin": {
819
+ "hostVer": "√",
820
+ "uniVer": "√",
821
+ "unixVer": "4.41"
822
+ },
823
+ "alipay": {
824
+ "hostVer": "√",
825
+ "uniVer": "√",
826
+ "unixVer": "x"
827
+ },
828
+ "baidu": {
829
+ "hostVer": "√",
830
+ "uniVer": "√",
831
+ "unixVer": "x"
832
+ },
833
+ "toutiao": {
834
+ "hostVer": "√",
835
+ "uniVer": "√",
836
+ "unixVer": "x"
837
+ },
838
+ "lark": {
839
+ "hostVer": "√",
840
+ "uniVer": "√",
841
+ "unixVer": "x"
842
+ },
843
+ "qq": {
844
+ "hostVer": "√",
845
+ "uniVer": "√",
846
+ "unixVer": "x"
847
+ },
848
+ "kuaishou": {
849
+ "hostVer": "√",
850
+ "uniVer": "√",
851
+ "unixVer": "x"
852
+ },
853
+ "jd": {
854
+ "hostVer": "√",
855
+ "uniVer": "√",
856
+ "unixVer": "x"
857
+ }
858
+ },
859
+ "web": {
860
+ "uniVer": "√",
861
+ "unixVer": "4.0"
862
+ }
863
+ }
864
+ */
865
+ errMsg: string
866
+ }
867
+
868
+ /**
869
+ * uni.hideLoading失败回调参数
870
+ */
871
+ export type HideLoadingFailErrorCode = 4
872
+ /**
873
+ * uni.hideLoading失败回调参数
874
+ * @uniPlatform {
875
+ * "mp": {
876
+ * "weixin": {
877
+ * "hostVer": "√",
878
+ * "uniVer": "√",
879
+ * "unixVer": "4.41"
880
+ * },
881
+ * "alipay": {
882
+ * "hostVer": "-",
883
+ * "uniVer": "-",
884
+ * "unixVer": "-"
885
+ * },
886
+ * "baidu": {
887
+ * "hostVer": "-",
888
+ * "uniVer": "-",
889
+ * "unixVer": "-"
890
+ * },
891
+ * "toutiao": {
892
+ * "hostVer": "-",
893
+ * "uniVer": "-",
894
+ * "unixVer": "-"
895
+ * },
896
+ * "lark": {
897
+ * "hostVer": "-",
898
+ * "uniVer": "-",
899
+ * "unixVer": "-"
900
+ * },
901
+ * "qq": {
902
+ * "hostVer": "-",
903
+ * "uniVer": "-",
904
+ * "unixVer": "-"
905
+ * },
906
+ * "kuaishou": {
907
+ * "hostVer": "-",
908
+ * "uniVer": "-",
909
+ * "unixVer": "-"
910
+ * },
911
+ * "jd": {
912
+ * "hostVer": "-",
913
+ * "uniVer": "-",
914
+ * "unixVer": "-"
915
+ * }
916
+ * }
917
+ * }
918
+ */
919
+ export interface HideLoadingFail extends IUniError {
920
+ errCode: HideLoadingFailErrorCode
921
+ }
922
+
923
+ export class HideLoadingSuccessImpl implements HideLoadingSuccess {
924
+ errMsg: string
925
+ constructor(errMsg: string = 'hideLoading:ok') {
926
+ this.errMsg = errMsg
927
+ }
928
+ }
929
+
930
+ export class HideLoadingFailImpl extends UniError implements HideLoadingFail {
931
+ override errCode: HideLoadingFailErrorCode
932
+ constructor(errMsg: string = 'hideLoading:fail cancel', errCode: HideLoadingFailErrorCode = 4) {
933
+ super()
934
+ this.errMsg = errMsg
935
+ this.errCode = errCode
936
+ }
937
+ }
938
+
939
+ export type HideLoadingComplete = any
940
+
941
+ /**
942
+ * uni.hideLoading成功回调函数定义
943
+ * @uniPlatform {
944
+ * "mp": {
945
+ * "weixin": {
946
+ * "hostVer": "√",
947
+ * "uniVer": "√",
948
+ * "unixVer": "4.41"
949
+ * },
950
+ * "alipay": {
951
+ * "hostVer": "-",
952
+ * "uniVer": "-",
953
+ * "unixVer": "-"
954
+ * },
955
+ * "baidu": {
956
+ * "hostVer": "-",
957
+ * "uniVer": "-",
958
+ * "unixVer": "-"
959
+ * },
960
+ * "toutiao": {
961
+ * "hostVer": "-",
962
+ * "uniVer": "-",
963
+ * "unixVer": "-"
964
+ * },
965
+ * "lark": {
966
+ * "hostVer": "-",
967
+ * "uniVer": "-",
968
+ * "unixVer": "-"
969
+ * },
970
+ * "qq": {
971
+ * "hostVer": "-",
972
+ * "uniVer": "-",
973
+ * "unixVer": "-"
974
+ * },
975
+ * "kuaishou": {
976
+ * "hostVer": "-",
977
+ * "uniVer": "-",
978
+ * "unixVer": "-"
979
+ * },
980
+ * "jd": {
981
+ * "hostVer": "-",
982
+ * "uniVer": "-",
983
+ * "unixVer": "-"
984
+ * }
985
+ * }
986
+ * }
987
+ */
988
+ export type HideLoadingSuccessCallback = (res: HideLoadingSuccess) => void
989
+ /**
990
+ * uni.hideLoading失败回调函数定义
991
+ * @uniPlatform {
992
+ * "mp": {
993
+ * "weixin": {
994
+ * "hostVer": "√",
995
+ * "uniVer": "√",
996
+ * "unixVer": "4.41"
997
+ * },
998
+ * "alipay": {
999
+ * "hostVer": "-",
1000
+ * "uniVer": "-",
1001
+ * "unixVer": "-"
1002
+ * },
1003
+ * "baidu": {
1004
+ * "hostVer": "-",
1005
+ * "uniVer": "-",
1006
+ * "unixVer": "-"
1007
+ * },
1008
+ * "toutiao": {
1009
+ * "hostVer": "-",
1010
+ * "uniVer": "-",
1011
+ * "unixVer": "-"
1012
+ * },
1013
+ * "lark": {
1014
+ * "hostVer": "-",
1015
+ * "uniVer": "-",
1016
+ * "unixVer": "-"
1017
+ * },
1018
+ * "qq": {
1019
+ * "hostVer": "-",
1020
+ * "uniVer": "-",
1021
+ * "unixVer": "-"
1022
+ * },
1023
+ * "kuaishou": {
1024
+ * "hostVer": "-",
1025
+ * "uniVer": "-",
1026
+ * "unixVer": "-"
1027
+ * },
1028
+ * "jd": {
1029
+ * "hostVer": "-",
1030
+ * "uniVer": "-",
1031
+ * "unixVer": "-"
1032
+ * }
1033
+ * }
1034
+ * }
1035
+ */
1036
+ export type HideLoadingFailCallback = (res: HideLoadingFail) => void
1037
+ /**
1038
+ * uni.hideLoading完成回调函数定义
1039
+ * @uniPlatform {
1040
+ * "mp": {
1041
+ * "weixin": {
1042
+ * "hostVer": "√",
1043
+ * "uniVer": "√",
1044
+ * "unixVer": "4.41"
1045
+ * },
1046
+ * "alipay": {
1047
+ * "hostVer": "-",
1048
+ * "uniVer": "-",
1049
+ * "unixVer": "-"
1050
+ * },
1051
+ * "baidu": {
1052
+ * "hostVer": "-",
1053
+ * "uniVer": "-",
1054
+ * "unixVer": "-"
1055
+ * },
1056
+ * "toutiao": {
1057
+ * "hostVer": "-",
1058
+ * "uniVer": "-",
1059
+ * "unixVer": "-"
1060
+ * },
1061
+ * "lark": {
1062
+ * "hostVer": "-",
1063
+ * "uniVer": "-",
1064
+ * "unixVer": "-"
1065
+ * },
1066
+ * "qq": {
1067
+ * "hostVer": "-",
1068
+ * "uniVer": "-",
1069
+ * "unixVer": "-"
1070
+ * },
1071
+ * "kuaishou": {
1072
+ * "hostVer": "-",
1073
+ * "uniVer": "-",
1074
+ * "unixVer": "-"
1075
+ * },
1076
+ * "jd": {
1077
+ * "hostVer": "-",
1078
+ * "uniVer": "-",
1079
+ * "unixVer": "-"
1080
+ * }
1081
+ * }
1082
+ * }
1083
+ */
1084
+ export type HideLoadingCompleteCallback = (res: HideLoadingComplete) => void
1085
+
1086
+ /**
1087
+ * uni.hideLoading参数定义
1088
+ */
1089
+ export type HideLoadingOptions = {
1090
+ /**
1091
+ * 期望隐藏的目标LoadingPage 如果为null 会关闭当前栈顶全部LoadingPage
1092
+ * @uniPlatform {
1093
+ "app": {
1094
+ "android": {
1095
+ "osVer": "5.0",
1096
+ "uniVer": "x",
1097
+ "uniUtsPlugin": "x",
1098
+ "unixVer": "4.61"
1099
+ },
1100
+ "ios": {
1101
+ "osVer": "12.0",
1102
+ "uniVer": "x",
1103
+ "uniUtsPlugin": "x",
1104
+ "unixVer": "4.61",
1105
+ "unixUtsPlugin": "4.61"
1106
+ },
1107
+ "harmony": {
1108
+ "osVer": "3.0",
1109
+ "uniVer": "4.23",
1110
+ "unixVer": "4.61",
1111
+ "unixVaporVer": "5.0"
1112
+ }
1113
+ },
1114
+ "mp": {
1115
+ "weixin": {
1116
+ "hostVer": "x",
1117
+ "uniVer": "x",
1118
+ "unixVer": "x"
1119
+ },
1120
+ "alipay": {
1121
+ "hostVer": "x",
1122
+ "uniVer": "x",
1123
+ "unixVer": "x"
1124
+ },
1125
+ "baidu": {
1126
+ "hostVer": "x",
1127
+ "uniVer": "x",
1128
+ "unixVer": "x"
1129
+ },
1130
+ "toutiao": {
1131
+ "hostVer": "x",
1132
+ "uniVer": "x",
1133
+ "unixVer": "x"
1134
+ },
1135
+ "lark": {
1136
+ "hostVer": "x",
1137
+ "uniVer": "x",
1138
+ "unixVer": "x"
1139
+ },
1140
+ "qq": {
1141
+ "hostVer": "x",
1142
+ "uniVer": "x",
1143
+ "unixVer": "x"
1144
+ },
1145
+ "kuaishou": {
1146
+ "hostVer": "x",
1147
+ "uniVer": "x",
1148
+ "unixVer": "x"
1149
+ },
1150
+ "jd": {
1151
+ "hostVer": "x",
1152
+ "uniVer": "x",
1153
+ "unixVer": "x"
1154
+ }
1155
+ },
1156
+ "web": {
1157
+ "uniVer": "√",
1158
+ "unixVer": "4.0"
1159
+ }
1160
+ }
1161
+ */
1162
+ loadingPage?: LoadingPage | null,
1163
+ /**
1164
+ * 接口调用成功的回调函数
1165
+ * @uniPlatform
1166
+ {
1167
+ "app": {
1168
+ "android": {
1169
+ "osVer": "5.0",
1170
+ "uniVer": "x",
1171
+ "uniUtsPlugin": "x",
1172
+ "unixVer": "4.61"
1173
+ },
1174
+ "ios": {
1175
+ "osVer": "12.0",
1176
+ "uniVer": "x",
1177
+ "uniUtsPlugin": "x",
1178
+ "unixVer": "4.61",
1179
+ "unixUtsPlugin": "4.61"
1180
+ },
1181
+ "harmony": {
1182
+ "osVer": "3.0",
1183
+ "uniVer": "4.23",
1184
+ "unixVer": "4.61",
1185
+ "unixVaporVer": "5.0"
1186
+ }
1187
+ },
1188
+ "mp": {
1189
+ "weixin": {
1190
+ "hostVer": "√",
1191
+ "uniVer": "√",
1192
+ "unixVer": "4.41"
1193
+ },
1194
+ "alipay": {
1195
+ "hostVer": "√",
1196
+ "uniVer": "√",
1197
+ "unixVer": "x"
1198
+ },
1199
+ "baidu": {
1200
+ "hostVer": "√",
1201
+ "uniVer": "√",
1202
+ "unixVer": "x"
1203
+ },
1204
+ "toutiao": {
1205
+ "hostVer": "√",
1206
+ "uniVer": "√",
1207
+ "unixVer": "x"
1208
+ },
1209
+ "lark": {
1210
+ "hostVer": "√",
1211
+ "uniVer": "√",
1212
+ "unixVer": "x"
1213
+ },
1214
+ "qq": {
1215
+ "hostVer": "√",
1216
+ "uniVer": "√",
1217
+ "unixVer": "x"
1218
+ },
1219
+ "kuaishou": {
1220
+ "hostVer": "√",
1221
+ "uniVer": "√",
1222
+ "unixVer": "x"
1223
+ },
1224
+ "jd": {
1225
+ "hostVer": "√",
1226
+ "uniVer": "√",
1227
+ "unixVer": "x"
1228
+ }
1229
+ },
1230
+ "web": {
1231
+ "uniVer": "√",
1232
+ "unixVer": "4.0"
1233
+ }
1234
+ }
1235
+ */
1236
+ success?: HideLoadingSuccessCallback | null,
1237
+ /**
1238
+ * 接口调用失败的回调函数
1239
+ * @uniPlatform
1240
+ {
1241
+ "app": {
1242
+ "android": {
1243
+ "osVer": "5.0",
1244
+ "uniVer": "x",
1245
+ "uniUtsPlugin": "x",
1246
+ "unixVer": "4.61"
1247
+ },
1248
+ "ios": {
1249
+ "osVer": "12.0",
1250
+ "uniVer": "x",
1251
+ "uniUtsPlugin": "x",
1252
+ "unixVer": "4.61",
1253
+ "unixUtsPlugin": "4.61"
1254
+ },
1255
+ "harmony": {
1256
+ "osVer": "3.0",
1257
+ "uniVer": "4.23",
1258
+ "unixVer": "4.61",
1259
+ "unixVaporVer": "5.0"
1260
+ }
1261
+ },
1262
+ "mp": {
1263
+ "weixin": {
1264
+ "hostVer": "√",
1265
+ "uniVer": "√",
1266
+ "unixVer": "4.41"
1267
+ },
1268
+ "alipay": {
1269
+ "hostVer": "√",
1270
+ "uniVer": "√",
1271
+ "unixVer": "x"
1272
+ },
1273
+ "baidu": {
1274
+ "hostVer": "√",
1275
+ "uniVer": "√",
1276
+ "unixVer": "x"
1277
+ },
1278
+ "toutiao": {
1279
+ "hostVer": "√",
1280
+ "uniVer": "√",
1281
+ "unixVer": "x"
1282
+ },
1283
+ "lark": {
1284
+ "hostVer": "√",
1285
+ "uniVer": "√",
1286
+ "unixVer": "x"
1287
+ },
1288
+ "qq": {
1289
+ "hostVer": "√",
1290
+ "uniVer": "√",
1291
+ "unixVer": "x"
1292
+ },
1293
+ "kuaishou": {
1294
+ "hostVer": "√",
1295
+ "uniVer": "√",
1296
+ "unixVer": "x"
1297
+ },
1298
+ "jd": {
1299
+ "hostVer": "√",
1300
+ "uniVer": "√",
1301
+ "unixVer": "x"
1302
+ }
1303
+ },
1304
+ "web": {
1305
+ "uniVer": "√",
1306
+ "unixVer": "4.0"
1307
+ }
1308
+ }
1309
+ */
1310
+ fail?: HideLoadingFailCallback | null,
1311
+ /**
1312
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1313
+ * @uniPlatform
1314
+ {
1315
+ "app": {
1316
+ "android": {
1317
+ "osVer": "5.0",
1318
+ "uniVer": "x",
1319
+ "uniUtsPlugin": "x",
1320
+ "unixVer": "4.61"
1321
+ },
1322
+ "ios": {
1323
+ "osVer": "12.0",
1324
+ "uniVer": "x",
1325
+ "uniUtsPlugin": "x",
1326
+ "unixVer": "4.61",
1327
+ "unixUtsPlugin": "4.61"
1328
+ },
1329
+ "harmony": {
1330
+ "osVer": "3.0",
1331
+ "uniVer": "4.23",
1332
+ "unixVer": "4.61",
1333
+ "unixVaporVer": "5.0"
1334
+ }
1335
+ },
1336
+ "mp": {
1337
+ "weixin": {
1338
+ "hostVer": "√",
1339
+ "uniVer": "√",
1340
+ "unixVer": "4.41"
1341
+ },
1342
+ "alipay": {
1343
+ "hostVer": "√",
1344
+ "uniVer": "√",
1345
+ "unixVer": "x"
1346
+ },
1347
+ "baidu": {
1348
+ "hostVer": "√",
1349
+ "uniVer": "√",
1350
+ "unixVer": "x"
1351
+ },
1352
+ "toutiao": {
1353
+ "hostVer": "√",
1354
+ "uniVer": "√",
1355
+ "unixVer": "x"
1356
+ },
1357
+ "lark": {
1358
+ "hostVer": "√",
1359
+ "uniVer": "√",
1360
+ "unixVer": "x"
1361
+ },
1362
+ "qq": {
1363
+ "hostVer": "√",
1364
+ "uniVer": "√",
1365
+ "unixVer": "x"
1366
+ },
1367
+ "kuaishou": {
1368
+ "hostVer": "√",
1369
+ "uniVer": "√",
1370
+ "unixVer": "x"
1371
+ },
1372
+ "jd": {
1373
+ "hostVer": "√",
1374
+ "uniVer": "√",
1375
+ "unixVer": "x"
1376
+ }
1377
+ },
1378
+ "web": {
1379
+ "uniVer": "√",
1380
+ "unixVer": "4.0"
1381
+ }
1382
+ }
1383
+ */
1384
+ complete?: HideLoadingCompleteCallback | null
1385
+ /**
1386
+ * 需要基础库: `2.22.1`
1387
+ *
1388
+ * 目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性
1389
+ *
1390
+ * @uniPlatform {
1391
+ * "mp": {
1392
+ * "weixin": {
1393
+ * "hostVer": "2.22.1",
1394
+ * "uniVer": "√",
1395
+ * "unixVer": "4.41"
1396
+ * },
1397
+ * "alipay": {
1398
+ * "hostVer": "-",
1399
+ * "uniVer": "-",
1400
+ * "unixVer": "-"
1401
+ * },
1402
+ * "baidu": {
1403
+ * "hostVer": "-",
1404
+ * "uniVer": "-",
1405
+ * "unixVer": "-"
1406
+ * },
1407
+ * "toutiao": {
1408
+ * "hostVer": "-",
1409
+ * "uniVer": "-",
1410
+ * "unixVer": "-"
1411
+ * },
1412
+ * "lark": {
1413
+ * "hostVer": "-",
1414
+ * "uniVer": "-",
1415
+ * "unixVer": "-"
1416
+ * },
1417
+ * "qq": {
1418
+ * "hostVer": "-",
1419
+ * "uniVer": "-",
1420
+ * "unixVer": "-"
1421
+ * },
1422
+ * "kuaishou": {
1423
+ * "hostVer": "-",
1424
+ * "uniVer": "-",
1425
+ * "unixVer": "-"
1426
+ * },
1427
+ * "jd": {
1428
+ * "hostVer": "-",
1429
+ * "uniVer": "-",
1430
+ * "unixVer": "-"
1431
+ * }
1432
+ * }
1433
+ * }
1434
+ */
1435
+ noConflict?: boolean | null;
1436
+ }
1437
+
1438
+ export type HideLoading = (options?: HideLoadingOptions | null) => void
1439
+
1440
+ export type LoadingPage = UniPage
1441
+
1442
+ export interface Uni {
1443
+ /**
1444
+ * @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
1445
+ * @example
1446
+ ```typescript
1447
+ uni.showLoading({
1448
+ title: '加载中'
1449
+ });
1450
+ ```
1451
+ * @remark
1452
+ * - showLoading 和 showToast 同时只能显示一个
1453
+ * - showToast 应与 hideToast 配对使用
1454
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
1455
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
1456
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
1457
+ * @uniPlatform {
1458
+ * "app": {
1459
+ * "android": {
1460
+ * "osVer": "5.0",
1461
+ * "uniVer": "x",
1462
+ * "uniUtsPlugin": "x",
1463
+ * "unixVer": "4.61"
1464
+ * },
1465
+ * "ios": {
1466
+ * "osVer": "12.0",
1467
+ * "uniVer": "x",
1468
+ * "uniUtsPlugin": "x",
1469
+ * "unixVer": "4.61",
1470
+ * "unixUtsPlugin": "4.61"
1471
+ * },
1472
+ * "harmony": {
1473
+ * "osVer": "3.0",
1474
+ * "uniVer": "4.23",
1475
+ * "unixVer": "4.61",
1476
+ * "unixVaporVer": "5.0"
1477
+ * }
1478
+ * },
1479
+ * "mp": {
1480
+ * "weixin": {
1481
+ * "hostVer": "1.1.0",
1482
+ * "uniVer": "√",
1483
+ * "unixVer": "4.41"
1484
+ * },
1485
+ * "alipay": {
1486
+ * "hostVer": "√",
1487
+ * "uniVer": "√",
1488
+ * "unixVer": "x"
1489
+ * },
1490
+ * "baidu": {
1491
+ * "hostVer": "√",
1492
+ * "uniVer": "√",
1493
+ * "unixVer": "x"
1494
+ * },
1495
+ * "toutiao": {
1496
+ * "hostVer": "√",
1497
+ * "uniVer": "√",
1498
+ * "unixVer": "x"
1499
+ * },
1500
+ * "lark": {
1501
+ * "hostVer": "√",
1502
+ * "uniVer": "√",
1503
+ * "unixVer": "x"
1504
+ * },
1505
+ * "qq": {
1506
+ * "hostVer": "√",
1507
+ * "uniVer": "√",
1508
+ * "unixVer": "x"
1509
+ * },
1510
+ * "kuaishou": {
1511
+ * "hostVer": "√",
1512
+ * "uniVer": "√",
1513
+ * "unixVer": "x"
1514
+ * },
1515
+ * "jd": {
1516
+ * "hostVer": "√",
1517
+ * "uniVer": "√",
1518
+ * "unixVer": "x"
1519
+ * }
1520
+ * },
1521
+ * "web": {
1522
+ * "uniVer": "√",
1523
+ * "unixVer": "4.0"
1524
+ * }
1525
+ * }
1526
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html
1527
+ */
1528
+ showLoading(options?: ShowLoadingOptions | null): LoadingPage | null,
1529
+
1530
+ /**
1531
+ * @description 隐藏 loading 提示框。
1532
+ * @example
1533
+ ```typescript
1534
+ uni.showLoading({
1535
+ title: '加载中'
1536
+ });
1537
+
1538
+ setTimeout(function () {
1539
+ uni.hideLoading();
1540
+ }, 2000);
1541
+ ```
1542
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
1543
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
1544
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
1545
+ * @uniPlatform {
1546
+ * "app": {
1547
+ * "android": {
1548
+ * "osVer": "5.0",
1549
+ * "uniVer": "x",
1550
+ * "uniUtsPlugin": "x",
1551
+ * "unixVer": "4.61"
1552
+ * },
1553
+ * "ios": {
1554
+ * "osVer": "12.0",
1555
+ * "uniVer": "x",
1556
+ * "uniUtsPlugin": "x",
1557
+ * "unixVer": "4.61",
1558
+ * "unixUtsPlugin": "4.61"
1559
+ * },
1560
+ * "harmony": {
1561
+ * "osVer": "3.0",
1562
+ * "uniVer": "4.23",
1563
+ * "unixVer": "4.61",
1564
+ * "unixVaporVer": "5.0"
1565
+ * }
1566
+ * },
1567
+ * "mp": {
1568
+ * "weixin": {
1569
+ * "hostVer": "1.1.0",
1570
+ * "uniVer": "√",
1571
+ * "unixVer": "4.41"
1572
+ * },
1573
+ * "alipay": {
1574
+ * "hostVer": "√",
1575
+ * "uniVer": "√",
1576
+ * "unixVer": "x"
1577
+ * },
1578
+ * "baidu": {
1579
+ * "hostVer": "√",
1580
+ * "uniVer": "√",
1581
+ * "unixVer": "x"
1582
+ * },
1583
+ * "toutiao": {
1584
+ * "hostVer": "√",
1585
+ * "uniVer": "√",
1586
+ * "unixVer": "x"
1587
+ * },
1588
+ * "lark": {
1589
+ * "hostVer": "√",
1590
+ * "uniVer": "√",
1591
+ * "unixVer": "x"
1592
+ * },
1593
+ * "qq": {
1594
+ * "hostVer": "√",
1595
+ * "uniVer": "√",
1596
+ * "unixVer": "x"
1597
+ * },
1598
+ * "kuaishou": {
1599
+ * "hostVer": "√",
1600
+ * "uniVer": "√",
1601
+ * "unixVer": "x"
1602
+ * },
1603
+ * "jd": {
1604
+ * "hostVer": "√",
1605
+ * "uniVer": "√",
1606
+ * "unixVer": "x"
1607
+ * }
1608
+ * },
1609
+ * "web": {
1610
+ * "uniVer": "√",
1611
+ * "unixVer": "4.0"
1612
+ * }
1613
+ * }
1614
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideLoading.html
1615
+ */
1616
+ hideLoading(options?: HideLoadingOptions | null): void,
1617
+ }