@dcloudio/uni-app-x 0.7.36 → 0.7.38

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 (105) hide show
  1. package/package.json +2 -1
  2. package/types/UniPage.d.ts +44 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/IUniElement.d.ts +34 -0
  6. package/types/native/UniElement.d.ts +2 -1
  7. package/types/native/UniTextElement.d.ts +1 -0
  8. package/types/native/global.d.ts +10 -0
  9. package/types/page.d.ts +5 -5
  10. package/types/uni/env/index.d.ts +15 -1
  11. package/types/uni/global.d.ts +1 -0
  12. package/types/uni/index.d.ts +1 -0
  13. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  15. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +24 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +11 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +217 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  21. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  22. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  23. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +130 -4
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +647 -7
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -0
  28. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  29. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +153 -0
  30. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  33. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1995 -1726
  34. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  35. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  36. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  37. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1123 -1044
  38. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +327 -296
  39. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  40. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  41. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2687 -13
  42. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +42 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +1178 -2
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +882 -0
  46. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +152 -12
  47. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  48. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +760 -4
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +126 -0
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  53. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +13 -13
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3119 -1
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +300 -6
  56. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  57. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  58. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -8
  59. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
  60. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1686 -266
  63. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +15 -15
  64. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3618 -1675
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +11 -11
  66. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  67. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +9 -9
  68. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +252 -0
  69. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  72. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +532 -245
  73. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1260 -0
  74. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  75. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  76. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +42 -0
  77. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  78. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  81. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +420 -0
  82. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +50 -8
  83. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +267 -99
  84. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +978 -12
  85. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1 -1
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +2 -0
  87. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +1 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +37 -5
  89. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +379 -1
  90. package/types/uni/uts-plugin-extend/README.md +3 -0
  91. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  92. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +73 -73
  94. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  95. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  96. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  98. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  99. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  100. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  101. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  103. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +2 -2
  104. package/types/uni-cloud/interface.d.ts +91 -0
  105. package/uts-plugin.d.ts +3 -1
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.36",
3
+ "version": "0.7.38",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
+ "main": "index.d.ts",
6
7
  "author": "DCloud",
7
8
  "license": "Apache-2.0",
8
9
  "type": "module",
