@dcloudio/uni-app-x 0.7.13 → 0.7.15

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 (187) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/app.d.ts +5 -6
  4. package/types/index.d.ts +1 -1
  5. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  6. package/types/native/IUniElement.d.ts +40 -12
  7. package/types/native/Path2D.d.ts +74 -0
  8. package/types/native/UniApp.d.ts +17 -1
  9. package/types/native/UniCanvasElement.d.ts +9 -0
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +31 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniProvider.d.ts +14 -0
  14. package/types/native/UniResizeObserver.d.ts +10 -10
  15. package/types/native/UniScrollEvent.d.ts +1 -1
  16. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  17. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  18. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  19. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  20. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  21. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  22. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  23. package/types/native/global.d.ts +40 -9
  24. package/types/native/index.d.ts +4 -0
  25. package/types/page.d.ts +85 -0
  26. package/types/shim-uts-basic.d.ts +4495 -0
  27. package/types/uni/env/index.d.ts +21 -0
  28. package/types/uni/global.d.ts +1 -0
  29. package/types/uni/index.d.ts +2 -1
  30. package/types/uni/uts-plugin-api/global.d.ts +14 -2
  31. package/types/uni/uts-plugin-api/index.d.ts +14 -2
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  33. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  34. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  36. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  37. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  38. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  39. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  41. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  42. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  43. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  44. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  45. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  46. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  47. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
  48. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
  49. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  50. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  51. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
  52. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  53. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +111 -27
  54. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
  55. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
  56. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  57. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  61. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  62. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  63. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  64. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  65. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -5
  68. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
  69. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +176 -72
  72. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
  73. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
  74. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  75. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  76. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  77. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  78. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  79. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  80. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
  81. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
  82. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
  83. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +459 -67
  86. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  87. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
  88. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  89. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  90. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  91. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  92. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  95. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +26 -16
  96. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  97. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  98. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  99. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  100. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  101. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  102. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  103. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  104. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  105. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  106. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +251 -42
  107. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  108. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  109. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  110. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  111. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +114 -45
  112. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  113. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  114. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +167 -7
  115. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  116. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  117. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
  118. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
  119. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  120. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  121. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
  122. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  123. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -394
  126. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
  127. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  128. package/types/uni/uts-plugin-extend/README.md +3 -0
  129. package/types/uni/uts-plugin-extend/global.d.ts +13 -0
  130. package/types/uni/uts-plugin-extend/index.d.ts +13 -0
  131. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  132. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  133. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  134. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  135. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  136. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  137. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  138. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  139. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  140. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  141. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  142. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  143. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  144. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  145. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  146. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  147. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  153. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  154. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  155. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  156. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  157. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  158. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  159. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  160. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  161. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  162. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  163. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  164. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  165. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  166. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  167. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  168. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  169. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  170. package/types/uni-cloud/index.d.ts +4 -0
  171. package/types/uni-cloud/interface.d.ts +163 -20
  172. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  173. package/types/vue/LifeCycle.d.ts +32 -32
  174. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  175. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  176. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  177. package/types/vue/SliderChangeEvent.d.ts +9 -10
  178. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  179. package/types/vue/UniCloudDBElement.d.ts +72 -75
  180. package/types/vue/UniFormElement.d.ts +17 -19
  181. package/types/vue/UniNavigatorElement.d.ts +1 -2
  182. package/types/vue/global.d.ts +190 -0
  183. package/types/vue/index.d.ts +10 -11
  184. package/types/vue-global/index.d.ts +1 -0
  185. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  186. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  187. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -643
@@ -31,7 +31,12 @@ export type NavigateToOptions = {
31
31
  * "osVer": "12.0",
32
32
  * "uniVer": "√",
33
33
  * "unixVer": "4.11"
34
- * }
34
+ * },
35
+ * "harmony": {
36
+ * "osVer": "3.0",
37
+ * "uniVer": "4.23",
38
+ * "unixVer": "x"
39
+ * }
35
40
  * },
