@dcloudio/uni-app-x 0.7.14 → 0.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +335 -1919
  8. package/types/native/Path2D.d.ts +74 -0
  9. package/types/native/SnapshotOptions.d.ts +1 -0
  10. package/types/native/UniCanvasElement.d.ts +9 -0
  11. package/types/native/UniNativePage.d.ts +27 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniResizeObserver.d.ts +9 -99
  14. package/types/native/UniScrollEvent.d.ts +1 -1
  15. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  16. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  17. package/types/native/global.d.ts +21 -0
  18. package/types/native/index.d.ts +3 -0
  19. package/types/shim-uts-basic.d.ts +4495 -0
  20. package/types/uni/env/index.d.ts +21 -0
  21. package/types/uni/uts-plugin-api/global.d.ts +12 -1
  22. package/types/uni/uts-plugin-api/index.d.ts +12 -1
  23. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  25. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  26. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  27. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  29. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  30. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  33. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  34. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  35. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  36. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  37. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  38. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  39. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  40. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  41. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  42. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +26 -18
  43. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  44. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  45. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  46. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  47. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  48. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  52. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  53. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  54. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  55. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  56. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +10 -3
  57. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +113 -23
  61. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  62. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  63. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  64. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  65. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  66. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  68. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  69. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  70. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  71. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  72. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  73. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  74. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +312 -58
  75. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  76. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  77. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  78. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  79. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  80. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  81. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  82. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  83. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  84. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +17 -10
  85. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  86. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  87. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  88. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  89. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  91. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  92. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  95. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +241 -32
  96. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  97. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  98. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  99. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  100. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  101. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  102. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  103. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  104. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  105. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  106. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  107. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  108. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  111. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  112. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  113. package/types/uni/uts-plugin-extend/global.d.ts +0 -1
  114. package/types/uni/uts-plugin-extend/index.d.ts +0 -3
  115. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  116. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  117. package/types/uni-cloud/interface.d.ts +57 -3
  118. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  119. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  120. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  121. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  122. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  124. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  125. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  126. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
