@dcloudio/uni-app-x 0.7.39 → 0.7.40

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 (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.39",
3
+ "version": "0.7.40",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -8,14 +8,15 @@
8
8
  "license": "Apache-2.0",
9
9
  "type": "module",
10
10
  "scripts": {
11
+ "build:wx:api": "node ./scripts/build-wx.js",
11
12
  "build:types:core": "node ./scripts/build-types.js -t core",
12
- "build:types:plugin:api": "node ./scripts/build-types.js -t uts-plugin-api",
13
- "build:types:plugin:component": "node ./scripts/build-types.js -t uts-plugin-component",
14
- "build:types:plugin:biz": "node ./scripts/build-types.js -t uts-plugin-biz",
15
- "build:types:plugin": "npm run build:types:plugin:api && npm run build:types:plugin:component && npm run build:types:plugin:biz",
13
+ "build:types:plugin:api": "node ./scripts/build-types.js -t uts-plugin-api --incremental",
14
+ "build:types:plugin:component": "node ./scripts/build-types.js -t uts-plugin-component --incremental",
15
+ "build:types:plugin:biz": "node ./scripts/build-types.js -t uts-plugin-biz --incremental",
16
+ "build:types:plugin": "npm run build:types:plugin:api && npm run build:types:plugin:component && npm run build:types:plugin:biz",
16
17
  "build:types:meta": "node ./scripts/build-meta.js",
17
18
  "build:types:native": "node ./scripts/build-native.js",
18
- "build:types": "npm run build:types:native && npm run build:types:plugin"
19
+ "build:types": "npm run build:types:native && npm run build:types:plugin && npm run build:wx:api"
19
20
  },
20
21
  "devDependencies": {
21
22
  "delete": "^1.1.0",
@@ -23,6 +24,7 @@
23
24
  "fs-extra": "^11.1.1",
24
25
  "glob": "^10.3.3",
25
26
  "minimist": "^1.2.8",
26
- "ts-morph": "^19.0.0"
27
+ "miniprogram-api-typings": "^4.0.2",
28
+ "ts-morph": "^23.0.0"
27
29
  }
28
30
  }