@@ -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
  *
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 {}
@@ -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 ClientRectSuccessCallback = (rect: DOMRect) => void
10
+ export type ClientRectFailCallback = () => void
11
+ export type ClientRectCompleteCallback = () => void
12
+ export type ClientRectObject = {
13
+ success?: ClientRectSuccessCallback | null
14
+ fail?: ClientRectFailCallback | null
15
+ complete?: ClientRectCompleteCallback | 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.35"
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(clientRectObject?: ClientRectObject | null): Promise<DOMRect>
975
+
942
976
  /**
943
977
  * 获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。
944
978
  * @uniPlatform {
@@ -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,10 @@ import {
194
194
  UniTextareaElement as UniTextareaElementOrigin,
195
195
  UniViewElement as UniViewElementOrigin,
196
196
  UniWebViewElement as UniWebViewElementOrigin,
197
+ ClientRectSuccessCallback as ClientRectSuccessCallbackOrigin,
198
+ ClientRectFailCallback as ClientRectFailCallbackOrigin,
199
+ ClientRectCompleteCallback as ClientRectCompleteCallbackOrigin,
200
+ ClientRectObject as ClientRectObjectOrigin,
197
201
  INode as INodeOrigin,
198
202
  Element as ElementOrigin,
199
203
  ITabsNode as ITabsNodeOrigin,
@@ -219,6 +223,7 @@ import {
219
223
  CanvasRenderingContext2D as CanvasRenderingContext2DOrigin,
220
224
  CSSStyleDeclaration as CSSStyleDeclarationOrigin,
221
225
  AsyncApiResult as AsyncApiResultOrigin,
226
+ AsyncApiSuccessResult as AsyncApiSuccessResultOrigin,
222
227
  } from './index'
223
228
 
224
229
  declare global {
@@ -564,6 +569,10 @@ declare global {
564
569
  const UniTextareaElement: typeof UniTextareaElementOrigin
565
570
  const UniViewElement: typeof UniViewElementOrigin
566
571
  const UniWebViewElement: typeof UniWebViewElementOrigin
572
+ type ClientRectSuccessCallback = ClientRectSuccessCallbackOrigin
573
+ type ClientRectFailCallback = ClientRectFailCallbackOrigin
574
+ type ClientRectCompleteCallback = ClientRectCompleteCallbackOrigin
575
+ type ClientRectObject = ClientRectObjectOrigin
567
576
  type UniElement = UniElementOrigin
568
577
  type INode = INodeOrigin
569
578
  type Element = ElementOrigin
@@ -614,4 +623,5 @@ declare global {
614
623
  const CSSStyleDeclaration: typeof CSSStyleDeclarationOrigin
615
624
  type CSSStyleDeclaration = CSSStyleDeclarationOrigin
616
625
  type AsyncApiResult = AsyncApiResultOrigin
626
+ type AsyncApiSuccessResult = AsyncApiSuccessResultOrigin
617
627
  }
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,13 @@ 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
1631
  * }
1632
1632
  * },
1633
1633
  * "web": {
@@ -15,6 +15,13 @@ interface Uni {
15
15
  * "unixVer": "4.11"
16
16
  * }
17
17
  * },
18
+ * "mp": {
19
+ * "weinxin": {
20
+ * "osVer": "√",
21
+ * "uniVer": "√",
22
+ * "unixVer": "4.35"
23
+ * }
24
+ * },
18
25
  * "web": {
19
26
  * "uniVer": "x,
20
27
  * "unixVer": "x"
@@ -37,10 +44,17 @@ interface Uni {
37
44
  * "uniVer": "x",
38
45
  * "unixVer": "4.11"
39
46
  * }
47
+ * },
48
+ * "mp": {
49
+ * "weinxin": {
50
+ * "osVer": "√",
51
+ * "uniVer": "√",
52
+ * "unixVer": "4.35"
53
+ * }
40
54
  * }
41
55
  * }
42
56
  */
43
- USER_DATA_PATH : "unifile://usr/",
57
+ USER_DATA_PATH : string,
44
58
  /**
45
59
  * 应用专属存储空间的外置存储空间根目录下的cache目录
46
60
  * @uniPlatform {
@@ -4,3 +4,4 @@
4
4
  /// <reference path='./uts-plugin-biz/global.d.ts' />
5
5
  /// <reference path='./uts-plugin-component/global.d.ts' />
6
6
  /// <reference path='./uts-plugin-extend/global.d.ts' />
7
+ /// <reference path='./uni-map-tencent-global.d.ts' />
@@ -2,3 +2,4 @@ export * from './uts-plugin-api'
2
2
  export * from './uts-plugin-biz'
3
3
  export * from './uts-plugin-component'
4
4
  export * from './uts-plugin-extend'
5
+ export * from './uni-map-tencent-global'
@@ -0,0 +1,33 @@
1
+ import {
2
+ UniMapUpdatedEvent as UniMapUpdatedEventOrigin,
3
+ UniMapTapEvent as UniMapTapEventOrigin,
4
+ UniMapRegionChangeEvent as UniMapRegionChangeEventOrigin,
5
+ UniMapMarkerTapEvent as UniMapMarkerTapEventOrigin,
6
+ UniMapControlTapEvent as UniMapControlTapEventOrigin,
7
+ UniMapAnchorPointTapEvent as UniMapAnchorPointTapEventOrigin,
8
+ UniMapPoiTapEvent as UniMapPoiTapEventOrigin,
9
+ UniMapUpdatedEventDetail as UniMapUpdatedEventDetailOrigin,
10
+ UniMapTapEventDetail as UniMapTapEventDetailOrigin,
11
+ UniMapRegionChangeEventDetail as UniMapRegionChangeEventDetailOrigin,
12
+ UniMapMarkerTapEventDetail as UniMapMarkerTapEventDetailOrigin,
13
+ UniMapControlTapEventDetail as UniMapControlTapEventDetailOrigin,
14
+ UniMapAnchorPointTapEventDetail as UniMapAnchorPointTapEventDetailOrigin,
15
+ UniMapPoiTapEventDetail as UniMapPoiTapEventDetailOrigin
16
+ } from "./uni-map-tencent-map"
17
+
18
+ declare global {
19
+ type UniMapUpdatedEvent = UniMapUpdatedEventOrigin
20
+ type UniMapTapEvent = UniMapTapEventOrigin
21
+ type UniMapRegionChangeEvent = UniMapRegionChangeEventOrigin
22
+ type UniMapMarkerTapEvent = UniMapMarkerTapEventOrigin
23
+ type UniMapControlTapEvent = UniMapControlTapEventOrigin
24
+ type UniMapAnchorPointTapEvent = UniMapAnchorPointTapEventOrigin
25
+ type UniMapPoiTapEvent = UniMapPoiTapEventOrigin
26
+ type UniMapUpdatedEventDetail = UniMapUpdatedEventDetailOrigin
27
+ type UniMapTapEventDetail = UniMapTapEventDetailOrigin
28
+ type UniMapRegionChangeEventDetail = UniMapRegionChangeEventDetailOrigin
29
+ type UniMapMarkerTapEventDetail = UniMapMarkerTapEventDetailOrigin
30
+ type UniMapControlTapEventDetail = UniMapControlTapEventDetailOrigin
31
+ type UniMapAnchorPointTapEventDetail = UniMapAnchorPointTapEventDetailOrigin
32
+ type UniMapPoiTapEventDetail = UniMapPoiTapEventDetailOrigin
33
+ }
@@ -0,0 +1,52 @@
1
+ export declare class UniMapUpdatedEventDetail { }
2
+ export declare class UniMapUpdatedEvent extends UniCustomEvent<UniMapUpdatedEventDetail> {
3
+ constructor(type: string, detail: UniMapUpdatedEventDetail)
4
+ }
5
+
6
+ export declare class UniMapTapEventDetail {
7
+ latitude: number | null
8
+ longitude: number | null
9
+ }
10
+ export declare class UniMapTapEvent extends UniCustomEvent<UniMapTapEventDetail> {
11
+ constructor(type: string, detail: UniMapTapEventDetail)
12
+ }
13
+
14
+ export declare class UniMapRegionChangeEventDetail {
15
+ skew: number | null
16
+ rotate: number | null
17
+ }
18
+ export declare class UniMapRegionChangeEvent extends UniCustomEvent<UniMapRegionChangeEventDetail | null> {
19
+ causedBy?: string | null
20
+ constructor(type: string, detail: UniMapRegionChangeEventDetail | null)
21
+ }
22
+
23
+ export declare class UniMapMarkerTapEventDetail {
24
+ markerId: number | null
25
+ }
26
+ export declare class UniMapMarkerTapEvent extends UniCustomEvent<UniMapMarkerTapEventDetail> {
27
+ constructor(type: string, detail: UniMapMarkerTapEventDetail)
28
+ }
29
+
30
+ export declare class UniMapControlTapEventDetail {
31
+ controlId: number | null
32
+ }
33
+ export declare class UniMapControlTapEvent extends UniCustomEvent<UniMapControlTapEventDetail> {
34
+ constructor(type: string, detail: UniMapControlTapEventDetail)
35
+ }
36
+
37
+ export declare class UniMapAnchorPointTapEventDetail {
38
+ latitude: number | null
39
+ longitude: number | null
40
+ }
41
+ export declare class UniMapAnchorPointTapEvent extends UniCustomEvent<UniMapAnchorPointTapEventDetail> {
42
+ constructor(type: string, detail: UniMapAnchorPointTapEventDetail)
43
+ }
44
+
45
+ export declare class UniMapPoiTapEventDetail {
46
+ latitude: number | null
47
+ longitude: number | null
48
+ name: string | null
49
+ }
50
+ export declare class UniMapPoiTapEvent extends UniCustomEvent<UniMapPoiTapEventDetail> {
51
+ constructor(type: string, detail: UniMapPoiTapEventDetail)
52
+ }
@@ -11,6 +11,7 @@
11
11
  /// <reference path='./lib/uni-prompt/utssdk/global.d.ts' />
12
12
  /// <reference path='./lib/uni-privacy/utssdk/global.d.ts' />
13
13
  /// <reference path='./lib/uni-payment-wxpay/utssdk/global.d.ts' />
14
+ /// <reference path='./lib/uni-payment-huawei/utssdk/global.d.ts' />
14
15
  /// <reference path='./lib/uni-payment-alipay/utssdk/global.d.ts' />
15
16
  /// <reference path='./lib/uni-payment/utssdk/global.d.ts' />
16
17
  /// <reference path='./lib/uni-pageScrollTo/utssdk/global.d.ts' />
@@ -56,8 +57,10 @@
56
57
  /// <reference path='./lib/uni-createInnerAudioContext/utssdk/global.d.ts' />
57
58
  /// <reference path='./lib/uni-crash/utssdk/global.d.ts' />
58
59
  /// <reference path='./lib/uni-clipboard/utssdk/global.d.ts' />
60
+ /// <reference path='./lib/uni-chooseLocation/utssdk/global.d.ts' />
59
61
  /// <reference path='./lib/uni-canvas/utssdk/global.d.ts' />
60
62
  /// <reference path='./lib/uni-base64ToArrayBuffer/utssdk/global.d.ts' />
61
63
  /// <reference path='./lib/uni-authentication/utssdk/global.d.ts' />
62
64
  /// <reference path='./lib/uni-arrayBufferToBase64/utssdk/global.d.ts' />
63
65
  /// <reference path='./lib/uni-addPhoneContact/utssdk/global.d.ts' />
66
+ /// <reference path='./lib/uni-actionSheet/utssdk/global.d.ts' />
@@ -11,6 +11,7 @@ export * from './lib/uni-pullDownRefresh/utssdk'
11
11
  export * from './lib/uni-prompt/utssdk'
12
12
  export * from './lib/uni-privacy/utssdk'
13
13
  export * from './lib/uni-payment-wxpay/utssdk'
14
+ export * from './lib/uni-payment-huawei/utssdk'
14
15
  export * from './lib/uni-payment-alipay/utssdk'
15
16
  export * from './lib/uni-payment/utssdk'
16
17
  export * from './lib/uni-pageScrollTo/utssdk'
@@ -56,8 +57,10 @@ export * from './lib/uni-createIntersectionObserver/utssdk'
56
57
  export * from './lib/uni-createInnerAudioContext/utssdk'
57
58
  export * from './lib/uni-crash/utssdk'
58
59
  export * from './lib/uni-clipboard/utssdk'
60
+ export * from './lib/uni-chooseLocation/utssdk'
59
61
  export * from './lib/uni-canvas/utssdk'
60
62
  export * from './lib/uni-base64ToArrayBuffer/utssdk'
61
63
  export * from './lib/uni-authentication/utssdk'
62
64
  export * from './lib/uni-arrayBufferToBase64/utssdk'
63
65
  export * from './lib/uni-addPhoneContact/utssdk'
66
+ export * from './lib/uni-actionSheet/utssdk'
@@ -0,0 +1,24 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ Popover2 as Popover2Origin,
4
+ ShowActionSheetErrorCode as ShowActionSheetErrorCodeOrigin,
5
+ ShowActionSheetSuccess2 as ShowActionSheetSuccess2Origin,
6
+ ShowActionSheetFail2 as ShowActionSheetFail2Origin,
7
+ ShowActionSheetComplete as ShowActionSheetCompleteOrigin,
8
+ ShowActionSheet2Options as ShowActionSheet2OptionsOrigin,
9
+ ShowActionSheet2 as ShowActionSheet2Origin,
10
+ HideActionSheet as HideActionSheetOrigin,
11
+ Uni as UniOrigin
12
+ } from './interface'
13
+
14
+ declare global {
15
+ type Popover2 = Popover2Origin
16
+ type ShowActionSheetErrorCode = ShowActionSheetErrorCodeOrigin
17
+ type ShowActionSheetSuccess2 = ShowActionSheetSuccess2Origin
18
+ type ShowActionSheetFail2 = ShowActionSheetFail2Origin
19
+ type ShowActionSheetComplete = ShowActionSheetCompleteOrigin
20
+ type ShowActionSheet2Options = ShowActionSheet2OptionsOrigin
21
+ type ShowActionSheet2 = ShowActionSheet2Origin
22
+ type HideActionSheet = HideActionSheetOrigin
23
+ interface Uni extends UniOrigin { }
24
+ }
@@ -0,0 +1,11 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ Popover2,
4
+ ShowActionSheetErrorCode,
5
+ ShowActionSheetSuccess2,
6
+ ShowActionSheetFail2,
7
+ ShowActionSheetComplete,
8
+ ShowActionSheet2Options,
9
+ ShowActionSheet2,
10
+ HideActionSheet,
11
+ } from './interface'