36
41
  * "mp": {
37
42
  * "weixin": {
@@ -100,13 +105,18 @@ export type NavigateToOptions = {
100
105
  * "android": {
101
106
  * "osVer": "5.0",
102
107
  * "uniVer": "√",
103
- * "unixVer": "x"
108
+ * "unixVer": "4.18"
104
109
  * },
105
110
  * "ios": {
106
111
  * "osVer": "12.0",
107
112
  * "uniVer": "√",
108
113
  * "unixVer": "x"
109
- * }
114
+ * },
115
+ * "harmony": {
116
+ * "osVer": "3.0",
117
+ * "uniVer": "4.23",
118
+ * "unixVer": "x"
119
+ * }
110
120
  * },
111
121
  * "mp": {
112
122
  * "weixin": {
@@ -151,8 +161,8 @@ export type NavigateToOptions = {
151
161
  * }
152
162
  * },
153
163
  * "web": {
154
- * "uniVer": "",
155
- * "unixVer": "4.0"
164
+ * "uniVer": "x",
165
+ * "unixVer": "x"
156
166
  * }
157
167
  * }
158
168
  */
@@ -170,7 +180,12 @@ export type NavigateToOptions = {
170
180
  * "osVer": "12.0",
171
181
  * "uniVer": "√",
172
182
  * "unixVer": "x"
173
- * }
183
+ * },
184
+ * "harmony": {
185
+ * "osVer": "3.0",
186
+ * "uniVer": "4.23",
187
+ * "unixVer": "x"
188
+ * }
174
189
  * },
175
190
  * "mp": {
176
191
  * "weixin": {
@@ -215,8 +230,8 @@ export type NavigateToOptions = {
215
230
  * }
216
231
  * },
217
232
  * "web": {
218
- * "uniVer": "",
219
- * "unixVer": "4.0"
233
+ * "uniVer": "x",
234
+ * "unixVer": "x"
220
235
  * }
221
236
  * }
222
237
  */
@@ -234,7 +249,12 @@ export type NavigateToOptions = {
234
249
  * "osVer": "12.0",
235
250
  * "uniVer": "√",
236
251
  * "unixVer": "x"
237
- * }
252
+ * },
253
+ * "harmony": {
254
+ * "osVer": "3.0",
255
+ * "uniVer": "4.23",
256
+ * "unixVer": "x"
257
+ * }
238
258
  * },
