@dcloudio/uni-app-x 0.7.37 → 0.7.39

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 (126) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +48 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/IUniElement.d.ts +130 -35
  7. package/types/native/UniElement.d.ts +2 -1
  8. package/types/native/UniTextElement.d.ts +1 -0
  9. package/types/native/global.d.ts +16 -0
  10. package/types/page.d.ts +47 -5
  11. package/types/uni/env/index.d.ts +87 -73
  12. package/types/uni/global.d.ts +1 -0
  13. package/types/uni/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  15. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  16. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  17. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
  23. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  24. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
  25. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
  26. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  30. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  34. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
  37. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  39. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
  40. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
  41. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
  42. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
  46. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  47. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
  48. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  54. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
  57. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  59. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  60. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
  64. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
  65. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
  66. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  72. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  73. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
  74. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
  75. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
  78. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  81. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
  83. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
  84. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  85. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  86. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  87. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
  88. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
  89. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  90. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
  92. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  93. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  94. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
  98. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
  99. package/types/uni/uts-plugin-extend/README.md +3 -0
  100. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  105. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  106. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  107. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  108. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  109. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  110. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  112. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  113. package/types/uni-cloud/interface.d.ts +91 -0
  114. package/uts-plugin.d.ts +3 -1
  115. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  116. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  117. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  118. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  119. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  120. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  121. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  122. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  124. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  125. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  126. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.37",
3
+ "version": "0.7.39",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -111,6 +111,7 @@ export interface UniPage {
111
111
  vm: ComponentPublicInstance | null
112
112
  /**
113
113
  * UniPage vue 实例对象
114
+ * @deprecated 已废弃,仅为了向下兼容保留
114
115
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
115
116
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
116
117
  * @uniPlatform {
@@ -146,8 +147,7 @@ export interface UniPage {
146
147
  */
147
148
  $vm: ComponentPublicInstance | null
148
149
  /**
149
- * 获取当前页面样式 \
150
- * 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
150
+ * 获取当前页面样式。详细属性配置请参考PageStyle
151
151
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle
152
152
  * @uniPlatform {
153
153
  * "app": {
@@ -183,8 +183,7 @@ export interface UniPage {
183
183
  */
184
184
  getPageStyle(): UTSJSONObject
185
185
  /**
186
- * 获取当前页面样式 \
187
- * 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
186
+ * 获取当前页面样式。详细属性配置请参考PageStyle
188
187
  * @deprecated 已废弃,仅为了向下兼容保留
189
188
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle-2
190
189
  * @uniPlatform {
@@ -220,8 +219,7 @@ export interface UniPage {
220
219
  */
221
220
  $getPageStyle(): UTSJSONObject
222
221
  /**
223
- * 设置当前页面样式 \
224
- * 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
222
+ * 设置当前页面样式。详细属性配置请参考PageStyle
225
223
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle
226
224
  * @uniPlatform {
227
225
  * "app": {
@@ -257,8 +255,7 @@ export interface UniPage {
257
255
  */
258
256
  setPageStyle(style: UTSJSONObject): void
259
257
  /**
260
- * 设置当前页面样式 \
261
- * 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
258
+ * 设置当前页面样式。详细属性配置请参考PageStyle
262
259
  * @deprecated 已废弃,仅为了向下兼容保留
263
260
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle-2
264
261
  * @uniPlatform {
@@ -294,7 +291,7 @@ export interface UniPage {
294
291
  */
295
292
  $setPageStyle(style: UTSJSONObject): void
296
293
  /**
297
- * 获取所属父页面
294
+ * 用于 dialogPage 获取所属父页面
298
295
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
299
296
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
300
297
  * @uniPlatform {
@@ -443,6 +440,44 @@ export interface UniPage {
443
440
  * }
444
441
  */
445
442
  getAndroidView(): View | null
443
+ /**
444
+ * 返回 ios 平台页面根 view
445
+ *
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
448
+ * @uniPlatform {
449
+ * "app": {
450
+ * "android": {
451
+ * "osVer": "x",
452
+ * "uniVer": "x",
453
+ * "unixVer": "x"
454
+ * },
455
+ * "ios": {
456
+ * "osVer": "12",
457
+ * "uniVer": "x",
458
+ * "unixVer": "x",
459
+ * "unixUtsPlugin": "4.33"
460
+ * },
461
+ * "harmony": {
462
+ * "osVer": "x",
463
+ * "uniVer": "x",
464
+ * "unixVer": "x"
465
+ * }
466
+ * },
467
+ * "mp": {
468
+ * "weixin": {
469
+ * "hostVer": "√",
470
+ * "uniVer": "x",
471
+ * "unixVer": "x"
472
+ * },
473
+ * },
474
+ * "web": {
475
+ * "uniVer": "x",
476
+ * "unixVer": "x"
477
+ * }
478
+ * }
479
+ */
480
+ getIOSView(): UIView | null
446
481
  /**
447
482
  * 返回页面 HTML Element 对象
448
483
  *
@@ -495,4 +530,8 @@ export interface UniDialogPage extends UniPage {
495
530
  * @internal
496
531
  */
497
532
  $disableEscBack: boolean
533
+ /**
534
+ * @internal
535
+ */
536
+ $triggerParentHide: boolean
498
537
  }