@@ -7,8 +7,8 @@ export type GetAppBaseInfoOptions = {
7
7
 
8
8
  export type GetAppBaseInfoResult = {
9
9
  /**
10
- * manifest.json 中应用appid,即DCloud appid。
11
- *
10
+ * manifest.json 中应用appid,即DCloud appid。
11
+ *
12
12
  * @uniPlatform
13
13
  * {
14
14
  * "app": {
@@ -21,7 +21,12 @@ export type GetAppBaseInfoResult = {
21
21
  * "osVer": "12.0",
22
22
  * "uniVer": "√",
23
23
  * "unixVer": "4.11"
24
- * }
24
+ * },
25
+ * "harmony": {
26
+ * "osVer": "3.0",
27
+ * "uniVer": "4.23",
28
+ * "unixVer": "x"
29
+ * }
25
30
  * },
26
31
  * "web": {
27
32
  * "uniVer": "√",
@@ -32,7 +37,7 @@ export type GetAppBaseInfoResult = {
32
37
  appId?: string,
33
38
  /**
34
39
  * `manifest.json` 中应用名称。
35
- *
40
+ *
36
41
  * @uniPlatform
37
42
  * {
38
43
  * "app": {
@@ -45,7 +50,12 @@ export type GetAppBaseInfoResult = {
45
50
  * "osVer": "12.0",
46
51
  * "uniVer": "√",
47
52
  * "unixVer": "4.11"
48
- * }
53
+ * },
54
+ * "harmony": {
55
+ * "osVer": "3.0",
56
+ * "uniVer": "4.23",
57
+ * "unixVer": "x"
58
+ * }
49
59
  * },
50
60
  * "web": {
51
61
  * "uniVer": "√",
@@ -56,7 +66,7 @@ export type GetAppBaseInfoResult = {
56
66
  appName?: string,
57
67
  /**
58
68
  * `manifest.json` 中应用版本名称。
59
- *
69
+ *
60
70
  * @uniPlatform
61
71
  * {
62
72
  * "app": {
@@ -69,7 +79,12 @@ export type GetAppBaseInfoResult = {
69
79
  * "osVer": "12.0",
70
80
  * "uniVer": "√",
71
81
  * "unixVer": "4.11"
72
- * }
82
+ * },
83
+ * "harmony": {
84
+ * "osVer": "3.0",
85
+ * "uniVer": "4.23",
86
+ * "unixVer": "x"
87
+ * }
73
88
  * },
74
89
  * "web": {
75
90
  * "uniVer": "√",
@@ -80,7 +95,7 @@ export type GetAppBaseInfoResult = {
80
95
  appVersion?: string,
81
96
  /**
82
97
  * `manifest.json` 中应用版本名号。
83
- *
98
+ *
84
99
  * @uniPlatform
85
100
  * {
86
101
  * "app": {
@@ -93,7 +108,12 @@ export type GetAppBaseInfoResult = {
93
108
  * "osVer": "12.0",
94
109
  * "uniVer": "√",
95
110
  * "unixVer": "4.11"
96
- * }
111
+ * },
112
+ * "harmony": {
113
+ * "osVer": "3.0",
114
+ * "uniVer": "4.23",
115
+ * "unixVer": "x"
116
+ * }
97
117
  * },
98
118
  * "web": {
99
119
  * "uniVer": "√",
@@ -103,8 +123,8 @@ export type GetAppBaseInfoResult = {
103
123
  */
104
124
  appVersionCode?: string,
105
125
  /**
106
- * 应用设置的语言en、zh-Hans、zh-Hant、fr、es
107
- *
126
+ * 应用设置的语言en、zh-Hans、zh-Hant、fr、es
127
+ *
108
128
  * @uniPlatform
109
129
  * {
110
130
  * "app": {
@@ -117,7 +137,12 @@ export type GetAppBaseInfoResult = {
117
137
  * "osVer": "12.0",
118
138
  * "uniVer": "√",
119
139
  * "unixVer": "4.11"
120
- * }
140
+ * },
141
+ * "harmony": {
142
+ * "osVer": "3.0",
143
+ * "uniVer": "4.23",
144
+ * "unixVer": "x"
145
+ * }
121
146
  * },
122
147
  * "web": {
123
148
  * "uniVer": "√",
@@ -127,8 +152,8 @@ export type GetAppBaseInfoResult = {
127
152
  */
128
153
  appLanguage?: string,
129
154
  /**
130
- * 应用设置的语言
131
- *
155
+ * 应用设置的语言
156
+ *
132
157
  * @uniPlatform
133
158
  * {
134
159
  * "app": {
@@ -141,7 +166,12 @@ export type GetAppBaseInfoResult = {
141
166
  * "osVer": "12.0",
142
167
  * "uniVer": "√",
143
168
  * "unixVer": "4.11"
144
- * }
169
+ * },
170
+ * "harmony": {
171
+ * "osVer": "x",
172
+ * "uniVer": "x",
173
+ * "unixVer": "x"
174
+ * }
145
175
  * },
146
176
  * "web": {
147
177
  * "uniVer": "√",
@@ -153,7 +183,7 @@ export type GetAppBaseInfoResult = {
153
183
  /**
154
184
  * 引擎版本号。已废弃,仅为了向下兼容保留
155
185
  * @deprecated 已废弃,仅为了向下兼容保留
156
- *
186
+ *
157
187
  * @uniPlatform
158
188
  * {
159
189
  * "app": {
@@ -166,7 +196,12 @@ export type GetAppBaseInfoResult = {
166
196
  * "osVer": "12.0",
167
197
  * "uniVer": "√",
168
198
  * "unixVer": "4.11"
169
- * }
199
+ * },
200
+ * "harmony": {
201
+ * "osVer": "3.0",
202
+ * "uniVer": "4.23",
203
+ * "unixVer": "x"
204
+ * }
170
205
  * },
171
206
  * "web": {
172
207
  * "uniVer": "x",
@@ -176,8 +211,8 @@ export type GetAppBaseInfoResult = {
176
211
  */
177
212
  version?: string,
178
213
  /**
179
- * 应用资源(wgt)的版本名称。
180
- *
214
+ * 应用资源(wgt)的版本名称。
215
+ *
181
216
  * @uniPlatform
182
217
  * {
183
218
  * "app": {
@@ -190,7 +225,12 @@ export type GetAppBaseInfoResult = {
190
225
  * "osVer": "12.0",
191
226
  * "uniVer": "√",
192
227
  * "unixVer": "x"
193
- * }
228
+ * },
229
+ * "harmony": {
230
+ * "osVer": "3.0",
231
+ * "uniVer": "4.23",
232
+ * "unixVer": "x"
233
+ * }
194
234
  * },
195
235
  * "web": {
196
236
  * "uniVer": "x",
@@ -200,8 +240,8 @@ export type GetAppBaseInfoResult = {
200
240
  */
201
241
  appWgtVersion?: string,
202
242
  /**
203
- * 小程序宿主语言
204
- *
243
+ * 小程序宿主语言
244
+ *
205
245
  * @uniPlatform
206
246
  * {
207
247
  * "app": {
@@ -214,7 +254,12 @@ export type GetAppBaseInfoResult = {
214
254
  * "osVer": "12.0",
215
255
  * "uniVer": "√",
216
256
  * "unixVer": "x"
217
- * }
257
+ * },
258
+ * "harmony": {
259
+ * "osVer": "3.0",
260
+ * "uniVer": "4.23",
261
+ * "unixVer": "x"
262
+ * }
218
263
  * },
219
264
  * "web": {
220
265
  * "uniVer": "x",
@@ -225,7 +270,7 @@ export type GetAppBaseInfoResult = {
225
270
  hostLanguage?: string,
226
271
  /**
227
272
  * App、小程序宿主版本。
228
- *
273
+ *
229
274
  * @uniPlatform
230
275
  * {
231
276
  * "app": {
@@ -238,7 +283,12 @@ export type GetAppBaseInfoResult = {
238
283
  * "osVer": "12.0",
239
284
  * "uniVer": "√",
240
285
  * "unixVer": "x"
241
- * }
286
+ * },
287
+ * "harmony": {
288
+ * "osVer": "x",
289
+ * "uniVer": "x",
290
+ * "unixVer": "x"
291
+ * }
242
292
  * },
243
293
  * "web": {
244
294
  * "uniVer": "x",
@@ -248,8 +298,8 @@ export type GetAppBaseInfoResult = {
248
298
  */
249
299
  hostVersion?: string,
250
300
  /**
251
- * 小程序宿主名称
252
- *
301
+ * 小程序宿主名称
302
+ *
253
303
  * @uniPlatform
254
304
  * {
255
305
  * "app": {
@@ -262,7 +312,12 @@ export type GetAppBaseInfoResult = {
262
312
  * "osVer": "12.0",
263
313
  * "uniVer": "√",
264
314
  * "unixVer": "x"
265
- * }
315
+ * },
316
+ * "harmony": {
317
+ * "osVer": "x",
318
+ * "uniVer": "x",
319
+ * "unixVer": "x"
320
+ * }
266
321
  * },
267
322
  * "web": {
268
323
  * "uniVer": "x",
@@ -272,8 +327,8 @@ export type GetAppBaseInfoResult = {
272
327
  */
273
328
  hostName?: string,
274
329
  /**
275
- * 小程序宿主包名
276
- *
330
+ * 小程序宿主包名
331
+ *
277
332
  * @uniPlatform
278
333
  * {
279
334
  * "app": {
@@ -286,7 +341,12 @@ export type GetAppBaseInfoResult = {
286
341
  * "osVer": "12.0",
287
342
  * "uniVer": "√",
288
343
  * "unixVer": "x"
289
- * }
344
+ * },
345
+ * "harmony": {
346
+ * "osVer": "x",
347
+ * "uniVer": "x",
348
+ * "unixVer": "x"
349
+ * }
290
350
  * },
291
351
  * "web": {
292
352
  * "uniVer": "x",
@@ -296,8 +356,8 @@ export type GetAppBaseInfoResult = {
296
356
  */
297
357
  hostPackageName?: string,
298
358
  /**
299
- * uni小程序SDK版本、小程序客户端基础库版本
300
- *
359
+ * uni小程序SDK版本、小程序客户端基础库版本
360
+ *
301
361
  * @uniPlatform
302
362
  * {
303
363
  * "app": {
@@ -310,7 +370,12 @@ export type GetAppBaseInfoResult = {
310
370
  * "osVer": "12.0",
311
371
  * "uniVer": "√",
312
372
  * "unixVer": "x"
313
- * }
373
+ * },
374
+ * "harmony": {
375
+ * "osVer": "x",
376
+ * "uniVer": "x",
377
+ * "unixVer": "x"
378
+ * }
314
379
  * },
315
380
  * "web": {
316
381
  * "uniVer": "x",
@@ -321,7 +386,7 @@ export type GetAppBaseInfoResult = {
321
386
  hostSDKVersion?: string,
322
387
  /**
323
388
  * 系统当前主题,取值为light或dark。微信小程序全局配置"darkmode":true时才能获取,否则为 undefined (不支持小游戏)
324
- *
389
+ *
325
390
  * @uniPlatform
326
391
  * {
327
392
  * "app": {
@@ -334,7 +399,12 @@ export type GetAppBaseInfoResult = {
334
399
  * "osVer": "12.0",
335
400
  * "uniVer": "√",
336
401
  * "unixVer": "x"
337
- * }
402
+ * },
403
+ * "harmony": {
404
+ * "osVer": "x",
405
+ * "uniVer": "x",
406
+ * "unixVer": "x"
407
+ * }
338
408
  * },
339
409
  * "web": {
340
410
  * "uniVer": "x",
@@ -345,7 +415,7 @@ export type GetAppBaseInfoResult = {
345
415
  hostTheme?: string,
346
416
  /**
347
417
  * 是否uni-app x
348
- *
418
+ *
349
419
  * @uniPlatform
350
420
  * {
351
421
  * "app": {
@@ -358,7 +428,12 @@ export type GetAppBaseInfoResult = {
358
428
  * "osVer": "12.0",
359
429
  * "uniVer": "√",
360
430
  * "unixVer": "4.11"
361
- * }
431
+ * },
432
+ * "harmony": {
433
+ * "osVer": "3.0",
434
+ * "uniVer": "4.23",
435
+ * "unixVer": "x"
436
+ * }
362
437
  * },
363
438
  * "web": {
364
439
  * "uniVer": "x",
@@ -367,11 +442,11 @@ export type GetAppBaseInfoResult = {
367
442
  * }
368
443
  */
369
444
  isUniAppX ?: boolean,
370
-
445
+
371
446
  /**
372
447
  * uni 编译器版本
373
448
  * @deprecated 已废弃,仅为了向下兼容保留
374
- *
449
+ *
375
450
  * @uniPlatform
376
451
  * {
377
452
  * "app": {
@@ -384,7 +459,12 @@ export type GetAppBaseInfoResult = {
384
459
  * "osVer": "12.0",
385
460
  * "uniVer": "√",
386
461
  * "unixVer": "4.11"
387
- * }
462
+ * },
463
+ * "harmony": {
464
+ * "osVer": "x",
465
+ * "uniVer": "x",
466
+ * "unixVer": "x"
467
+ * }
388
468
  * },
389
469
  * "web": {
390
470
  * "uniVer": "x",
@@ -395,7 +475,7 @@ export type GetAppBaseInfoResult = {
395
475
  uniCompileVersion ?: string,
396
476
  /**
397
477
  * uni 编译器版本
398
- *
478
+ *
399
479
  * @uniPlatform
400
480
  * {
401
481
  * "app": {
@@ -408,7 +488,12 @@ export type GetAppBaseInfoResult = {
408
488
  * "osVer": "12.0",
409
489
  * "uniVer": "x",
410
490
  * "unixVer": "4.11"
411
- * }
491
+ * },
492
+ * "harmony": {
493
+ * "osVer": "3.0",
494
+ * "uniVer": "4.23",
495
+ * "unixVer": "x"
496
+ * }
412
497
  * },
413
498
  * "web": {
414
499
  * "uniVer": "x",
@@ -419,7 +504,7 @@ export type GetAppBaseInfoResult = {
419
504
  uniCompilerVersion ?: string,
420
505
  /**
421
506
  * uni-app 运行平台。
422
- *
507
+ *
423
508
  * @uniPlatform
424
509
  * {
425
510
  * "app": {
@@ -432,7 +517,12 @@ export type GetAppBaseInfoResult = {
432
517
  * "osVer": "12.0",
433
518
  * "uniVer": "√",
434
519
  * "unixVer": "4.11"
435
- * }
520
+ * },
521
+ * "harmony": {
522
+ * "osVer": "3.0",
523
+ * "uniVer": "4.23",
524
+ * "unixVer": "x"
525
+ * }
436
526
  * },
437
527
  * "web": {
438
528
  * "uniVer": "√",
@@ -443,7 +533,7 @@ export type GetAppBaseInfoResult = {
443
533
  uniPlatform ?: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei',
444
534
  /**
445
535
  * uni 运行时版本
446
- *
536
+ *
447
537
  * @uniPlatform
448
538
  * {
449
539
  * "app": {
@@ -456,7 +546,12 @@ export type GetAppBaseInfoResult = {
456
546
  * "osVer": "12.0",
457
547
  * "uniVer": "√",
458
548
  * "unixVer": "4.11"
459
- * }
549
+ * },
550
+ * "harmony": {
551
+ * "osVer": "x",
552
+ * "uniVer": "x",
553
+ * "unixVer": "x"
554
+ * }
460
555
  * },
461
556
  * "web": {
462
557
  * "uniVer": "x",
@@ -468,7 +563,7 @@ export type GetAppBaseInfoResult = {
468
563
  /**
469
564
  * uni 编译器版本号
470
565
  * @deprecated 已废弃,仅为了向下兼容保留
471
- *
566
+ *
472
567
  * @uniPlatform
473
568
  * {
474
569
  * "app": {
@@ -481,7 +576,12 @@ export type GetAppBaseInfoResult = {
481
576
  * "osVer": "12.0",
482
577
  * "uniVer": "√",
483
578
  * "unixVer": "4.11"
484
- * }
579
+ * },
580
+ * "harmony": {
581
+ * "osVer": "x",
582
+ * "uniVer": "x",
583
+ * "unixVer": "x"
584
+ * }
485
585
  * },
486
586
  * "web": {
487
587
  * "uniVer": "x",
@@ -492,7 +592,7 @@ export type GetAppBaseInfoResult = {
492
592
  uniCompileVersionCode?: number,
493
593
  /**
494
594
  * uni 编译器版本号
495
- *
595
+ *
496
596
  * @uniPlatform
497
597
  * {
498
598
  * "app": {
@@ -505,7 +605,12 @@ export type GetAppBaseInfoResult = {
505
605
  * "osVer": "12.0",
506
606
  * "uniVer": "x",
507
607
  * "unixVer": "4.11"
508
- * }
608
+ * },
609
+ * "harmony": {
610
+ * "osVer": "x",
611
+ * "uniVer": "x",
612
+ * "unixVer": "x"
613
+ * }
509
614
  * },
510
615
  * "web": {
511
616
  * "uniVer": "x",
@@ -516,7 +621,7 @@ export type GetAppBaseInfoResult = {
516
621
  uniCompilerVersionCode?: number,
517
622
  /**
518
623
  * uni 运行时版本号
519
- *
624
+ *
520
625
  * @uniPlatform
521
626
  * {
522
627
  * "app": {
@@ -529,7 +634,12 @@ export type GetAppBaseInfoResult = {
529
634
  * "osVer": "12.0",
530
635
  * "uniVer": "√",
531
636
  * "unixVer": "4.11"
532
- * }
637
+ * },
638
+ * "harmony": {
639
+ * "osVer": "3.0",
640
+ * "uniVer": "4.23",
641
+ * "unixVer": "x"
642
+ * }
533
643
  * },
534
644
  * "web": {
535
645
  * "uniVer": "x",
@@ -540,7 +650,7 @@ export type GetAppBaseInfoResult = {
540
650
  uniRuntimeVersionCode?: number,
541
651
  /**
542
652
  * Android的包名
543
- *
653
+ *
544
654
  * @uniPlatform
545
655
  * {
546
656
  * "app": {
@@ -553,7 +663,12 @@ export type GetAppBaseInfoResult = {
553
663
  * "osVer": "x",
554
664
  * "uniVer": "x",
555
665
  * "unixVer": "x"
556
- * }
666
+ * },
667
+ * "harmony": {
668
+ * "osVer": "3.0",
669
+ * "uniVer": "4.23",
670
+ * "unixVer": "x"
671
+ * }
557
672
  * },
558
673
  * "web": {
559
674
  * "uniVer": "x",
@@ -564,7 +679,7 @@ export type GetAppBaseInfoResult = {
564
679
  packageName?: string,
565
680
  /**
566
681
  * iOS的bundleId
567
- *
682
+ *
568
683
  * @uniPlatform
569
684
  * {
570
685
  * "app": {
@@ -577,7 +692,12 @@ export type GetAppBaseInfoResult = {
577
692
  * "osVer": "12.0",
578
693
  * "uniVer": "x",
579
694
  * "unixVer": "4.11"
580
- * }
695
+ * },
696
+ * "harmony": {
697
+ * "osVer": "x",
698
+ * "uniVer": "x",
699
+ * "unixVer": "x"
700
+ * }
581
701
  * },
582
702
  * "web": {
583
703
  * "uniVer": "x",
@@ -589,7 +709,7 @@ export type GetAppBaseInfoResult = {
589
709
  /**
590
710
  * Android: 应用签名证书的SHA1值(全部为小写,中间不包含“:”)。 为了保证应用的安全性,请使用自己生成的证书(不要使用公共测试证书)。
591
711
  * iOS: 应用签名证书中绑定的Bundle ID(AppleID)的md5值(全部为小写)。
592
- *
712
+ *
593
713
  * @uniPlatform
594
714
  * {
595
715
  * "app": {
@@ -602,7 +722,12 @@ export type GetAppBaseInfoResult = {
602
722
  * "osVer": "12.0",
603
723
  * "uniVer": "x",
604
724
  * "unixVer": "4.11"
605
- * }
725
+ * },
726
+ * "harmony": {
727
+ * "osVer": "x",
728
+ * "uniVer": "x",
729
+ * "unixVer": "x"
730
+ * }
606
731
  * },
607
732
  * "web": {
608
733
  * "uniVer": "x",
@@ -613,7 +738,7 @@ export type GetAppBaseInfoResult = {
613
738
  signature?: string,
614
739
  /**
615
740
  * 当前App的主题
616
- *
741
+ *
617
742
  * @uniPlatform
618
743
  * {
619
744
  * "app": {
@@ -626,7 +751,12 @@ export type GetAppBaseInfoResult = {
626
751
  * "osVer": "12.0",
627
752
  * "uniVer": "x",
628
753
  * "unixVer": "4.18"
629
- * }
754
+ * },
755
+ * "harmony": {
756
+ * "osVer": "3.0",
757
+ * "uniVer": "4.23",
758
+ * "unixVer": "x"
759
+ * }
630
760
  * },
631
761
  * "web": {
632
762
  * "uniVer": "x",
@@ -646,11 +776,13 @@ export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppB
646
776
  export interface Uni {
647
777
  /**
648
778
  * GetAppBaseInfo(Object object)
649
- * @description
779
+ * @description
650
780
  * 获取app基本信息
651
781
  * @param {GetAppBaseInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
652
782
  * @return {object}
653
- * @tutorial https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
783
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app-base-info.html
784
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app-base-info.html
785
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
654
786
  * @uniPlatform
655
787
  * {
656
788
  * "app": {
@@ -663,7 +795,12 @@ export interface Uni {
663
795
  * "osVer": "12.0",
664
796
  * "uniVer": "√",
665
797
  * "unixVer": "4.11"
666
- * }
798
+ * },
799
+ * "harmony": {
800
+ * "osVer": "3.0",
801
+ * "uniVer": "4.23",
802
+ * "unixVer": "x"
803
+ * }}
667
804
  * },
668
805
  * "web": {
669
806
  * "uniVer": "√",