239
259
  * "mp": {
240
260
  * "weixin": {
@@ -285,6 +305,70 @@ export type NavigateToOptions = {
285
305
  * }
286
306
  */
287
307
  events?: any | null
308
+ /**
309
+ * 自定义路由配置
310
+ * @uniPlatform {
311
+ * "app": {
312
+ * "android": {
313
+ * "osVer": "5.0",
314
+ * "uniVer": "x",
315
+ * "unixVer": "x"
316
+ * },
317
+ * "ios": {
318
+ * "osVer": "12.0",
319
+ * "uniVer": "x",
320
+ * "unixVer": "x"
321
+ * }
322
+ * },
323
+ * "mp": {
324
+ * "weixin": {
325
+ * "hostVer": "√",
326
+ * "uniVer": "x",
327
+ * "unixVer": "x"
328
+ * },
329
+ * "alipay": {
330
+ * "hostVer": "√",
331
+ * "uniVer": "x",
332
+ * "unixVer": "x"
333
+ * },
334
+ * "baidu": {
335
+ * "hostVer": "√",
336
+ * "uniVer": "x",
337
+ * "unixVer": "x"
338
+ * },
339
+ * "toutiao": {
340
+ * "hostVer": "√",
341
+ * "uniVer": "x",
342
+ * "unixVer": "x"
343
+ * },
344
+ * "lark": {
345
+ * "hostVer": "√",
346
+ * "uniVer": "x",
347
+ * "unixVer": "x"
348
+ * },
349
+ * "qq": {
350
+ * "hostVer": "√",
351
+ * "uniVer": "x",
352
+ * "unixVer": "x"
353
+ * },
354
+ * "kuaishou": {
355
+ * "hostVer": "√",
356
+ * "uniVer": "x",
357
+ * "unixVer": "x"
358
+ * },
359
+ * "jd": {
360
+ * "hostVer": "√",
361
+ * "uniVer": "x",
362
+ * "unixVer": "x"
363
+ * }
364
+ * },
365
+ * "web": {
366
+ * "uniVer": "x",
367
+ * "unixVer": "x"
368
+ * }
369
+ * }
370
+ */
371
+ dialog?: Map<string, any | null> | null
288
372
  /**
289
373
  * 接口调用成功的回调函数
290
374
  * @uniPlatform {
@@ -298,7 +382,12 @@ export type NavigateToOptions = {
298
382
  * "osVer": "12.0",
299
383
  * "uniVer": "√",
300
384
  * "unixVer": "4.11"
301
- * }
385
+ * },
386
+ * "harmony": {
387
+ * "osVer": "3.0",
388
+ * "uniVer": "4.23",
389
+ * "unixVer": "x"
390
+ * }
302
391
  * },
303
392
  * "mp": {
304
393
  * "weixin": {
@@ -362,7 +451,12 @@ export type NavigateToOptions = {
362
451
  * "osVer": "12.0",
363
452
  * "uniVer": "√",
364
453
  * "unixVer": "4.11"
365
- * }
454
+ * },
455
+ * "harmony": {
456
+ * "osVer": "3.0",
457
+ * "uniVer": "4.23",
458
+ * "unixVer": "x"
459
+ * }
366
460
  * },
367
461
  * "mp": {
368
462
  * "weixin": {
@@ -426,7 +520,12 @@ export type NavigateToOptions = {
426
520
  * "osVer": "12.0",
427
521
  * "uniVer": "√",
428
522
  * "unixVer": "4.11"
429
- * }
523
+ * },
524
+ * "harmony": {
525
+ * "osVer": "3.0",
526
+ * "uniVer": "4.23",
527
+ * "unixVer": "x"
528
+ * }
430
529
  * },
431
530
  * "mp": {
432
531
  * "weixin": {
@@ -500,7 +599,12 @@ export type RedirectToOptions = {
500
599
  * "osVer": "12.0",
501
600
  * "uniVer": "√",
502
601
  * "unixVer": "4.11"
503
- * }
602
+ * },
603
+ * "harmony": {
604
+ * "osVer": "3.0",
605
+ * "uniVer": "4.23",
606
+ * "unixVer": "x"
607
+ * }
504
608
  * },
505
609
  * "mp": {
506
610
  * "weixin": {
@@ -564,7 +668,12 @@ export type RedirectToOptions = {
564
668
  * "osVer": "12.0",
565
669
  * "uniVer": "√",
566
670
  * "unixVer": "4.11"
567
- * }
671
+ * },
672
+ * "harmony": {
673
+ * "osVer": "3.0",
674
+ * "uniVer": "4.23",
675
+ * "unixVer": "x"
676
+ * }
568
677
  * },
569
678
  * "mp": {
570
679
  * "weixin": {
@@ -628,7 +737,12 @@ export type RedirectToOptions = {
628
737
  * "osVer": "12.0",
629
738
  * "uniVer": "√",
630
739
  * "unixVer": "4.11"
631
- * }
740
+ * },
741
+ * "harmony": {
742
+ * "osVer": "3.0",
743
+ * "uniVer": "4.23",
744
+ * "unixVer": "x"
745
+ * }
632
746
  * },
633
747
  * "mp": {
634
748
  * "weixin": {
@@ -692,7 +806,12 @@ export type RedirectToOptions = {
692
806
  * "osVer": "12.0",
693
807
  * "uniVer": "√",
694
808
  * "unixVer": "4.11"
695
- * }
809
+ * },
810
+ * "harmony": {
811
+ * "osVer": "3.0",
812
+ * "uniVer": "4.23",
813
+ * "unixVer": "x"
814
+ * }
696
815
  * },
697
816
  * "mp": {
698
817
  * "weixin": {
@@ -766,7 +885,12 @@ export type ReLaunchOptions = {
766
885
  * "osVer": "12.0",
767
886
  * "uniVer": "√",
768
887
  * "unixVer": "4.11"
769
- * }
888
+ * },
889
+ * "harmony": {
890
+ * "osVer": "3.0",
891
+ * "uniVer": "4.23",
892
+ * "unixVer": "x"
893
+ * }
770
894
  * },
771
895
  * "mp": {
772
896
  * "weixin": {
@@ -830,7 +954,12 @@ export type ReLaunchOptions = {
830
954
  * "osVer": "12.0",
831
955
  * "uniVer": "√",
832
956
  * "unixVer": "4.11"
833
- * }
957
+ * },
958
+ * "harmony": {
959
+ * "osVer": "3.0",
960
+ * "uniVer": "4.23",
961
+ * "unixVer": "x"
962
+ * }
834
963
  * },
835
964
  * "mp": {
836
965
  * "weixin": {
@@ -894,7 +1023,12 @@ export type ReLaunchOptions = {
894
1023
  * "osVer": "12.0",
895
1024
  * "uniVer": "√",
896
1025
  * "unixVer": "4.11"
897
- * }
1026
+ * },
1027
+ * "harmony": {
1028
+ * "osVer": "3.0",
1029
+ * "uniVer": "4.23",
1030
+ * "unixVer": "x"
1031
+ * }
898
1032
  * },
899
1033
  * "mp": {
900
1034
  * "weixin": {
@@ -958,7 +1092,12 @@ export type ReLaunchOptions = {
958
1092
  * "osVer": "12.0",
959
1093
  * "uniVer": "√",
960
1094
  * "unixVer": "4.11"
961
- * }
1095
+ * },
1096
+ * "harmony": {
1097
+ * "osVer": "3.0",
1098
+ * "uniVer": "4.23",
1099
+ * "unixVer": "x"
1100
+ * }
962
1101
  * },
963
1102
  * "mp": {
964
1103
  * "weixin": {
@@ -1034,7 +1173,12 @@ export type SwitchTabOptions = {
1034
1173
  * "osVer": "12.0",
1035
1174
  * "uniVer": "√",
1036
1175
  * "unixVer": "4.11"
1037
- * }
1176
+ * },
1177
+ * "harmony": {
1178
+ * "osVer": "3.0",
1179
+ * "uniVer": "4.23",
1180
+ * "unixVer": "x"
1181
+ * }
1038
1182
  * },
1039
1183
  * "mp": {
1040
1184
  * "weixin": {
@@ -1098,7 +1242,12 @@ export type SwitchTabOptions = {
1098
1242
  * "osVer": "12.0",
1099
1243
  * "uniVer": "√",
1100
1244
  * "unixVer": "4.11"
1101
- * }
1245
+ * },
1246
+ * "harmony": {
1247
+ * "osVer": "3.0",
1248
+ * "uniVer": "4.23",
1249
+ * "unixVer": "x"
1250
+ * }
1102
1251
  * },
1103
1252
  * "mp": {
1104
1253
  * "weixin": {
@@ -1162,7 +1311,12 @@ export type SwitchTabOptions = {
1162
1311
  * "osVer": "12.0",
1163
1312
  * "uniVer": "√",
1164
1313
  * "unixVer": "4.11"
1165
- * }
1314
+ * },
1315
+ * "harmony": {
1316
+ * "osVer": "3.0",
1317
+ * "uniVer": "4.23",
1318
+ * "unixVer": "x"
1319
+ * }
1166
1320
  * },
1167
1321
  * "mp": {
1168
1322
  * "weixin": {
@@ -1226,7 +1380,12 @@ export type SwitchTabOptions = {
1226
1380
  * "osVer": "12.0",
1227
1381
  * "uniVer": "√",
1228
1382
  * "unixVer": "4.11"
1229
- * }
1383
+ * },
1384
+ * "harmony": {
1385
+ * "osVer": "3.0",
1386
+ * "uniVer": "4.23",
1387
+ * "unixVer": "x"
1388
+ * }
1230
1389
  * },
1231
1390
  * "mp": {
1232
1391
  * "weixin": {
@@ -1300,7 +1459,12 @@ export type NavigateBackOptions = {
1300
1459
  * "osVer": "12.0",
1301
1460
  * "uniVer": "√",
1302
1461
  * "unixVer": "4.11"
1303
- * }
1462
+ * },
1463
+ * "harmony": {
1464
+ * "osVer": "3.0",
1465
+ * "uniVer": "4.23",
1466
+ * "unixVer": "x"
1467
+ * }
1304
1468
  * },
1305
1469
  * "mp": {
1306
1470
  * "weixin": {
@@ -1369,7 +1533,7 @@ export type NavigateBackOptions = {
1369
1533
  * "android": {
1370
1534
  * "osVer": "5.0",
1371
1535
  * "uniVer": "√",
1372
- * "unixVer": "x"
1536
+ * "unixVer": "4.18"
1373
1537
  * },
1374
1538
  * "ios": {
1375
1539
  * "osVer": "12.0",
@@ -1420,8 +1584,8 @@ export type NavigateBackOptions = {
1420
1584
  * }
1421
1585
  * },
1422
1586
  * "web": {
1423
- * "uniVer": "",
1424
- * "unixVer": "4.0"
1587
+ * "uniVer": "x",
1588
+ * "unixVer": "x"
1425
1589
  * }
1426
1590
  * }
1427
1591
  */
@@ -1484,8 +1648,8 @@ export type NavigateBackOptions = {
1484
1648
  * }
1485
1649
  * },
1486
1650
  * "web": {
1487
- * "uniVer": "",
1488
- * "unixVer": "4.0"
1651
+ * "uniVer": "x",
1652
+ * "unixVer": "x"
1489
1653
  * }
1490
1654
  * }