package/types/app.d.ts CHANGED
@@ -324,6 +324,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
324
324
  /**
325
325
  * 错误监听函数
326
326
  * 应用发生脚本错误或 API 调用报错时触发
327
+ * 4.33+ App 端支持监听异步逻辑中的错误
327
328
  * @param error 错误信息
328
329
  *
329
330
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
@@ -390,7 +391,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
390
391
  * }
391
392
  *}
392
393
  */
393
- onError?(error: string): void;
394
+ onError?(error: any): void;
394
395
  /**
395
396
  * 页面不存在监听函数
396
397
  *
@@ -722,7 +723,7 @@ type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create'
722
723
  declare global {
723
724
  export interface AppCreateVueAppComponentDefault {}
724
725
  /**
725
- * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
726
+ * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法, [详见](#appmethods)。
726
727
  * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
727
728
  * @uniPlatform {
728
729
  * "app": {
@@ -734,7 +735,8 @@ declare global {
734
735
  * "ios": {
735
736
  * "osVer": "12.0",
736
737
  * "uniVer": "√",
737
- * "unixVer": "√"
738
+ * "unixVer": "√",
739
+ * "unixUtsPlugin": "4.31"
738
740
  * },
739
741
  * "harmony": {
740
742
  * "osVer": "3.0",
@@ -1061,9 +1063,10 @@ declare global {
1061
1063
  * }
1062
1064
  * }
1063
1065
  */
1064
- $vm: ComponentPublicInstance,
1066
+ vm: ComponentPublicInstance,
1065
1067
  /**
1066
1068
  * App vue 实例对象
1069
+ * @deprecated 已废弃,仅为了向下兼容保留
1067
1070
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1068
1071
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1069
1072
  * @uniPlatform {
@@ -1097,7 +1100,7 @@ declare global {
1097
1100
  * }
1098
1101
  * }
1099
1102
  */
1100
- vm: ComponentPublicInstance,
1103
+ $vm: ComponentPublicInstance,
1101
1104
  /**
1102
1105
  * 全局对象
1103
1106
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
@@ -5,3 +5,4 @@
5
5
  export interface AsyncApiResult {
6
6
  errMsg: string
7
7
  }
8
+ export interface AsyncApiSuccessResult extends AsyncApiResult {}
@@ -1489,7 +1489,7 @@ export interface CanvasPattern {
1489
1489
  */