@@ -1,8 +1,10 @@
1
+ import { UniSafeArea, UniSafeAreaInsets } from './native/UniSafeArea'
2
+
1
3
  export interface UniPage {
2
4
  /**
3
5
  * 页面的路由地址
4
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
6
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
7
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
6
8
  * @uniPlatform {
7
9
  * "app": {
8
10
  * "android": {
@@ -38,8 +40,8 @@ export interface UniPage {
38
40
  route: string
39
41
  /**
40
42
  * 页面的路由参数信息
41
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
42
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
43
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
44
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
43
45
  * @uniPlatform {
44
46
  * "app": {
45
47
  * "android": {
@@ -75,8 +77,8 @@ export interface UniPage {
75
77
  options: UTSJSONObject
76
78
  /**
77
79
  * UniPage vue 实例对象
78
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
79
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
80
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
81
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
80
82
  * @uniPlatform {
81
83
  * "app": {
82
84
  * "android": {
@@ -112,8 +114,8 @@ export interface UniPage {
112
114
  /**
113
115
  * UniPage vue 实例对象
114
116
  * @deprecated 已废弃,仅为了向下兼容保留
115
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
116
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
117
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
118
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
117
119
  * @uniPlatform {
118
120
  * "app": {
119
121
  * "android": {
@@ -146,9 +148,153 @@ export interface UniPage {
146
148
  * }
147
149
  */
148
150
  $vm: ComponentPublicInstance | null
151
+ /**
152
+ * UniPage 窗口宽度,单位为px
153
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
154
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
155
+ * @uniPlatform {
156
+ * "app": {
157
+ * "android": {
158
+ * "osVer": "5.0",
159
+ * "uniVer": "x",
160
+ * "unixVer": "4.51"
161
+ * },
162
+ * "ios": {
163
+ * "osVer": "x",
164
+ * "uniVer": "x",
165
+ * "unixVer": "4.51"
166
+ * },
167
+ * "harmony": {
168
+ * "osVer": "x",
169
+ * "uniVer": "x",
170
+ * "unixVer": "x"
171
+ * }
172
+ * },
173
+ * "mp": {
174
+ * "weixin": {
175
+ * "hostVer": "√",
176
+ * "uniVer": "x",
177
+ * "unixVer": "x"
178
+ * },
179
+ * },
180
+ * "web": {
181
+ * "uniVer": "x",
182
+ * "unixVer": "4.51"
183
+ * }
184
+ * }
185
+ */
186
+ innerWidth: number
187
+ /**
188
+ * UniPage 窗口高度,单位为px
189
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
190
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
191
+ * @uniPlatform {
192
+ * "app": {
193
+ * "android": {
194
+ * "osVer": "5.0",
195
+ * "uniVer": "x",
196
+ * "unixVer": "4.51"
197
+ * },
198
+ * "ios": {
199
+ * "osVer": "x",
200
+ * "uniVer": "x",
201
+ * "unixVer": "4.51"
202
+ * },
203
+ * "harmony": {
204
+ * "osVer": "x",
205
+ * "uniVer": "x",
206
+ * "unixVer": "x"
207
+ * }
208
+ * },
209
+ * "mp": {
210
+ * "weixin": {
211
+ * "hostVer": "√",
212
+ * "uniVer": "x",
213
+ * "unixVer": "x"
214
+ * },
215
+ * },
216
+ * "web": {
217
+ * "uniVer": "x",
218
+ * "unixVer": "4.51"
219
+ * }
220
+ * }
221
+ */
222
+ innerHeight: number
223
+ /**
224
+ * UniPage 安全区域在屏幕中的位置信息
225
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
226
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
227
+ * @uniPlatform {
228
+ * "app": {
229
+ * "android": {
230
+ * "osVer": "5.0",
231
+ * "uniVer": "x",
232
+ * "unixVer": "4.51"
233
+ * },
234
+ * "ios": {
235
+ * "osVer": "x",
236
+ * "uniVer": "x",
237
+ * "unixVer": "4.51"
238
+ * },
239
+ * "harmony": {
240
+ * "osVer": "x",
241
+ * "uniVer": "x",
242
+ * "unixVer": "x"
243
+ * }
244
+ * },
245
+ * "mp": {
246
+ * "weixin": {
247
+ * "hostVer": "√",
248
+ * "uniVer": "x",
249
+ * "unixVer": "x"
250
+ * },
251
+ * },
252
+ * "web": {
253
+ * "uniVer": "x",
254
+ * "unixVer": "4.51"
255
+ * }
256
+ * }
257
+ */
258
+ safeArea: UniSafeArea
259
+ /**
260
+ * UniPage 安全区域插入位置(与屏幕边界的距离)信息
261
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
262
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
263
+ * @uniPlatform {
264
+ * "app": {
265
+ * "android": {
266
+ * "osVer": "5.0",
267
+ * "uniVer": "x",
268
+ * "unixVer": "4.51"
269
+ * },
270
+ * "ios": {
271
+ * "osVer": "x",
272
+ * "uniVer": "x",
273
+ * "unixVer": "4.51"
274
+ * },
275
+ * "harmony": {
276
+ * "osVer": "x",
277
+ * "uniVer": "x",
278
+ * "unixVer": "x"
279
+ * }
280
+ * },
281
+ * "mp": {
282
+ * "weixin": {
283
+ * "hostVer": "√",
284
+ * "uniVer": "x",
285
+ * "unixVer": "x"
286
+ * },
287
+ * },
288
+ * "web": {
289
+ * "uniVer": "x",
290
+ * "unixVer": "4.51"
291
+ * }
292
+ * }
293
+ */
294
+ safeAreaInsets: UniSafeAreaInsets
149
295
  /**
150
296
  * 获取当前页面样式。详细属性配置请参考PageStyle
151
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle
297
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle
152
298
  * @uniPlatform {
153
299
  * "app": {
154
300
  * "android": {
@@ -185,7 +331,7 @@ export interface UniPage {
185
331
  /**
186
332
  * 获取当前页面样式。详细属性配置请参考PageStyle
187
333
  * @deprecated 已废弃,仅为了向下兼容保留
188
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle-2
334
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle-2
189
335
  * @uniPlatform {
190
336
  * "app": {
191
337
  * "android": {
@@ -220,7 +366,7 @@ export interface UniPage {
220
366
  $getPageStyle(): UTSJSONObject
221
367
  /**
222
368
  * 设置当前页面样式。详细属性配置请参考PageStyle
223
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle
369
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle
224
370
  * @uniPlatform {
225
371
  * "app": {
226
372
  * "android": {
@@ -257,7 +403,7 @@ export interface UniPage {
257
403
  /**
258
404
  * 设置当前页面样式。详细属性配置请参考PageStyle
259
405
  * @deprecated 已废弃,仅为了向下兼容保留
260
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle-2
406
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle-2
261
407
  * @uniPlatform {
262
408
  * "app": {
263
409
  * "android": {
@@ -292,7 +438,7 @@ export interface UniPage {
292
438
  $setPageStyle(style: UTSJSONObject): void
293
439
  /**
294
440
  * 用于 dialogPage 获取所属父页面
295
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
441
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
296
442
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
297
443
  * @uniPlatform {
298
444
  * "app": {
@@ -329,7 +475,7 @@ export interface UniPage {
329
475
  getParentPage(): UniPage | null
330
476
  /**
331
477
  * 获取当前页面的 dialog 子页面集合
332
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
478
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
333
479
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
334
480
  * @uniPlatform {
335
481
  * "app": {
@@ -369,8 +515,8 @@ export interface UniPage {
369
515
  * 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
370
516
  * ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
371
517
  *
372
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getelementbyid
373
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getelementbyid
518
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
519
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
374
520
  * @uniPlatform {
375
521
  * "app": {
376
522
  * "android": {
@@ -406,8 +552,8 @@ export interface UniPage {
406
552
  /**
407
553
  * 返回 android 平台页面根 view
408
554
  *
409
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getandroidview
410
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getandroidview
555
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
556
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
411
557
  * @uniPlatform {
412
558
  * "app": {
413
559
  * "android": {
@@ -443,8 +589,8 @@ export interface UniPage {
443
589
  /**
444
590
  * 返回 ios 平台页面根 view
445
591
  *
446
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getiosview
447
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getiosview
592
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
593
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
448
594
  * @uniPlatform {
449
595
  * "app": {
450
596
  * "android": {
@@ -481,8 +627,8 @@ export interface UniPage {
481
627
  /**
482
628
  * 返回页面 HTML Element 对象
483
629
  *
484
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#gethtmlelement
485
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#gethtmlelement
630
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
631
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
486
632
  * @uniPlatform {
487
633
  * "app": {
488
634
  * "android": {
package/types/app.d.ts CHANGED
@@ -47,8 +47,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
47
47
  * 全局对象
48
48
  *
49
49
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
50
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
51
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
50
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
51
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
52
52
  *
53
53
  * @uniPlatform {
54
54
  * "app": {
@@ -67,7 +67,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
67
67
  * "weixin": {
68
68
  * "hostVer": "√",
69
69
  * "uniVer": "√",
70
- * "unixVer": "x"
70
+ * "unixVer": "4.41"
71
71
  * },
72
72
  * "alipay": {
73
73
  * "hostVer": "√",
@@ -116,8 +116,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
116
116
  * 生命周期回调,监听应用初始化,应用初始化完成时触发,全局只触发一次。
117
117
  *
118
118
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
119
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
120
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
119
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
120
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
121
121
  *
122
122
  * @uniPlatform {
123
123
  * "app": {
@@ -136,7 +136,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
136
136
  * "weixin": {
137
137
  * "hostVer": "√",
138
138
  * "uniVer": "√",
139
- * "unixVer": "x"
139
+ * "unixVer": "4.41"
140
140
  * },
141
141
  * "alipay": {
142
142
  * "hostVer": "√",
@@ -187,8 +187,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
187
187
  * 应用启动,或从后台进入前台显示时触发
188
188
  *
189
189
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
190
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
191
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
190
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
191
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
192
192
  * @uniPlatform {
193
193
  * "app": {
194
194
  * "android": {
@@ -206,7 +206,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
206
206
  * "weixin": {
207
207
  * "hostVer": "√",
208
208
  * "uniVer": "√",
209
- * "unixVer": "x"
209
+ * "unixVer": "4.41"
210
210
  * },
211
211
  * "alipay": {
212
212
  * "hostVer": "√",
@@ -257,8 +257,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
257
257
  * 应用从前台进入后台时触发
258
258
  *
259
259
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
260
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
261
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
260
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
261
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
262
262
  * @uniPlatform {
263
263
  * "app": {
264
264
  * "android": {
@@ -276,7 +276,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
276
276
  * "weixin": {
277
277
  * "hostVer": "√",
278
278
  * "uniVer": "√",
279
- * "unixVer": "x"
279
+ * "unixVer": "4.41"
280
280
  * },
281
281
  * "alipay": {
282
282
  * "hostVer": "√",
@@ -328,8 +328,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
328
328
  * @param error 错误信息
329
329
  *
330
330
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
331
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
332
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
331
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
332
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
333
333
  * @uniPlatform {
334
334
  * "app": {
335
335
  * "android": {
@@ -347,7 +347,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
347
347
  * "weixin": {
348
348
  * "hostVer": "√",
349
349
  * "uniVer": "√",
350
- * "unixVer": "x"
350
+ * "unixVer": "4.41"
351
351
  * },
352
352
  * "alipay": {
353
353
  * "hostVer": "√",
@@ -402,7 +402,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
402
402
  * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
403
403
  *
404
404
  * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
405
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
405
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
406
406
  * @internal
407
407
  * @uniPlatform {
408
408
  * "app": {
@@ -421,7 +421,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
421
421
  * "weixin": {
422
422
  * "hostVer": "√",
423
423
  * "uniVer": "√",
424
- * "unixVer": "x"
424
+ * "unixVer": "4.41"
425
425
  * },
426
426
  * "alipay": {
427
427
  * "hostVer": "√",
@@ -472,7 +472,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
472
472
  * nvue 页面使用 `uni.postMessage` 发送消息时触发
473
473
  *
474
474
  * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
475
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
475
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
476
476
  * @internal
477
477
  * @uniPlatform {
478
478
  * "app": {
@@ -549,7 +549,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
549
549
  * 监听应用退出。app-uvue-android 3.9+
550
550
  *
551
551
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
552
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
552
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
553
553
  * @uniPlatform {
554
554
  * "app": {
555
555
  * "android": {
@@ -625,8 +625,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
625
625
  * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
626
626
  *
627
627
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/exit.html
628
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/exit.html
629
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
628
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/exit.html
629
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
630
630
  * @uniPlatform {
631
631
  * "app": {
632
632
  * "android": {
@@ -771,8 +771,8 @@ declare global {
771
771
  /**
772
772
  * 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
773
773
  *
774
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
775
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
774
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
775
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
776
776
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
777
777
  * @uniPlatform {
778
778
  * "app": {
@@ -809,8 +809,8 @@ declare global {
809
809
  /**
810
810
  * 首次启动时的appLink。返回值与App.onLaunch的回调参数一致
811
811
  *
812
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
813
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
812
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
813
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
814
814
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
815
815
  * @uniPlatform {
816
816
  * "app": {
@@ -939,7 +939,7 @@ declare global {
939
939
  /**
940
940
  * 本次启动时的Scheme。返回值与App.onShow的回调参数一致
941
941
  *
942
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
942
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
943
943
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
944
944
  * @uniPlatform {
945
945
  * "app": {
@@ -976,7 +976,7 @@ declare global {
976
976
  /**
977
977
  * 本次启动时的appLink。返回值与App.onShow的回调参数一致
978
978
  *
979
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
979
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
980
980
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
981
981
  * @uniPlatform {
982
982
  * "app": {
@@ -1031,7 +1031,7 @@ declare global {
1031
1031
  /**
1032
1032
  * App vue 实例对象
1033
1033
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1034
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1034
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1035
1035
  * @uniPlatform {
1036
1036
  * "app": {
1037
1037
  * "android": {
@@ -1068,7 +1068,7 @@ declare global {
1068
1068
  * App vue 实例对象
1069
1069
  * @deprecated 已废弃,仅为了向下兼容保留
1070
1070
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1071
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1071
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1072
1072
  * @uniPlatform {
1073
1073
  * "app": {
1074
1074
  * "android": {
@@ -1104,7 +1104,7 @@ declare global {
1104
1104
  /**
1105
1105
  * 全局对象
1106
1106
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
1107
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
1107
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
1108
1108
  * @uniPlatform {
1109
1109
  * "app": {
1110
1110
  * "android": {
@@ -1140,7 +1140,7 @@ declare global {
1140
1140
  /**
1141
1141
  * 获取 Android 应用 Application 上下文
1142
1142
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
1143
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
1143
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
1144
1144
  * @uniPlatform {
1145
1145
  * "app": {
1146
1146
  * "android": {
@@ -38,7 +38,14 @@ export class CSSStyleDeclaration {
38
38
  * "uniVer": "x",
39
39
  * "unixVer": "4.11"
40
40
  * }
41
- * }
41
+ * },
42
+ * "mp": {
43
+ * "weixin": {
44
+ * "osVer": "x",
45
+ * "uniVer": "x",
46
+ * "unixVer": "4.41"
47
+ * }
48
+ * },
42
49
  * "web": {
43
50
  * "uniVer": "x",
44
51
  * "unixVer": "4.0"
@@ -62,7 +69,14 @@ export class CSSStyleDeclaration {
62
69
  * "uniVer": "x",
63
70
  * "unixVer": "4.11"
64
71
  * }
65
- * }
72
+ * },
73
+ * "mp": {
74
+ * "weixin": {
75
+ * "osVer": "x",
76
+ * "uniVer": "x",
77
+ * "unixVer": "4.41"
78
+ * }
79
+ * },
66
80
  * "web": {
67
81
  * "uniVer": "x",
68
82
  * "unixVer": "4.0"