1491
1655
  */
@@ -1567,7 +1731,12 @@ export type NavigateBackOptions = {
1567
1731
  * "osVer": "12.0",
1568
1732
  * "uniVer": "√",
1569
1733
  * "unixVer": "4.11"
1570
- * }
1734
+ * },
1735
+ * "harmony": {
1736
+ * "osVer": "3.0",
1737
+ * "uniVer": "4.23",
1738
+ * "unixVer": "x"
1739
+ * }
1571
1740
  * },
1572
1741
  * "mp": {
1573
1742
  * "weixin": {
@@ -1631,7 +1800,12 @@ export type NavigateBackOptions = {
1631
1800
  * "osVer": "12.0",
1632
1801
  * "uniVer": "√",
1633
1802
  * "unixVer": "4.11"
1634
- * }
1803
+ * },
1804
+ * "harmony": {
1805
+ * "osVer": "3.0",
1806
+ * "uniVer": "4.23",
1807
+ * "unixVer": "x"
1808
+ * }
1635
1809
  * },
1636
1810
  * "mp": {
1637
1811
  * "weixin": {
@@ -1688,7 +1862,9 @@ export interface Uni {
1688
1862
  /**
1689
1863
  * 保留当前页面,跳转到应用内的某个页面
1690
1864
  *
1691
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateto
1865
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#navigateto
1866
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateto
1867
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateto
1692
1868
  * @uniPlatform {
1693
1869
  * "app": {
1694
1870
  * "android": {
@@ -1700,7 +1876,12 @@ export interface Uni {
1700
1876
  * "osVer": "12.0",
1701
1877
  * "uniVer": "√",
1702
1878
  * "unixVer": "4.11"
1703
- * }
1879
+ * },
1880
+ * "harmony": {
1881
+ * "osVer": "3.0",
1882
+ * "uniVer": "4.23",
1883
+ * "unixVer": "x"
1884
+ * }
1704
1885
  * },
1705
1886
  * "mp": {
1706
1887
  * "weixin": {
@@ -1754,7 +1935,9 @@ export interface Uni {
1754
1935
  /**
1755
1936
  * 关闭当前页面,跳转到应用内的某个页面
1756
1937
  *
1757
- * @tutorial http://uniapp.dcloud.io/api/router?id=redirectto
1938
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#redirectto
1939
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#redirectto
1940
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#redirectto
1758
1941
  * @uniPlatform {
1759
1942
  * "app": {
1760
1943
  * "android": {
@@ -1766,7 +1949,12 @@ export interface Uni {
1766
1949
  * "osVer": "12.0",
1767
1950
  * "uniVer": "√",
1768
1951
  * "unixVer": "4.11"
1769
- * }
1952
+ * },
1953
+ * "harmony": {
1954
+ * "osVer": "3.0",
1955
+ * "uniVer": "4.23",
1956
+ * "unixVer": "x"
1957
+ * }
1770
1958
  * },
1771
1959
  * "mp": {
1772
1960
  * "weixin": {
@@ -1820,7 +2008,9 @@ export interface Uni {
1820
2008
  /**
1821
2009
  * 关闭所有页面,打开到应用内的某个页面
1822
2010
  *
1823
- * @tutorial http://uniapp.dcloud.io/api/router?id=relaunch
2011
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#relaunch
2012
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#relaunch
2013
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#relaunch
1824
2014
  * @uniPlatform {
1825
2015
  * "app": {
1826
2016
  * "android": {
@@ -1832,7 +2022,12 @@ export interface Uni {
1832
2022
  * "osVer": "12.0",
1833
2023
  * "uniVer": "√",
1834
2024
  * "unixVer": "4.11"
1835
- * }
2025
+ * },
2026
+ * "harmony": {
2027
+ * "osVer": "3.0",
2028
+ * "uniVer": "4.23",
2029
+ * "unixVer": "x"
2030
+ * }
1836
2031
  * },
1837
2032
  * "mp": {
1838
2033
  * "weixin": {
@@ -1886,7 +2081,9 @@ export interface Uni {
1886
2081
  /**
1887
2082
  * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
1888
2083
  *
1889
- * @tutorial http://uniapp.dcloud.io/api/router?id=switchtab
2084
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#switchtab
2085
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#switchtab
2086
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#switchtab
1890
2087
  * @uniPlatform {
1891
2088
  * "app": {
1892
2089
  * "android": {
@@ -1898,7 +2095,12 @@ export interface Uni {
1898
2095
  * "osVer": "12.0",
1899
2096
  * "uniVer": "√",
1900
2097
  * "unixVer": "4.11"
1901
- * }
2098
+ * },
2099
+ * "harmony": {
2100
+ * "osVer": "3.0",
2101
+ * "uniVer": "4.23",
2102
+ * "unixVer": "x"
2103
+ * }
1902
2104
  * },
1903
2105
  * "mp": {
1904
2106
  * "weixin": {
@@ -1952,7 +2154,9 @@ export interface Uni {
1952
2154
  /**
1953
2155
  * 关闭当前页面,返回上一页面或多级页面
1954
2156
  *
1955
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateback
2157
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#navigateback
2158
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateback
2159
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateback
1956
2160
  * @uniPlatform {
1957
2161
  * "app": {
1958
2162
  * "android": {
@@ -1964,7 +2168,12 @@ export interface Uni {
1964
2168
  * "osVer": "12.0",
1965
2169
  * "uniVer": "√",
1966
2170
  * "unixVer": "4.11"
1967
- * }
2171
+ * },
2172
+ * "harmony": {
2173
+ * "osVer": "3.0",
2174
+ * "uniVer": "4.23",
2175
+ * "unixVer": "x"
2176
+ * }
1968
2177
  * },
1969
2178
  * "mp": {
1970
2179
  * "weixin": {
@@ -3,8 +3,8 @@ export type Rpx2px = (number : number) => number;
3
3
  export interface Uni {
4
4
  /**
5
5
  * 将rpx单位值转换成px
6
- * @param {number} rpx
7
- * @return {number} px
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/font.html#upx2px
7
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
8
8
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
9
9
  * @uniPlatform {
10
10
  * "app": {
@@ -17,6 +17,11 @@ export interface Uni {
17
17
  * "osVer": "12.0",
18
18
  * "uniVer": "√",
19
19
  * "unixVer": "4.11"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.23",
24
+ * "unixVer": "x"
20
25
  * }
21
26
  * },
22
27
  * "web": {
@@ -0,0 +1,24 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ ScanCodeSuccess as ScanCodeSuccessOrigin,
4
+ ScanCodeFail as ScanCodeFailOrigin,
5
+ ScanCodeSuccessCallback as ScanCodeSuccessCallbackOrigin,
6
+ ScanCodeFailCallback as ScanCodeFailCallbackOrigin,
7
+ ScanCodeCompleteCallback as ScanCodeCompleteCallbackOrigin,
8
+ ScanCodeSupportedTypes as ScanCodeSupportedTypesOrigin,
9
+ ScanCodeOptions as ScanCodeOptionsOrigin,
10
+ ScanCode as ScanCodeOrigin,
11
+ Uni as UniOrigin
12
+ } from './interface'
13
+
14
+ declare global {
15
+ type ScanCodeSuccess = ScanCodeSuccessOrigin
16
+ type ScanCodeFail = ScanCodeFailOrigin
17
+ type ScanCodeSuccessCallback = ScanCodeSuccessCallbackOrigin
18
+ type ScanCodeFailCallback = ScanCodeFailCallbackOrigin
19
+ type ScanCodeCompleteCallback = ScanCodeCompleteCallbackOrigin
20
+ type ScanCodeSupportedTypes = ScanCodeSupportedTypesOrigin
21
+ type ScanCodeOptions = ScanCodeOptionsOrigin
22
+ type ScanCode = ScanCodeOrigin
23
+ interface Uni extends UniOrigin { }
24
+ }
@@ -0,0 +1,11 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ ScanCodeSuccess,
4
+ ScanCodeFail,
5
+ ScanCodeSuccessCallback,
6
+ ScanCodeFailCallback,
7
+ ScanCodeCompleteCallback,
8
+ ScanCodeSupportedTypes,
9
+ ScanCodeOptions,
10
+ ScanCode,
11
+ } from './interface'
@@ -0,0 +1,73 @@
1
+ /**
2
+ * uni.scanCode成功回调参数
3
+ */
4
+ export type ScanCodeSuccess = {
5
+ result: string,
6
+ scanType: ScanCodeSupportedTypes
7
+ }
8
+
9
+ export type ScanCodeFail = {}
10
+ /**
11
+ * uni.scanCode成功回调函数定义
12
+ */
13
+ export type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void
14
+ /**
15
+ * uni.scanCode失败回调函数定义
16
+ */
17
+ export type ScanCodeFailCallback = (res: ScanCodeFail) => void
18
+ /**
19
+ * uni.scanCode完成回调函数定义
20
+ */
21
+ export type ScanCodeCompleteCallback = (res: any) => void
22
+
23
+ export type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'
24
+
25
+ /**
26
+ * uni.scanCode参数定义
27
+ */
28
+ export type ScanCodeOptions = {
29
+ /**
30
+ * 是否只能从相机扫码,不允许从相册选择图片
31
+ */
32
+ onlyFromCamera?: boolean | null,
33
+ /**
34
+ * 扫码类型
35
+ */
36
+ scanType?: ScanCodeSupportedTypes[] | null,
37
+ /**
38
+ * 接口调用成功的回调函数
39
+ */
40
+ success?: ScanCodeSuccessCallback | null,
41
+ /**
42
+ * 接口调用失败的回调函数
43
+ */
44
+ fail?: ScanCodeFailCallback | null,
45
+ /**
46
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
47
+ */
48
+ complete?: ScanCodeCompleteCallback | null
49
+ }
50
+
51
+
52
+ export interface Uni {
53
+ /**
54
+ * 扫码
55
+ * @uniPlatform {
56
+ * "app": {
57
+ * "harmony": {
58
+ * "osVer": "3.0",
59
+ * "uniVer": "4.23",
60
+ * "unixVer": "x"
61
+ * }
62
+ * },
63
+ * "web": {
64
+ * "uniVer": "x",
65
+ * "unixVer": "x"
66
+ * }
67
+ * }
68
+ * @uniVueVersion 2,3 //支持的vue版本
69
+ */
70
+ scanCode(options?: ScanCodeOptions | null): void;
71
+ }
72
+
73
+ export type ScanCode = (options?: ScanCodeOptions | null) => void;