1490
1490
  export interface CanvasGradient {
1491
1491
  /**
1492
- * 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染
1492
+ * 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染, 最大支持5个分段
1493
1493
  * @param {number} stop 表示渐变中开始与结束之间的位置,范围 0-1
1494
1494
  * @param {string} color 渐变点的颜色
1495
1495
  * @uniPlatform {
@@ -6,6 +6,15 @@ import { DOMRect } from "./DOMRect"
6
6
  import { UniCallbackWrapper } from "./UniCallbackWrapper"
7
7
  import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
8
8
 
9
+ export type GetBoundingClientRectAsyncSuccessCallback = (rect: DOMRect) => void
10
+ export type GetBoundingClientRectAsyncFailCallback = () => void
11
+ export type GetBoundingClientRectAsyncCompleteCallback = (rect: any | null) => void
12
+ export type GetBoundingClientRectAsyncOptions = {
13
+ success?: GetBoundingClientRectAsyncSuccessCallback | null
14
+ fail?: GetBoundingClientRectAsyncFailCallback | null
15
+ complete?: GetBoundingClientRectAsyncCompleteCallback | null
16
+ }
17
+
9
18
  /**
10
19
  * UVUE DOM 元素对象,描述了 UVUE DOM 元素所普通具有的属性和方法。
11
20
  * @package io.dcloud.uniapp.runtime
@@ -939,6 +948,31 @@ export interface UniElement {
939
948
  */
940
949
  getBoundingClientRect(): DOMRect
941
950
 
951
+
952
+ /**
953
+ * 获取元素的大小及其相对于窗口的位置信息 异步。
954
+ * @uniPlatform {
955
+ * "app": {
956
+ * "android": {
957
+ * "osVer": "5.0",
958
+ * "uniVer": "x",
959
+ * "unixVer": "4.41"
960
+ * },
961
+ * "ios": {
962
+ * "osVer": "12.0",
963
+ * "uniVer": "x",
964
+ * "unixVer": "x"
965
+ * "unixUtsPlugin": "x"
966
+ * }
967
+ * }
968
+ * "web": {
969
+ * "uniVer": "x",
970
+ * "unixVer": "x"
971
+ * }
972
+ * }
973
+ */
974
+ getBoundingClientRectAsync(options?: GetBoundingClientRectAsyncOptions | null): Promise<DOMRect> | null
975
+
942
976
  /**
943
977
  * 获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。
944
978
  * @uniPlatform {
@@ -1403,7 +1437,7 @@ export type Element = UniElement
1403
1437
  * }
1404
1438
  * }
1405
1439
  */
1406
- export interface UniViewElement extends UniElement {}
1440
+ export interface UniViewElement extends UniElement { }
1407
1441
 
1408
1442
  /**
1409
1443
  * scroll-view元素对象
@@ -1428,7 +1462,7 @@ export interface UniViewElement extends UniElement {}
1428
1462
  * }
1429
1463
  * }
1430
1464
  */
1431
- export interface UniScrollViewElement extends UniElement {}
1465
+ export interface UniScrollViewElement extends UniElement { }
1432
1466
 
1433
1467
  /**
1434
1468
  * list-view元素对象
@@ -1453,7 +1487,7 @@ export interface UniScrollViewElement extends UniElement {}
1453
1487
  * }
1454
1488
  * }
1455
1489
  */
1456
- export interface UniListViewElement extends UniScrollViewElement {}
1490
+ export interface UniListViewElement extends UniScrollViewElement { }
1457
1491
 
1458
1492
  /**
1459
1493
  * list-item元素对象
@@ -1478,7 +1512,7 @@ export interface UniListViewElement extends UniScrollViewElement {}
1478
1512
  * }
1479
1513
  * }
1480
1514
  */
1481
- export interface UniListItemElement extends UniElement {}
1515
+ export interface UniListItemElement extends UniElement { }
1482
1516
 
1483
1517
  /**
1484
1518
  * swiper元素对象
@@ -1503,7 +1537,7 @@ export interface UniListItemElement extends UniElement {}
1503
1537
  * }
1504
1538
  * }
1505
1539
  */
1506
- export interface UniSwiperElement extends UniElement {}
1540
+ export interface UniSwiperElement extends UniElement { }
1507
1541
 
1508
1542
  /**
1509
1543
  * swiper-item元素对象
@@ -1528,7 +1562,7 @@ export interface UniSwiperElement extends UniElement {}
1528
1562
  * }
1529
1563
  * }
1530
1564
  */
1531
- export interface UniSwiperItemElement extends UniElement {}
1565
+ export interface UniSwiperItemElement extends UniElement { }
1532
1566
 
1533
1567
  /**
1534
1568
  * image元素对象
@@ -1638,7 +1672,7 @@ export interface Image extends UniElement {
1638
1672
  * }
1639
1673
  * }
1640
1674
  */
1641
- src: string
1675
+ src: string.ImageURIString
1642
1676
  /**
1643
1677
  * 图片加载完成事件
1644
1678
  * @uniPlatform {
@@ -1928,7 +1962,7 @@ export interface UniTextareaElement extends UniElement {
1928
1962
  * }
1929
1963
  * }
1930
1964
  */
1931
- export interface UniRichTextElement extends UniElement {}
1965
+ export interface UniRichTextElement extends UniElement { }
1932
1966
 
1933
1967
  /**
1934
1968
  * sticky-header元素对象
@@ -1953,7 +1987,7 @@ export interface UniRichTextElement extends UniElement {}
1953
1987
  * }
1954
1988
  * }
1955
1989
  */
1956
- export interface UniStickyHeaderElement extends UniElement {}
1990
+ export interface UniStickyHeaderElement extends UniElement { }
1957
1991
 
1958
1992
  /**
1959
1993
  * sticky-section元素对象
@@ -1978,7 +2012,7 @@ export interface UniStickyHeaderElement extends UniElement {}
1978
2012
  * }
1979
2013
  * }
1980
2014
  */
1981
- export interface UniStickySectionElement extends UniElement {}
2015
+ export interface UniStickySectionElement extends UniElement { }
1982
2016
 
1983
2017
  /**
1984
2018
  * tabs元素对象
@@ -2665,7 +2699,7 @@ export type IComment = UniCommentElement
2665
2699
  * }
2666
2700
  * }
2667
2701
  */
2668
- export interface UniButtonElement extends UniElement {}
2702
+ export interface UniButtonElement extends UniElement { }
2669
2703
 
2670
2704
  /**
2671
2705
  * 嵌套 scroll-view 场景中属于外层 scroll-view 的节点
@@ -2690,7 +2724,7 @@ export interface UniButtonElement extends UniElement {}
2690
2724
  * }
2691
2725
  * }
2692
2726
  */
2693
- export interface UniNestedScrollHeaderElement extends UniElement {}
2727
+ export interface UniNestedScrollHeaderElement extends UniElement { }
2694
2728
 
2695
2729
  /**
2696
2730
  * 嵌套 scroll-view 场景中属于里层 scroll-view 的节点
@@ -2714,7 +2748,7 @@ export interface UniNestedScrollHeaderElement extends UniElement {}
2714
2748
  * }
2715
2749
  * }
2716
2750
  */
2717
- export interface UniNestedScrollBodyElement extends UniElement {}
2751
+ export interface UniNestedScrollBodyElement extends UniElement { }
2718
2752
 
2719
2753
  /**
2720
2754
  * canvas元素对象
@@ -2836,6 +2870,8 @@ export interface UniCanvasElement extends UniElement {
2836
2870
  toBlob(callback: BlobCallback, type: string, quality: number): void
2837
2871
  /**
2838
2872
  * 返回一个包含图片展示的 data URI (iOS平台不支持webp格式)
2873
+ * 如果画布的高度或宽度是 0,那么会返回字符串“data:,”。
2874
+ * 如果传入的类型非“image/png”,但是返回的值以“data:image/png”开头,那么该传入的类型是不支持的。
2839
2875
  * @uniPlatform {
2840
2876
  * "app": {
2841
2877
  * "android": {
@@ -2859,92 +2895,151 @@ export interface UniCanvasElement extends UniElement {
2859
2895
  toDataURL(type?: string | null, encoderOptions?: any | null): string
2860
2896
  }
2861
2897
 
2898
+ /**
2899
+ * waterflow元素对象
2900
+ * @package io.dcloud.uniapp.runtime
2901
+ * @uniPlatform {
2902
+ * "app": {
2903
+ * "android": {
2904
+ * "osVer": "5.0",
2905
+ * "uniVer": "x",
2906
+ * "unixVer": "4.41"
2907
+ * },
2908
+ * "ios": {
2909
+ * "osVer": "12.0",
2910
+ * "uniVer": "x",
2911
+ * "unixVer": "4.41"
2912
+ * "unixUtsPlugin": "4.41"
2913
+ * }
2914
+ * },
2915
+ * "web": {
2916
+ * "uniVer": "x",
2917
+ * "unixVer": "x"
2918
+ * }
2919
+ * }
2920
+ */
2921
+ export interface UniWaterFlowElement extends UniListViewElement{}
2922
+
2923
+ /**
2924
+ * flow-item元素对象
2925
+ * @package io.dcloud.uniapp.runtime
2926
+ * @uniPlatform {
2927
+ * "app": {
2928
+ * "android": {
2929
+ * "osVer": "5.0",
2930
+ * "uniVer": "x",
2931
+ * "unixVer": "4.41"
2932
+ * },
2933
+ * "ios": {
2934
+ * "osVer": "12.0",
2935
+ * "uniVer": "x",
2936
+ * "unixVer": "4.41"
2937
+ * "unixUtsPlugin": "4.41"
2938
+ * }
2939
+ * },
2940
+ * "web": {
2941
+ * "uniVer": "x",
2942
+ * "unixVer": "x"
2943
+ * }
2944
+ * }
2945
+ */
2946
+ export interface UniFlowItemElement extends UniListItemElement{}
2947
+
2948
+
2862
2949
  // 允许instanceof检查
2863
2950
  export let UniElement: {
2864
2951
  prototype: UniElement
2865
- new (): UniElement
2952
+ new(): UniElement
2866
2953
  }
2867
2954
  export let UniButtonElement: {
2868
2955
  prototype: UniButtonElement
2869
- new (): UniButtonElement
2956
+ new(): UniButtonElement
2870
2957
  }
2871
2958
  export let UniCanvasElement: {
2872
2959
  prototype: UniCanvasElement
2873
- new (): UniCanvasElement
2960
+ new(): UniCanvasElement
2874
2961
  }
2875
2962
  export let UniCommentElement: {
2876
2963
  prototype: UniCommentElement
2877
- new (): UniCommentElement
2964
+ new(): UniCommentElement
2878
2965
  }
2879
2966
  export let UniImageElement: {
2880
2967
  prototype: UniImageElement
2881
- new (): UniImageElement
2968
+ new(): UniImageElement
2882
2969
  }
2883
2970
  export let Image: {
2884
2971
  prototype: Image
2885
- new (width?: number, height?: number): Image
2972
+ new(width?: number, height?: number): Image
2886
2973
  }
2887
2974
  export let UniInputElement: {
2888
2975
  prototype: UniInputElement
2889
- new (): UniInputElement
2976
+ new(): UniInputElement
2890
2977
  }
2891
2978
  export let UniListItemElement: {
2892
2979
  prototype: UniListItemElement
2893
- new (): UniListItemElement
2980
+ new(): UniListItemElement
2894
2981
  }
2895
2982
  export let UniListViewElement: {
2896
2983
  prototype: UniListViewElement
2897
- new (): UniListViewElement
2984
+ new(): UniListViewElement
2898
2985
  }
2899
2986
  export let UniNestedScrollBodyElement: {
2900
2987
  prototype: UniNestedScrollBodyElement
2901
- new (): UniNestedScrollBodyElement
2988
+ new(): UniNestedScrollBodyElement
2902
2989
  }
2903
2990
  export let UniNestedScrollHeaderElement: {
2904
2991
  prototype: UniNestedScrollHeaderElement
2905
- new (): UniNestedScrollHeaderElement
2992
+ new(): UniNestedScrollHeaderElement
2906
2993
  }
2907
2994
  export let UniRichTextElement: {
2908
2995
  prototype: UniRichTextElement
2909
- new (): UniRichTextElement
2996
+ new(): UniRichTextElement
2910
2997
  }
2911
2998
  export let UniScrollViewElement: {
2912
2999
  prototype: UniScrollViewElement
2913
- new (): UniScrollViewElement
3000
+ new(): UniScrollViewElement
2914
3001
  }
2915
3002
  export let UniStickyHeaderElement: {
2916
3003
  prototype: UniStickyHeaderElement
2917
- new (): UniStickyHeaderElement
3004
+ new(): UniStickyHeaderElement
2918
3005
  }
2919
3006
  export let UniStickySectionElement: {
2920
3007
  prototype: UniStickySectionElement
2921
- new (): UniStickySectionElement
3008
+ new(): UniStickySectionElement
2922
3009
  }
2923
3010
  export let UniSwiperElement: {
2924
3011
  prototype: UniSwiperElement
2925
- new (): UniSwiperElement
3012
+ new(): UniSwiperElement
2926
3013
  }
2927
3014
  export let UniSwiperItemElement: {
2928
3015
  prototype: UniSwiperItemElement
2929
- new (): UniSwiperItemElement
3016
+ new(): UniSwiperItemElement
2930
3017
  }
2931
3018
  export let UniTabsElement: {
2932
3019
  prototype: UniTabsElement
2933
- new (): UniTabsElement
3020
+ new(): UniTabsElement
2934
3021
  }
2935
3022
  export let UniTextElement: {
2936
3023
  prototype: UniTextElement
2937
- new (): UniTextElement
3024
+ new(): UniTextElement
2938
3025
  }
2939
3026
  export let UniTextareaElement: {
2940
3027
  prototype: UniTextareaElement
2941
- new (): UniTextareaElement
3028
+ new(): UniTextareaElement
2942
3029
  }
2943
3030
  export let UniViewElement: {
2944
3031
  prototype: UniViewElement
2945
- new (): UniViewElement
3032
+ new(): UniViewElement
2946
3033
  }
2947
3034
  export let UniWebViewElement: {
2948
3035
  prototype: UniWebViewElement
2949
- new (): UniWebViewElement
3036
+ new(): UniWebViewElement
3037
+ }
3038
+ export let UniWaterFlowElement: {
3039
+ prototype: UniWaterFlowElement
3040
+ new (): UniWaterFlowElement
3041
+ }
3042
+ export let UniFlowItemElement: {
3043
+ prototype: UniFlowItemElement
3044
+ new (): UniFlowItemElement
2950
3045
  }
@@ -1,7 +1,7 @@
1
1
  import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
2
2
  import { DOMRect } from "./DOMRect";
3
3
  import { DrawableContext } from "./DrawableContext";
4
- import { UniElement, UniViewElement } from "./IUniElement";
4
+ import { UniElement, UniViewElement, ClientRectObject} from "./IUniElement";
5
5
  import { UniEvent } from './UniEvent'
6
6
  import { TakeSnapshotOptions } from "./SnapshotOptions";
7
7
  import { UniCallbackWrapper } from "./UniCallbackWrapper";
@@ -50,6 +50,7 @@ export class UniElementImpl implements UniElement {
50
50
  removeAttribute(key: string): void;
51
51
  updateStyle(map: Map<string, any>): void;
52
52
  getBoundingClientRect(): DOMRect;
53
+ getBoundingClientRectAsync(clientRectObject?: ClientRectObject | null): Promise<DOMRect>
53
54
  getDrawableContext(): DrawableContext;
54
55
  addEventListener<T extends UniEvent, R>(type: string, callback: (event: T) => R): UniCallbackWrapper;
55
56
  removeEventListener(type: string, callbackWrapper: UniCallbackWrapper): void;
@@ -28,6 +28,7 @@ export class UniTextElementImpl extends UniElementImpl implements UniTextElement
28
28
  * }
29
29
  * }
30
30
  * }
31
+ * @internal
31
32
  */
32
33
  getTextExtra(): any | null
33
34
  constructor(data: INodeData, pageNode?: PageNode)
@@ -194,6 +194,12 @@ import {
194
194
  UniTextareaElement as UniTextareaElementOrigin,
195
195
  UniViewElement as UniViewElementOrigin,
196
196
  UniWebViewElement as UniWebViewElementOrigin,
197
+ UniWaterFlowElement as UniWaterFlowElementOrigin,
198
+ UniFlowItemElement as UniFlowItemElementOrigin,
199
+ GetBoundingClientRectAsyncSuccessCallback as GetBoundingClientRectAsyncSuccessCallbackOrigin,
200
+ GetBoundingClientRectAsyncFailCallback as GetBoundingClientRectAsyncFailCallbackOrigin,
201
+ GetBoundingClientRectAsyncCompleteCallback as GetBoundingClientRectAsyncCompleteCallbackOrigin,
202
+ GetBoundingClientRectAsyncOptions as GetBoundingClientRectAsyncOptionsOrigin,
197
203
  INode as INodeOrigin,
198
204
  Element as ElementOrigin,
199
205
  ITabsNode as ITabsNodeOrigin,
@@ -219,6 +225,7 @@ import {
219
225
  CanvasRenderingContext2D as CanvasRenderingContext2DOrigin,
220
226
  CSSStyleDeclaration as CSSStyleDeclarationOrigin,
221
227
  AsyncApiResult as AsyncApiResultOrigin,
228
+ AsyncApiSuccessResult as AsyncApiSuccessResultOrigin,
222
229
  } from './index'
223
230
 
224
231
  declare global {
@@ -564,6 +571,12 @@ declare global {
564
571
  const UniTextareaElement: typeof UniTextareaElementOrigin
565
572
  const UniViewElement: typeof UniViewElementOrigin
566
573
  const UniWebViewElement: typeof UniWebViewElementOrigin
574
+ const UniWaterFlowElement: typeof UniWaterFlowElementOrigin
575
+ const UniFlowItemElement: typeof UniFlowItemElementOrigin
576
+ type GetBoundingClientRectAsyncSuccessCallback = GetBoundingClientRectAsyncSuccessCallbackOrigin
577
+ type GetBoundingClientRectAsyncFailCallback = GetBoundingClientRectAsyncFailCallbackOrigin
578
+ type GetBoundingClientRectAsyncCompleteCallback = GetBoundingClientRectAsyncCompleteCallbackOrigin
579
+ type GetBoundingClientRectAsyncOptions = GetBoundingClientRectAsyncOptionsOrigin
567
580
  type UniElement = UniElementOrigin
568
581
  type INode = INodeOrigin
569
582
  type Element = ElementOrigin
@@ -592,6 +605,8 @@ declare global {
592
605
  type UniNestedScrollHeaderElement = UniNestedScrollHeaderElementOrigin
593
606
  type UniNestedScrollBodyElement = UniNestedScrollBodyElementOrigin
594
607
  type UniCanvasElement = UniCanvasElementOrigin
608
+ type UniWaterFlowElement = UniWaterFlowElementOrigin
609
+ type UniFlowItemElement = UniFlowItemElementOrigin
595
610
  type INavigationBar = INavigationBarOrigin
596
611
  const DrawableContext: typeof DrawableContextOrigin
597
612
  type DrawableContext = DrawableContextOrigin
@@ -614,4 +629,5 @@ declare global {
614
629
  const CSSStyleDeclaration: typeof CSSStyleDeclarationOrigin
615
630
  type CSSStyleDeclaration = CSSStyleDeclarationOrigin
616
631
  type AsyncApiResult = AsyncApiResultOrigin
632
+ type AsyncApiSuccessResult = AsyncApiSuccessResultOrigin
617
633
  }
package/types/page.d.ts CHANGED
@@ -1555,7 +1555,7 @@ interface Page {
1555
1555
  $nativePage: IPage | null;
1556
1556
  /**
1557
1557
  * 获取当前页面样式 \
1558
- * 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1558
+ * 包含 pages.json 页面下的 style 节点和根节点 globalStyle 支持的属性,详情见下面的PageStyle
1559
1559
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getPageStyle
1560
1560
  * @uniPlatform {
1561
1561
  * "app": {
@@ -1579,7 +1579,7 @@ interface Page {
1579
1579
  $getPageStyle(): UTSJSONObject;
1580
1580
  /**
1581
1581
  * 设置当前页面样式 \
1582
- * 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1582
+ * 包含 pages.json 页面下的 style 节点和根节点 globalStyle 支持的属性,详情见下面的PageStyle
1583
1583
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
1584
1584
  * @uniPlatform {
1585
1585
  * "app": {
@@ -1621,13 +1621,55 @@ declare global {
1621
1621
  * "android": {
1622
1622
  * "osVer": "5.0",
1623
1623
  * "uniVer": "√",
1624
- * "unixVer": "3.9",
1625
- * "unixUtsPlugin": "4.31"
1624
+ * "unixVer": "3.9"
1626
1625
  * },
1627
1626
  * "ios": {
1628
1627
  * "osVer": "12.0",
1629
1628
  * "uniVer": "√",
1630
- * "unixVer": "4.11"
1629
+ * "unixVer": "4.11",
1630
+ * "unixUtsPlugin": "4.31"
1631
+ * }
1632
+ * },
1633
+ * "mp": {
1634
+ * "weixin": {
1635
+ * "hostVer": "x",
1636
+ * "uniVer": "x",
1637
+ * "unixVer": "4.41"
1638
+ * },
1639
+ * "alipay": {
1640
+ * "hostVer": "x",
1641
+ * "uniVer": "x",
1642
+ * "unixVer": "x"
1643
+ * },
1644
+ * "baidu": {
1645
+ * "hostVer": "x",
1646
+ * "uniVer": "x",
1647
+ * "unixVer": "x"
1648
+ * },
1649
+ * "toutiao": {
1650
+ * "hostVer": "x",
1651
+ * "uniVer": "x",
1652
+ * "unixVer": "x"
1653
+ * },
1654
+ * "lark": {
1655
+ * "hostVer": "x",
1656
+ * "uniVer": "x",
1657
+ * "unixVer": "x"
1658
+ * },
1659
+ * "qq": {
1660
+ * "hostVer": "x",
1661
+ * "uniVer": "x",
1662
+ * "unixVer": "x"
1663
+ * },
1664
+ * "kuaishou": {
1665
+ * "hostVer": "x",
1666
+ * "uniVer": "x",
1667
+ * "unixVer": "x"
1668
+ * },
1669
+ * "jd": {
1670
+ * "hostVer": "x",
1671
+ * "uniVer": "x",
1672
+ * "unixVer": "x"
1631
1673
  * }
1632
1674
  * },
1633
1675
  * "web": {