@dcloudio/uni-app-x 0.7.61 → 0.7.63

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 (80) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +36 -1
  3. package/types/dom2/UniCSSProperty.d.ts +446 -0
  4. package/types/dom2/UniCSSType.d.ts +72 -0
  5. package/types/dom2/UniCommon.d.ts +40 -0
  6. package/types/dom2/UniCustomViewElement.d.ts +12 -0
  7. package/types/dom2/UniElement.d.ts +354 -0
  8. package/types/dom2/UniElementType.d.ts +37 -0
  9. package/types/dom2/UniImageElement.d.ts +102 -0
  10. package/types/dom2/UniNativeBaseView.d.ts +178 -0
  11. package/types/dom2/UniNativeCustomView.d.ts +13 -0
  12. package/types/dom2/UniNativeDefines.d.ts +435 -0
  13. package/types/dom2/UniNativeImageView.d.ts +34 -0
  14. package/types/dom2/UniNativeScrollView.d.ts +42 -0
  15. package/types/dom2/UniNativeTextView.d.ts +25 -0
  16. package/types/dom2/UniNativeView.d.ts +51 -0
  17. package/types/dom2/UniNativeViewType.d.ts +22 -0
  18. package/types/dom2/UniPage.d.ts +55 -0
  19. package/types/dom2/UniScrollViewElement.d.ts +13 -0
  20. package/types/dom2/UniTextElement.d.ts +20 -0
  21. package/types/dom2/UniTextLayout.d.ts +386 -0
  22. package/types/dom2/UniViewElement.d.ts +57 -0
  23. package/types/dom2/global.d.ts +189 -0
  24. package/types/dom2/index.d.ts +40 -0
  25. package/types/dom2/sharedData.d.ts +227 -0
  26. package/types/index.d.ts +2 -1
  27. package/types/native/DOMRect.d.ts +2 -1
  28. package/types/native/DrawableContext.d.ts +1665 -1661
  29. package/types/native/IUniElement.d.ts +3514 -2877
  30. package/types/native/SnapshotOptions.d.ts +2 -2
  31. package/types/native/UniAnimation.d.ts +11 -10
  32. package/types/native/UniEvent.d.ts +108 -3
  33. package/types/native/UniPage.d.ts +891 -882
  34. package/types/native/UniTextElement.d.ts +37 -0
  35. package/types/native/UniTextLayout.d.ts +387 -0
  36. package/types/native/UniVideoElement.d.ts +20 -17
  37. package/types/native/Worker.d.ts +19 -0
  38. package/types/native/global.d.ts +28 -68
  39. package/types/native/index.d.ts +18 -1
  40. package/types/page.d.ts +1862 -599
  41. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  42. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  43. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  45. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
  46. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
  49. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
  53. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
  54. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
  55. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
  56. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
  57. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
  58. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
  59. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
  60. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
  61. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
  62. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
  63. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
  64. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
  65. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
  66. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
  67. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
  68. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
  69. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
  70. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
  71. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
  73. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
  74. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
  77. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
  78. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
  79. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
  80. package/uts-plugin.d.ts +11 -0
@@ -1,908 +1,917 @@
1
1
  import { UniSafeAreaInsets } from './UniSafeAreaInsets'
2
2
  import { FullscreenError, UniElement } from './IUniElement'
3
+ import { UniPageBody } from './UniPageBody'
3
4
 
4
- export type UniPageBody = {
5
- /**
6
- * 页面可使用区域左上角纵坐标,单位为px
7
- */
8
- top: number,
9
- /**
10
- * 页面可使用区域右下角纵坐标,单位为px
11
- */
12
- bottom: number,
13
- /**
14
- * 页面可使用区域左上角横坐标,单位为px
15
- */
16
- left: number,
17
- /**
18
- * 页面可使用区域右下角横坐标,单位为px
19
- */
20
- right: number,
21
- /**
22
- * 页面可使用区域的宽度,单位为px
23
- */
24
- width: number,
25
- /**
26
- * 页面可使用区域的高度,单位为px
27
- */
28
- height: number
29
- }
5
+ // export type UniPageBody = {
6
+ // /**
7
+ // * 页面可使用区域左上角纵坐标,单位为px
8
+ // */
9
+ // top: number,
10
+ // /**
11
+ // * 页面可使用区域右下角纵坐标,单位为px
12
+ // */
13
+ // bottom: number,
14
+ // /**
15
+ // * 页面可使用区域左上角横坐标,单位为px
16
+ // */
17
+ // left: number,
18
+ // /**
19
+ // * 页面可使用区域右下角横坐标,单位为px
20
+ // */
21
+ // right: number,
22
+ // /**
23
+ // * 页面可使用区域的宽度,单位为px
24
+ // */
25
+ // width: number,
26
+ // /**
27
+ // * 页面可使用区域的高度,单位为px
28
+ // */
29
+ // height: number
30
+ // }
30
31
 
31
- export interface UniPage {
32
- /**
33
- * 页面的路由地址
34
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
35
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
36
- * @uniPlatform {
37
- * "app": {
38
- * "android": {
39
- * "osVer": "5.0",
40
- * "uniVer": "x",
41
- * "unixVer": "4.31"
42
- * },
43
- * "ios": {
44
- * "osVer": "x",
45
- * "uniVer": "x",
46
- * "unixVer": "4.31",
47
- * "unixUtsPlugin": "4.31"
48
- * },
49
- * "harmony": {
50
- * "osVer": "5.0.0",
51
- * "uniVer": "x",
52
- * "unixVer": "4.61"
53
- * }
54
- * },
55
- * "mp": {
56
- * "weixin": {
57
- * "hostVer": "√",
58
- * "uniVer": "x",
59
- * "unixVer": "x"
60
- * },
61
- * },
62
- * "web": {
63
- * "uniVer": "x",
64
- * "unixVer": "4.31"
65
- * }
66
- * }
67
- */
68
- route: string
69
- /**
70
- * 页面的路由参数信息
71
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
72
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
73
- * @uniPlatform {
74
- * "app": {
75
- * "android": {
76
- * "osVer": "5.0",
77
- * "uniVer": "x",
78
- * "unixVer": "4.31"
79
- * },
80
- * "ios": {
81
- * "osVer": "x",
82
- * "uniVer": "x",
83
- * "unixVer": "4.31",
84
- * "unixUtsPlugin": "4.31"
85
- * },
86
- * "harmony": {
87
- * "osVer": "x",
88
- * "uniVer": "x",
89
- * "unixVer": "x"
90
- * }
91
- * },
92
- * "mp": {
93
- * "weixin": {
94
- * "hostVer": "√",
95
- * "uniVer": "x",
96
- * "unixVer": "x"
97
- * },
98
- * },
99
- * "web": {
100
- * "uniVer": "x",
101
- * "unixVer": "4.31"
102
- * }
103
- * }
104
- */
105
- options: UTSJSONObject
106
- /**
107
- * UniPage vue 实例对象
108
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
109
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
110
- * @uniPlatform {
111
- * "app": {
112
- * "android": {
113
- * "osVer": "5.0",
114
- * "uniVer": "x",
115
- * "unixVer": "4.31"
116
- * },
117
- * "ios": {
118
- * "osVer": "x",
119
- * "uniVer": "x",
120
- * "unixVer": "4.31",
121
- * "unixUtsPlugin": "x"
122
- * },
123
- * "harmony": {
124
- * "osVer": "5.0.0",
125
- * "uniVer": "x",
126
- * "unixVer": "4.61"
127
- * }
128
- * },
129
- * "mp": {
130
- * "weixin": {
131
- * "hostVer": "√",
132
- * "uniVer": "x",
133
- * "unixVer": "x"
134
- * },
135
- * },
136
- * "web": {
137
- * "uniVer": "x",
138
- * "unixVer": "4.31"
139
- * }
140
- * }
141
- */
142
- vm?: ComponentPublicInstance | null
143
- /**
144
- * UniPage vue 实例对象
145
- * @deprecated 已废弃,仅为了向下兼容保留
146
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
147
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
148
- * @uniPlatform {
149
- * "app": {
150
- * "android": {
151
- * "osVer": "5.0",
152
- * "uniVer": "x",
153
- * "unixVer": "4.31"
154
- * },
155
- * "ios": {
156
- * "osVer": "x",
157
- * "uniVer": "x",
158
- * "unixVer": "4.31",
159
- * "unixUtsPlugin": "x"
160
- * },
161
- * "harmony": {
162
- * "osVer": "5.0.0",
163
- * "uniVer": "x",
164
- * "unixVer": "4.61"
165
- * }
166
- * },
167
- * "mp": {
168
- * "weixin": {
169
- * "hostVer": "√",
170
- * "uniVer": "x",
171
- * "unixVer": "x"
172
- * },
173
- * },
174
- * "web": {
175
- * "uniVer": "x",
176
- * "unixVer": "4.31"
177
- * }
178
- * }
179
- */
180
- $vm?: ComponentPublicInstance | null
181
- /**
182
- * UniPage 页面可使用区域信息,单位为px
183
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
184
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
185
- * @uniPlatform {
186
- * "app": {
187
- * "android": {
188
- * "osVer": "5.0",
189
- * "uniVer": "x",
190
- * "unixVer": "4.51"
191
- * },
192
- * "ios": {
193
- * "osVer": "x",
194
- * "uniVer": "x",
195
- * "unixVer": "4.51"
196
- * },
197
- * "harmony": {
198
- * "osVer": "5.0.0",
199
- * "uniVer": "x",
200
- * "unixVer": "4.61"
201
- * }
202
- * },
203
- * "mp": {
204
- * "weixin": {
205
- * "hostVer": "√",
206
- * "uniVer": "x",
207
- * "unixVer": "x"
208
- * },
209
- * },
210
- * "web": {
211
- * "uniVer": "x",
212
- * "unixVer": "4.51"
213
- * }
214
- * }
215
- */
216
- pageBody: UniPageBody
217
- /**
218
- * UniPage 安全区域插入位置(与屏幕边界的距离)信息
219
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
220
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
221
- * @uniPlatform {
222
- * "app": {
223
- * "android": {
224
- * "osVer": "5.0",
225
- * "uniVer": "x",
226
- * "unixVer": "4.51"
227
- * },
228
- * "ios": {
229
- * "osVer": "x",
230
- * "uniVer": "x",
231
- * "unixVer": "4.51"
232
- * },
233
- * "harmony": {
234
- * "osVer": "5.0.0",
235
- * "uniVer": "x",
236
- * "unixVer": "4.61"
237
- * }
238
- * },
239
- * "mp": {
240
- * "weixin": {
241
- * "hostVer": "√",
242
- * "uniVer": "x",
243
- * "unixVer": "x"
244
- * },
245
- * },
246
- * "web": {
247
- * "uniVer": "x",
248
- * "unixVer": "4.51"
249
- * }
250
- * }
251
- */
252
- safeAreaInsets: UniSafeAreaInsets
253
- /**
254
- * 已经进入全屏状态的元素
255
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
256
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
257
- * @uniPlatform {
258
- * "app": {
259
- * "android": {
260
- * "osVer": "5.0",
261
- * "uniVer": "x",
262
- * "unixVer": "4.61"
263
- * },
264
- * "ios": {
265
- * "osVer": "x",
266
- * "uniVer": "x",
267
- * "unixVer": "4.61"
268
- * },
269
- * "harmony": {
270
- * "osVer": "5.0.0",
271
- * "uniVer": "x",
272
- * "unixVer": "4.61"
273
- * }
274
- * },
275
- * "mp": {
276
- * "weixin": {
277
- * "hostVer": "√",
278
- * "uniVer": "x",
279
- * "unixVer": "x"
280
- * },
281
- * },
282
- * "web": {
283
- * "uniVer": "x",
284
- * "unixVer": "x"
285
- * }
286
- * }
287
- */
288
- readonly fullscreenElement?: UniElement | null
289
- /**
290
- * 页面窗口宽度
291
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
292
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
293
- * @uniPlatform {
294
- * "app": {
295
- * "android": {
296
- * "osVer": "5.0",
297
- * "uniVer": "x",
298
- * "unixVer": "4.61"
299
- * },
300
- * "ios": {
301
- * "osVer": "x",
302
- * "unixVer": "4.61",
303
- * "unixUtsPlugin": "4.61"
304
- * },
305
- * "harmony": {
306
- * "osVer": "x",
307
- * "uniVer": "x",
308
- * "unixVer": "4.63"
309
- * }
310
- * },
311
- * "mp": {
312
- * "weixin": {
313
- * "hostVer": "√",
314
- * "uniVer": "x",
315
- * "unixVer": "4.63"
316
- * },
317
- * },
318
- * "web": {
319
- * "uniVer": "x",
320
- * "unixVer": "4.63"
321
- * }
322
- * }
323
- */
324
- readonly width: number
325
- /**
326
- * 页面窗口高度
327
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
328
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
329
- * @uniPlatform {
330
- * "app": {
331
- * "android": {
332
- * "osVer": "5.0",
333
- * "uniVer": "x",
334
- * "unixVer": "4.61"
335
- * },
336
- * "ios": {
337
- * "osVer": "x",
338
- * "unixVer": "4.61",
339
- * "unixUtsPlugin": "4.61"
340
- * },
341
- * "harmony": {
342
- * "osVer": "x",
343
- * "uniVer": "x",
344
- * "unixVer": "4.63"
345
- * }
346
- * },
347
- * "mp": {
348
- * "weixin": {
349
- * "hostVer": "√",
350
- * "uniVer": "x",
351
- * "unixVer": "4.63"
352
- * },
353
- * },
354
- * "web": {
355
- * "uniVer": "x",
356
- * "unixVer": "4.63"
357
- * }
358
- * }
359
- */
360
- readonly height: number
361
- /**
362
- * 页面状态栏高度
363
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
364
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
365
- * @uniPlatform {
366
- * "app": {
367
- * "android": {
368
- * "osVer": "5.0",
369
- * "uniVer": "x",
370
- * "unixVer": "4.61"
371
- * },
372
- * "ios": {
373
- * "osVer": "x",
374
- * "unixVer": "4.61",
375
- * "unixUtsPlugin": "4.61"
376
- * },
377
- * "harmony": {
378
- * "osVer": "x",
379
- * "uniVer": "x",
380
- * "unixVer": "4.63"
381
- * }
382
- * },
383
- * "mp": {
384
- * "weixin": {
385
- * "hostVer": "√",
386
- * "uniVer": "x",
387
- * "unixVer": "4.63"
388
- * },
389
- * },
390
- * "web": {
391
- * "uniVer": "x",
392
- * "unixVer": "4.63"
393
- * }
394
- * }
395
- */
396
- readonly statusBarHeight: number
397
- /**
398
- * 获取当前页面样式。详细属性配置请参考PageStyle
399
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle
400
- * @uniPlatform {
401
- * "app": {
402
- * "android": {
403
- * "osVer": "5.0",
404
- * "uniVer": "x",
405
- * "unixVer": "4.31"
406
- * },
407
- * "ios": {
408
- * "osVer": "x",
409
- * "uniVer": "x",
410
- * "unixVer": "4.31",
411
- * "unixUtsPlugin": "4.31"
412
- * },
413
- * "harmony": {
414
- * "osVer": "5.0.0",
415
- * "uniVer": "x",
416
- * "unixVer": "4.61"
417
- * }
418
- * },
419
- * "mp": {
420
- * "weixin": {
421
- * "hostVer": "√",
422
- * "uniVer": "x",
423
- * "unixVer": "x"
424
- * },
425
- * },
426
- * "web": {
427
- * "uniVer": "x",
428
- * "unixVer": "4.31"
429
- * }
430
- * }
431
- */
432
- getPageStyle(): UTSJSONObject
433
- /**
434
- * 获取当前页面样式。详细属性配置请参考PageStyle
435
- * @deprecated 已废弃,仅为了向下兼容保留
436
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle-2
437
- * @uniPlatform {
438
- * "app": {
439
- * "android": {
440
- * "osVer": "5.0",
441
- * "uniVer": "x",
442
- * "unixVer": "4.13"
443
- * },
444
- * "ios": {
445
- * "osVer": "x",
446
- * "uniVer": "x",
447
- * "unixVer": "4.13"
448
- * },
449
- * "harmony": {
450
- * "osVer": "5.0.0",
451
- * "uniVer": "x",
452
- * "unixVer": "4.61"
453
- * }
454
- * },
455
- * "mp": {
456
- * "weixin": {
457
- * "hostVer": "√",
458
- * "uniVer": "x",
459
- * "unixVer": "x"
460
- * },
461
- * },
462
- * "web": {
463
- * "uniVer": "x",
464
- * "unixVer": "4.13"
465
- * }
466
- * }
467
- */
468
- $getPageStyle(): UTSJSONObject
469
- /**
470
- * 设置当前页面样式。详细属性配置请参考PageStyle
471
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle
472
- * @uniPlatform {
473
- * "app": {
474
- * "android": {
475
- * "osVer": "5.0",
476
- * "uniVer": "x",
477
- * "unixVer": "4.31"
478
- * },
479
- * "ios": {
480
- * "osVer": "x",
481
- * "uniVer": "x",
482
- * "unixVer": "4.31",
483
- * "unixUtsPlugin": "4.31"
484
- * },
485
- * "harmony": {
486
- * "osVer": "5.0.0",
487
- * "uniVer": "x",
488
- * "unixVer": "4.61"
489
- * }
490
- * },
491
- * "mp": {
492
- * "weixin": {
493
- * "hostVer": "√",
494
- * "uniVer": "x",
495
- * "unixVer": "x"
496
- * },
497
- * },
498
- * "web": {
499
- * "uniVer": "x",
500
- * "unixVer": "4.31"
501
- * }
502
- * }
503
- */
504
- setPageStyle(style: UTSJSONObject): void
505
- /**
506
- * 设置当前页面样式。详细属性配置请参考PageStyle
507
- * @deprecated 已废弃,仅为了向下兼容保留
508
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle-2
509
- * @uniPlatform {
510
- * "app": {
511
- * "android": {
512
- * "osVer": "5.0",
513
- * "uniVer": "x",
514
- * "unixVer": "4.13"
515
- * },
516
- * "ios": {
517
- * "osVer": "x",
518
- * "uniVer": "x",
519
- * "unixVer": "4.13"
520
- * },
521
- * "harmony": {
522
- * "osVer": "5.0.0",
523
- * "uniVer": "x",
524
- * "unixVer": "4.61"
525
- * }
526
- * },
527
- * "mp": {
528
- * "weixin": {
529
- * "hostVer": "√",
530
- * "uniVer": "x",
531
- * "unixVer": "x"
532
- * },
533
- * },
534
- * "web": {
535
- * "uniVer": "x",
536
- * "unixVer": "4.13"
537
- * }
538
- * }
539
- */
540
- $setPageStyle(style: UTSJSONObject): void
541
- /**
542
- * 用于 dialogPage 获取所属父页面
543
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
544
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
545
- * @uniPlatform {
546
- * "app": {
547
- * "android": {
548
- * "osVer": "5.0",
549
- * "uniVer": "x",
550
- * "unixVer": "4.31"
551
- * },
552
- * "ios": {
553
- * "osVer": "x",
554
- * "uniVer": "x",
555
- * "unixVer": "4.31",
556
- * "unixUtsPlugin": "4.31"
557
- * },
558
- * "harmony": {
559
- * "osVer": "5.0.0",
560
- * "uniVer": "x",
561
- * "unixVer": "4.61"
562
- * }
563
- * },
564
- * "mp": {
565
- * "weixin": {
566
- * "hostVer": "√",
567
- * "uniVer": "x",
568
- * "unixVer": "x"
569
- * },
570
- * },
571
- * "web": {
572
- * "uniVer": "x",
573
- * "unixVer": "4.31"
574
- * }
575
- * }
576
- */
577
- getParentPage(): UniPage | null
578
- /**
579
- * 获取当前页面的 dialog 子页面集合
580
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
581
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
582
- * @uniPlatform {
583
- * "app": {
584
- * "android": {
585
- * "osVer": "5.0",
586
- * "uniVer": "x",
587
- * "unixVer": "4.31"
588
- * },
589
- * "ios": {
590
- * "osVer": "x",
591
- * "uniVer": "x",
592
- * "unixVer": "4.31",
593
- * "unixUtsPlugin": "4.31"
594
- * },
595
- * "harmony": {
596
- * "osVer": "5.0.0",
597
- * "uniVer": "x",
598
- * "unixVer": "4.61"
599
- * }
600
- * },
601
- * "mp": {
602
- * "weixin": {
603
- * "hostVer": "√",
604
- * "uniVer": "x",
605
- * "unixVer": "x"
606
- * },
607
- * },
608
- * "web": {
609
- * "uniVer": "x",
610
- * "unixVer": "4.31"
611
- * }
612
- * }
613
- */
614
- getDialogPages(): UniPage[]
615
- /**
616
- * 返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\
617
- * 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
618
- * ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
619
- *
620
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
621
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
622
- * @uniPlatform {
623
- * "app": {
624
- * "android": {
625
- * "osVer": "5.0",
626
- * "uniVer": "x",
627
- * "unixVer": "4.31"
628
- * },
629
- * "ios": {
630
- * "osVer": "x",
631
- * "uniVer": "x",
632
- * "unixVer": "4.31"
633
- * },
634
- * "harmony": {
635
- * "osVer": "5.0.0",
636
- * "uniVer": "x",
637
- * "unixVer": "4.61"
638
- * }
639
- * },
640
- * "mp": {
641
- * "weixin": {
642
- * "hostVer": "√",
643
- * "uniVer": "x",
644
- * "unixVer": "x"
645
- * },
646
- * },
647
- * "web": {
648
- * "uniVer": "x",
649
- * "unixVer": "4.31"
650
- * }
651
- * }
652
- */
653
- getElementById(id: string.IDString | string): UniElement | null
654
- /**
655
- * 返回 android 平台页面根 view
656
- *
657
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
658
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
659
- * @uniPlatform {
660
- * "app": {
661
- * "android": {
662
- * "osVer": "5.0",
663
- * "uniVer": "x",
664
- * "unixVer": "4.31"
665
- * },
666
- * "ios": {
667
- * "osVer": "x",
668
- * "uniVer": "x",
669
- * "unixVer": "x"
670
- * },
671
- * "harmony": {
672
- * "osVer": "x",
673
- * "uniVer": "x",
674
- * "unixVer": "x"
675
- * }
676
- * },
677
- * "mp": {
678
- * "weixin": {
679
- * "hostVer": "√",
680
- * "uniVer": "x",
681
- * "unixVer": "x"
682
- * },
683
- * },
684
- * "web": {
685
- * "uniVer": "x",
686
- * "unixVer": "x"
687
- * }
688
- * }
689
- */
690
- getAndroidView(): View | null
691
- /**
692
- * 返回 android 平台加载页面内容的Activity
693
- *
694
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidactivity
695
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidactivity
696
- * @uniPlatform {
697
- * "app": {
698
- * "android": {
699
- * "osVer": "5.0",
700
- * "uniVer": "x",
701
- * "unixVer": "4.61"
702
- * },
703
- * "ios": {
704
- * "osVer": "x",
705
- * "uniVer": "x",
706
- * "unixVer": "x"
707
- * },
708
- * "harmony": {
709
- * "osVer": "x",
710
- * "uniVer": "x",
711
- * "unixVer": "x"
712
- * }
713
- * },
714
- * "mp": {
715
- * "weixin": {
716
- * "hostVer": "x",
717
- * "uniVer": "x",
718
- * "unixVer": "x"
719
- * },
720
- * },
721
- * "web": {
722
- * "uniVer": "x",
723
- * "unixVer": "x"
724
- * }
725
- * }
726
- */
727
- getAndroidActivity(): Activity | null
728
- /**
729
- * 返回 ios 平台页面根 view
730
- *
731
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
732
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
733
- * @uniPlatform {
734
- * "app": {
735
- * "android": {
736
- * "osVer": "x",
737
- * "uniVer": "x",
738
- * "unixVer": "x"
739
- * },
740
- * "ios": {
741
- * "osVer": "12",
742
- * "uniVer": "x",
743
- * "unixVer": "x",
744
- * "unixUtsPlugin": "4.33"
745
- * },
746
- * "harmony": {
747
- * "osVer": "x",
748
- * "uniVer": "x",
749
- * "unixVer": "x"
750
- * }
751
- * },
752
- * "mp": {
753
- * "weixin": {
754
- * "hostVer": "√",
755
- * "uniVer": "x",
756
- * "unixVer": "x"
757
- * },
758
- * },
759
- * "web": {
760
- * "uniVer": "x",
761
- * "unixVer": "x"
762
- * }
763
- * }
764
- */
765
- getIOSView(): UIView | null
766
- /**
767
- * 返回页面 HTML Element 对象
768
- *
769
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
770
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
771
- * @uniPlatform {
772
- * "app": {
773
- * "android": {
774
- * "osVer": "5.0",
775
- * "uniVer": "x",
776
- * "unixVer": "x"
777
- * },
778
- * "ios": {
779
- * "osVer": "x",
780
- * "uniVer": "x",
781
- * "unixVer": "x"
782
- * },
783
- * "harmony": {
784
- * "osVer": "x",
785
- * "uniVer": "x",
786
- * "unixVer": "x"
787
- * }
788
- * },
789
- * "mp": {
790
- * "weixin": {
791
- * "hostVer": "√",
792
- * "uniVer": "x",
793
- * "unixVer": "x"
794
- * },
795
- * },
796
- * "web": {
797
- * "uniVer": "x",
798
- * "unixVer": "4.31"
799
- * }
800
- * }
801
- */
802
- getHTMLElement(): UniElement | null
32
+ declare global {
803
33
 
804
- /**
805
- * 将当前在全屏模式下显示的元素退出全屏模式,恢复全屏之前的状态
806
- *
807
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#exitfullscreen
808
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#exitfullscreen
809
- * @uniPlatform {
810
- * "app": {
811
- * "android": {
812
- * "osVer": "5.0",
813
- * "uniVer": "x",
814
- * "unixVer": "4.61"
815
- * },
816
- * "ios": {
817
- * "osVer": "x",
818
- * "uniVer": "x",
819
- * "unixVer": "x"
820
- * },
821
- * "harmony": {
822
- * "osVer": "5.0.0",
823
- * "uniVer": "x",
824
- * "unixVer": "4.61"
825
- * }
826
- * },
827
- * "mp": {
828
- * "weixin": {
829
- * "hostVer": "√",
830
- * "uniVer": "x",
831
- * "unixVer": "x"
832
- * },
833
- * },
834
- * "web": {
835
- * "uniVer": "x",
836
- * "unixVer": "x"
837
- * }
838
- * }
839
- */
840
- exitFullscreen(options: ExitFullscreenOptions|null) : void
34
+ interface UniPage {
35
+ /**
36
+ * 页面的路由地址
37
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
38
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
39
+ * @uniPlatform {
40
+ * "app": {
41
+ * "android": {
42
+ * "osVer": "5.0",
43
+ * "uniVer": "x",
44
+ * "unixVer": "4.31"
45
+ * },
46
+ * "ios": {
47
+ * "osVer": "x",
48
+ * "uniVer": "x",
49
+ * "unixVer": "4.31",
50
+ * "unixUtsPlugin": "4.31"
51
+ * },
52
+ * "harmony": {
53
+ * "osVer": "5.0.0",
54
+ * "uniVer": "x",
55
+ * "unixVer": "4.61"
56
+ * }
57
+ * },
58
+ * "mp": {
59
+ * "weixin": {
60
+ * "hostVer": "",
61
+ * "uniVer": "x",
62
+ * "unixVer": "x"
63
+ * },
64
+ * },
65
+ * "web": {
66
+ * "uniVer": "x",
67
+ * "unixVer": "4.31"
68
+ * }
69
+ * }
70
+ */
71
+ route: string
72
+ /**
73
+ * 页面的路由参数信息
74
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
75
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
76
+ * @uniPlatform {
77
+ * "app": {
78
+ * "android": {
79
+ * "osVer": "5.0",
80
+ * "uniVer": "x",
81
+ * "unixVer": "4.31"
82
+ * },
83
+ * "ios": {
84
+ * "osVer": "x",
85
+ * "uniVer": "x",
86
+ * "unixVer": "4.31",
87
+ * "unixUtsPlugin": "4.31"
88
+ * },
89
+ * "harmony": {
90
+ * "osVer": "x",
91
+ * "uniVer": "x",
92
+ * "unixVer": "x"
93
+ * }
94
+ * },
95
+ * "mp": {
96
+ * "weixin": {
97
+ * "hostVer": "√",
98
+ * "uniVer": "x",
99
+ * "unixVer": "x"
100
+ * },
101
+ * },
102
+ * "web": {
103
+ * "uniVer": "x",
104
+ * "unixVer": "4.31"
105
+ * }
106
+ * }
107
+ */
108
+ options: UTSJSONObject
109
+ /**
110
+ * UniPage vue 实例对象
111
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
112
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
113
+ * @uniPlatform {
114
+ * "app": {
115
+ * "android": {
116
+ * "osVer": "5.0",
117
+ * "uniVer": "x",
118
+ * "unixVer": "4.31"
119
+ * },
120
+ * "ios": {
121
+ * "osVer": "x",
122
+ * "uniVer": "x",
123
+ * "unixVer": "4.31",
124
+ * "unixUtsPlugin": "x"
125
+ * },
126
+ * "harmony": {
127
+ * "osVer": "5.0.0",
128
+ * "uniVer": "x",
129
+ * "unixVer": "4.61"
130
+ * }
131
+ * },
132
+ * "mp": {
133
+ * "weixin": {
134
+ * "hostVer": "√",
135
+ * "uniVer": "x",
136
+ * "unixVer": "x"
137
+ * },
138
+ * },
139
+ * "web": {
140
+ * "uniVer": "x",
141
+ * "unixVer": "4.31"
142
+ * }
143
+ * }
144
+ */
145
+ vm?: ComponentPublicInstance | null
146
+ /**
147
+ * UniPage vue 实例对象
148
+ * @deprecated 已废弃,仅为了向下兼容保留
149
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
150
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
151
+ * @uniPlatform {
152
+ * "app": {
153
+ * "android": {
154
+ * "osVer": "5.0",
155
+ * "uniVer": "x",
156
+ * "unixVer": "4.31"
157
+ * },
158
+ * "ios": {
159
+ * "osVer": "x",
160
+ * "uniVer": "x",
161
+ * "unixVer": "4.31",
162
+ * "unixUtsPlugin": "x"
163
+ * },
164
+ * "harmony": {
165
+ * "osVer": "5.0.0",
166
+ * "uniVer": "x",
167
+ * "unixVer": "4.61"
168
+ * }
169
+ * },
170
+ * "mp": {
171
+ * "weixin": {
172
+ * "hostVer": "√",
173
+ * "uniVer": "x",
174
+ * "unixVer": "x"
175
+ * },
176
+ * },
177
+ * "web": {
178
+ * "uniVer": "x",
179
+ * "unixVer": "4.31"
180
+ * }
181
+ * }
182
+ */
183
+ $vm?: ComponentPublicInstance | null
184
+ /**
185
+ * UniPage 页面可使用区域信息,单位为px
186
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
187
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
188
+ * @uniPlatform {
189
+ * "app": {
190
+ * "android": {
191
+ * "osVer": "5.0",
192
+ * "uniVer": "x",
193
+ * "unixVer": "4.51"
194
+ * },
195
+ * "ios": {
196
+ * "osVer": "x",
197
+ * "uniVer": "x",
198
+ * "unixVer": "4.51"
199
+ * },
200
+ * "harmony": {
201
+ * "osVer": "5.0.0",
202
+ * "uniVer": "x",
203
+ * "unixVer": "4.61"
204
+ * }
205
+ * },
206
+ * "mp": {
207
+ * "weixin": {
208
+ * "hostVer": "√",
209
+ * "uniVer": "x",
210
+ * "unixVer": "x"
211
+ * },
212
+ * },
213
+ * "web": {
214
+ * "uniVer": "x",
215
+ * "unixVer": "4.51"
216
+ * }
217
+ * }
218
+ */
219
+ pageBody: UniPageBody
220
+ /**
221
+ * UniPage 安全区域插入位置(与屏幕边界的距离)信息
222
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
223
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
224
+ * @uniPlatform {
225
+ * "app": {
226
+ * "android": {
227
+ * "osVer": "5.0",
228
+ * "uniVer": "x",
229
+ * "unixVer": "4.51"
230
+ * },
231
+ * "ios": {
232
+ * "osVer": "x",
233
+ * "uniVer": "x",
234
+ * "unixVer": "4.51"
235
+ * },
236
+ * "harmony": {
237
+ * "osVer": "5.0.0",
238
+ * "uniVer": "x",
239
+ * "unixVer": "4.61"
240
+ * }
241
+ * },
242
+ * "mp": {
243
+ * "weixin": {
244
+ * "hostVer": "√",
245
+ * "uniVer": "x",
246
+ * "unixVer": "x"
247
+ * },
248
+ * },
249
+ * "web": {
250
+ * "uniVer": "x",
251
+ * "unixVer": "4.51"
252
+ * }
253
+ * }
254
+ */
255
+ safeAreaInsets: UniSafeAreaInsets
256
+ /**
257
+ * 已经进入全屏状态的元素
258
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
259
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
260
+ * @uniPlatform {
261
+ * "app": {
262
+ * "android": {
263
+ * "osVer": "5.0",
264
+ * "uniVer": "x",
265
+ * "unixVer": "4.61"
266
+ * },
267
+ * "ios": {
268
+ * "osVer": "x",
269
+ * "uniVer": "x",
270
+ * "unixVer": "4.61"
271
+ * },
272
+ * "harmony": {
273
+ * "osVer": "5.0.0",
274
+ * "uniVer": "x",
275
+ * "unixVer": "4.61"
276
+ * }
277
+ * },
278
+ * "mp": {
279
+ * "weixin": {
280
+ * "hostVer": "√",
281
+ * "uniVer": "x",
282
+ * "unixVer": "x"
283
+ * },
284
+ * },
285
+ * "web": {
286
+ * "uniVer": "x",
287
+ * "unixVer": "x"
288
+ * }
289
+ * }
290
+ */
291
+ readonly fullscreenElement?: UniElement | null
292
+ /**
293
+ * 页面窗口宽度
294
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
295
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
296
+ * @uniPlatform {
297
+ * "app": {
298
+ * "android": {
299
+ * "osVer": "5.0",
300
+ * "uniVer": "x",
301
+ * "unixVer": "4.61"
302
+ * },
303
+ * "ios": {
304
+ * "osVer": "x",
305
+ * "unixVer": "4.61",
306
+ * "unixUtsPlugin": "4.61"
307
+ * },
308
+ * "harmony": {
309
+ * "osVer": "x",
310
+ * "uniVer": "x",
311
+ * "unixVer": "4.63"
312
+ * }
313
+ * },
314
+ * "mp": {
315
+ * "weixin": {
316
+ * "hostVer": "√",
317
+ * "uniVer": "x",
318
+ * "unixVer": "4.63"
319
+ * },
320
+ * },
321
+ * "web": {
322
+ * "uniVer": "x",
323
+ * "unixVer": "4.63"
324
+ * }
325
+ * }
326
+ */
327
+ readonly width: number
328
+ /**
329
+ * 页面窗口高度
330
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
331
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
332
+ * @uniPlatform {
333
+ * "app": {
334
+ * "android": {
335
+ * "osVer": "5.0",
336
+ * "uniVer": "x",
337
+ * "unixVer": "4.61"
338
+ * },
339
+ * "ios": {
340
+ * "osVer": "x",
341
+ * "unixVer": "4.61",
342
+ * "unixUtsPlugin": "4.61"
343
+ * },
344
+ * "harmony": {
345
+ * "osVer": "x",
346
+ * "uniVer": "x",
347
+ * "unixVer": "4.63"
348
+ * }
349
+ * },
350
+ * "mp": {
351
+ * "weixin": {
352
+ * "hostVer": "√",
353
+ * "uniVer": "x",
354
+ * "unixVer": "4.63"
355
+ * },
356
+ * },
357
+ * "web": {
358
+ * "uniVer": "x",
359
+ * "unixVer": "4.63"
360
+ * }
361
+ * }
362
+ */
363
+ readonly height: number
364
+ /**
365
+ * 页面状态栏高度
366
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
367
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
368
+ * @uniPlatform {
369
+ * "app": {
370
+ * "android": {
371
+ * "osVer": "5.0",
372
+ * "uniVer": "x",
373
+ * "unixVer": "4.61"
374
+ * },
375
+ * "ios": {
376
+ * "osVer": "x",
377
+ * "unixVer": "4.61",
378
+ * "unixUtsPlugin": "4.61"
379
+ * },
380
+ * "harmony": {
381
+ * "osVer": "x",
382
+ * "uniVer": "x",
383
+ * "unixVer": "4.63"
384
+ * }
385
+ * },
386
+ * "mp": {
387
+ * "weixin": {
388
+ * "hostVer": "√",
389
+ * "uniVer": "x",
390
+ * "unixVer": "4.63"
391
+ * },
392
+ * },
393
+ * "web": {
394
+ * "uniVer": "x",
395
+ * "unixVer": "4.63"
396
+ * }
397
+ * }
398
+ */
399
+ readonly statusBarHeight: number
400
+ /**
401
+ * 获取当前页面样式。详细属性配置请参考PageStyle
402
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle
403
+ * @uniPlatform {
404
+ * "app": {
405
+ * "android": {
406
+ * "osVer": "5.0",
407
+ * "uniVer": "x",
408
+ * "unixVer": "4.31"
409
+ * },
410
+ * "ios": {
411
+ * "osVer": "x",
412
+ * "uniVer": "x",
413
+ * "unixVer": "4.31",
414
+ * "unixUtsPlugin": "4.31"
415
+ * },
416
+ * "harmony": {
417
+ * "osVer": "5.0.0",
418
+ * "uniVer": "x",
419
+ * "unixVer": "4.61"
420
+ * }
421
+ * },
422
+ * "mp": {
423
+ * "weixin": {
424
+ * "hostVer": "√",
425
+ * "uniVer": "x",
426
+ * "unixVer": "x"
427
+ * },
428
+ * },
429
+ * "web": {
430
+ * "uniVer": "x",
431
+ * "unixVer": "4.31"
432
+ * }
433
+ * }
434
+ */
435
+ getPageStyle(): UTSJSONObject
436
+ /**
437
+ * 获取当前页面样式。详细属性配置请参考PageStyle
438
+ * @deprecated 已废弃,仅为了向下兼容保留
439
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle-2
440
+ * @uniPlatform {
441
+ * "app": {
442
+ * "android": {
443
+ * "osVer": "5.0",
444
+ * "uniVer": "x",
445
+ * "unixVer": "4.13"
446
+ * },
447
+ * "ios": {
448
+ * "osVer": "x",
449
+ * "uniVer": "x",
450
+ * "unixVer": "4.13"
451
+ * },
452
+ * "harmony": {
453
+ * "osVer": "5.0.0",
454
+ * "uniVer": "x",
455
+ * "unixVer": "4.61"
456
+ * }
457
+ * },
458
+ * "mp": {
459
+ * "weixin": {
460
+ * "hostVer": "√",
461
+ * "uniVer": "x",
462
+ * "unixVer": "x"
463
+ * },
464
+ * },
465
+ * "web": {
466
+ * "uniVer": "x",
467
+ * "unixVer": "4.13"
468
+ * }
469
+ * }
470
+ */
471
+ $getPageStyle(): UTSJSONObject
472
+ /**
473
+ * 设置当前页面样式。详细属性配置请参考PageStyle
474
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle
475
+ * @uniPlatform {
476
+ * "app": {
477
+ * "android": {
478
+ * "osVer": "5.0",
479
+ * "uniVer": "x",
480
+ * "unixVer": "4.31"
481
+ * },
482
+ * "ios": {
483
+ * "osVer": "x",
484
+ * "uniVer": "x",
485
+ * "unixVer": "4.31",
486
+ * "unixUtsPlugin": "4.31"
487
+ * },
488
+ * "harmony": {
489
+ * "osVer": "5.0.0",
490
+ * "uniVer": "x",
491
+ * "unixVer": "4.61"
492
+ * }
493
+ * },
494
+ * "mp": {
495
+ * "weixin": {
496
+ * "hostVer": "√",
497
+ * "uniVer": "x",
498
+ * "unixVer": "x"
499
+ * },
500
+ * },
501
+ * "web": {
502
+ * "uniVer": "x",
503
+ * "unixVer": "4.31"
504
+ * }
505
+ * }
506
+ */
507
+ setPageStyle(style: UTSJSONObject): void
508
+ /**
509
+ * 设置当前页面样式。详细属性配置请参考PageStyle
510
+ * @deprecated 已废弃,仅为了向下兼容保留
511
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#setpagestyle-2
512
+ * @uniPlatform {
513
+ * "app": {
514
+ * "android": {
515
+ * "osVer": "5.0",
516
+ * "uniVer": "x",
517
+ * "unixVer": "4.13"
518
+ * },
519
+ * "ios": {
520
+ * "osVer": "x",
521
+ * "uniVer": "x",
522
+ * "unixVer": "4.13"
523
+ * },
524
+ * "harmony": {
525
+ * "osVer": "5.0.0",
526
+ * "uniVer": "x",
527
+ * "unixVer": "4.61"
528
+ * }
529
+ * },
530
+ * "mp": {
531
+ * "weixin": {
532
+ * "hostVer": "√",
533
+ * "uniVer": "x",
534
+ * "unixVer": "x"
535
+ * },
536
+ * },
537
+ * "web": {
538
+ * "uniVer": "x",
539
+ * "unixVer": "4.13"
540
+ * }
541
+ * }
542
+ */
543
+ $setPageStyle(style: UTSJSONObject): void
544
+ /**
545
+ * 用于 dialogPage 获取所属父页面
546
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
547
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
548
+ * @uniPlatform {
549
+ * "app": {
550
+ * "android": {
551
+ * "osVer": "5.0",
552
+ * "uniVer": "x",
553
+ * "unixVer": "4.31"
554
+ * },
555
+ * "ios": {
556
+ * "osVer": "x",
557
+ * "uniVer": "x",
558
+ * "unixVer": "4.31",
559
+ * "unixUtsPlugin": "4.31"
560
+ * },
561
+ * "harmony": {
562
+ * "osVer": "5.0.0",
563
+ * "uniVer": "x",
564
+ * "unixVer": "4.61"
565
+ * }
566
+ * },
567
+ * "mp": {
568
+ * "weixin": {
569
+ * "hostVer": "√",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * },
574
+ * "web": {
575
+ * "uniVer": "x",
576
+ * "unixVer": "4.31"
577
+ * }
578
+ * }
579
+ */
580
+ getParentPage(): UniPage | null
581
+ /**
582
+ * 获取当前页面的 dialog 子页面集合
583
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
584
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
585
+ * @uniPlatform {
586
+ * "app": {
587
+ * "android": {
588
+ * "osVer": "5.0",
589
+ * "uniVer": "x",
590
+ * "unixVer": "4.31"
591
+ * },
592
+ * "ios": {
593
+ * "osVer": "x",
594
+ * "uniVer": "x",
595
+ * "unixVer": "4.31",
596
+ * "unixUtsPlugin": "4.31"
597
+ * },
598
+ * "harmony": {
599
+ * "osVer": "5.0.0",
600
+ * "uniVer": "x",
601
+ * "unixVer": "4.61"
602
+ * }
603
+ * },
604
+ * "mp": {
605
+ * "weixin": {
606
+ * "hostVer": "√",
607
+ * "uniVer": "x",
608
+ * "unixVer": "x"
609
+ * },
610
+ * },
611
+ * "web": {
612
+ * "uniVer": "x",
613
+ * "unixVer": "4.31"
614
+ * }
615
+ * }
616
+ */
617
+ getDialogPages(): UniPage[]
618
+ /**
619
+ * 返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\
620
+ * 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
621
+ * ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
622
+ *
623
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
624
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getelementbyid
625
+ * @uniPlatform {
626
+ * "app": {
627
+ * "android": {
628
+ * "osVer": "5.0",
629
+ * "uniVer": "x",
630
+ * "unixVer": "4.31"
631
+ * },
632
+ * "ios": {
633
+ * "osVer": "x",
634
+ * "uniVer": "x",
635
+ * "unixVer": "4.31"
636
+ * },
637
+ * "harmony": {
638
+ * "osVer": "5.0.0",
639
+ * "uniVer": "x",
640
+ * "unixVer": "4.61"
641
+ * }
642
+ * },
643
+ * "mp": {
644
+ * "weixin": {
645
+ * "hostVer": "√",
646
+ * "uniVer": "x",
647
+ * "unixVer": "x"
648
+ * },
649
+ * },
650
+ * "web": {
651
+ * "uniVer": "x",
652
+ * "unixVer": "4.31"
653
+ * }
654
+ * }
655
+ */
656
+ getElementById(id: string.IDString | string): UniElement | null
657
+ /**
658
+ * 返回 android 平台页面根 view
659
+ *
660
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
661
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidview
662
+ * @uniPlatform {
663
+ * "app": {
664
+ * "android": {
665
+ * "osVer": "5.0",
666
+ * "uniVer": "x",
667
+ * "unixVer": "4.31"
668
+ * },
669
+ * "ios": {
670
+ * "osVer": "x",
671
+ * "uniVer": "x",
672
+ * "unixVer": "x"
673
+ * },
674
+ * "harmony": {
675
+ * "osVer": "x",
676
+ * "uniVer": "x",
677
+ * "unixVer": "x"
678
+ * }
679
+ * },
680
+ * "mp": {
681
+ * "weixin": {
682
+ * "hostVer": "√",
683
+ * "uniVer": "x",
684
+ * "unixVer": "x"
685
+ * },
686
+ * },
687
+ * "web": {
688
+ * "uniVer": "x",
689
+ * "unixVer": "x"
690
+ * }
691
+ * }
692
+ */
693
+ getAndroidView(): View | null
694
+ /**
695
+ * 返回 android 平台加载页面内容的Activity
696
+ *
697
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidactivity
698
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getandroidactivity
699
+ * @uniPlatform {
700
+ * "app": {
701
+ * "android": {
702
+ * "osVer": "5.0",
703
+ * "uniVer": "x",
704
+ * "unixVer": "4.61"
705
+ * },
706
+ * "ios": {
707
+ * "osVer": "x",
708
+ * "uniVer": "x",
709
+ * "unixVer": "x"
710
+ * },
711
+ * "harmony": {
712
+ * "osVer": "x",
713
+ * "uniVer": "x",
714
+ * "unixVer": "x"
715
+ * }
716
+ * },
717
+ * "mp": {
718
+ * "weixin": {
719
+ * "hostVer": "x",
720
+ * "uniVer": "x",
721
+ * "unixVer": "x"
722
+ * },
723
+ * },
724
+ * "web": {
725
+ * "uniVer": "x",
726
+ * "unixVer": "x"
727
+ * }
728
+ * }
729
+ */
730
+ getAndroidActivity(): Activity | null
731
+ /**
732
+ * 返回 ios 平台页面根 view
733
+ *
734
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
735
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getiosview
736
+ * @uniPlatform {
737
+ * "app": {
738
+ * "android": {
739
+ * "osVer": "x",
740
+ * "uniVer": "x",
741
+ * "unixVer": "x"
742
+ * },
743
+ * "ios": {
744
+ * "osVer": "12",
745
+ * "uniVer": "x",
746
+ * "unixVer": "x",
747
+ * "unixUtsPlugin": "4.33"
748
+ * },
749
+ * "harmony": {
750
+ * "osVer": "x",
751
+ * "uniVer": "x",
752
+ * "unixVer": "x"
753
+ * }
754
+ * },
755
+ * "mp": {
756
+ * "weixin": {
757
+ * "hostVer": "√",
758
+ * "uniVer": "x",
759
+ * "unixVer": "x"
760
+ * },
761
+ * },
762
+ * "web": {
763
+ * "uniVer": "x",
764
+ * "unixVer": "x"
765
+ * }
766
+ * }
767
+ */
768
+ getIOSView(): UIView | null
769
+ /**
770
+ * 返回页面 HTML Element 对象
771
+ *
772
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
773
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#gethtmlelement
774
+ * @uniPlatform {
775
+ * "app": {
776
+ * "android": {
777
+ * "osVer": "5.0",
778
+ * "uniVer": "x",
779
+ * "unixVer": "x"
780
+ * },
781
+ * "ios": {
782
+ * "osVer": "x",
783
+ * "uniVer": "x",
784
+ * "unixVer": "x"
785
+ * },
786
+ * "harmony": {
787
+ * "osVer": "x",
788
+ * "uniVer": "x",
789
+ * "unixVer": "x"
790
+ * }
791
+ * },
792
+ * "mp": {
793
+ * "weixin": {
794
+ * "hostVer": "√",
795
+ * "uniVer": "x",
796
+ * "unixVer": "x"
797
+ * },
798
+ * },
799
+ * "web": {
800
+ * "uniVer": "x",
801
+ * "unixVer": "4.31"
802
+ * }
803
+ * }
804
+ */
805
+ getHTMLElement(): UniElement | null
841
806
 
842
- /**
843
- * 创建组件
844
- *
845
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#createelement
846
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#createelement
847
- * @uniPlatform {
848
- * "app": {
849
- * "android": {
850
- * "osVer": "5.0",
851
- * "uniVer": "x",
852
- * "unixVer": "x"
853
- * },
854
- * "ios": {
855
- * "osVer": "x",
856
- * "uniVer": "x",
857
- * "unixVer": "x"
858
- * },
859
- * "harmony": {
860
- * "osVer": "5.0.0",
861
- * "uniVer": "x",
862
- * "unixVer": "4.63"
863
- * }
864
- * },
865
- * "mp": {
866
- * "weixin": {
867
- * "hostVer": "√",
868
- * "uniVer": "x",
869
- * "unixVer": "x"
870
- * },
871
- * },
872
- * "web": {
873
- * "uniVer": "x",
874
- * "unixVer": "x"
875
- * }
876
- * }
877
- */
878
- createElement(tagName: string): UniElement
807
+ /**
808
+ * 将当前在全屏模式下显示的元素退出全屏模式,恢复全屏之前的状态
809
+ *
810
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#exitfullscreen
811
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#exitfullscreen
812
+ * @uniPlatform {
813
+ * "app": {
814
+ * "android": {
815
+ * "osVer": "5.0",
816
+ * "uniVer": "x",
817
+ * "unixVer": "4.61"
818
+ * },
819
+ * "ios": {
820
+ * "osVer": "x",
821
+ * "uniVer": "x",
822
+ * "unixVer": "x"
823
+ * },
824
+ * "harmony": {
825
+ * "osVer": "5.0.0",
826
+ * "uniVer": "x",
827
+ * "unixVer": "4.61"
828
+ * }
829
+ * },
830
+ * "mp": {
831
+ * "weixin": {
832
+ * "hostVer": "√",
833
+ * "uniVer": "x",
834
+ * "unixVer": "x"
835
+ * },
836
+ * },
837
+ * "web": {
838
+ * "uniVer": "x",
839
+ * "unixVer": "x"
840
+ * }
841
+ * }
842
+ */
843
+ exitFullscreen(options: ExitFullscreenOptions | null): void
879
844
 
880
- /**
881
- * @internal
882
- * 获取当前页面 dialogPage 创建的 API 弹框集合
883
- */
884
- $getSystemDialogPages(): UniPage[]
845
+ /**
846
+ * 创建组件
847
+ *
848
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#createelement
849
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#createelement
850
+ * @uniPlatform {
851
+ * "app": {
852
+ * "android": {
853
+ * "osVer": "5.0",
854
+ * "uniVer": "x",
855
+ * "unixVer": "x"
856
+ * },
857
+ * "ios": {
858
+ * "osVer": "x",
859
+ * "uniVer": "x",
860
+ * "unixVer": "x"
861
+ * },
862
+ * "harmony": {
863
+ * "osVer": "5.0.0",
864
+ * "uniVer": "x",
865
+ * "unixVer": "4.63"
866
+ * }
867
+ * },
868
+ * "mp": {
869
+ * "weixin": {
870
+ * "hostVer": "√",
871
+ * "uniVer": "x",
872
+ * "unixVer": "x"
873
+ * },
874
+ * },
875
+ * "web": {
876
+ * "uniVer": "x",
877
+ * "unixVer": "x"
878
+ * }
879
+ * }
880
+ */
881
+ createElement(tagName: string): UniElement
882
+
883
+ /**
884
+ * @internal
885
+ * web android harmony 获取当前页面 dialogPage 创建的 API 弹框集合
886
+ */
887
+ $getSystemDialogPages(): UniPage[]
888
+ /**
889
+ * @internal
890
+ * ios 获取当前页面 dialogPage 创建的 API 弹框集合
891
+ */
892
+ __$$getSystemDialogPages(): UniPage[]
893
+ }
885
894
  }
886
895
 
887
896
  export type ExitFullscreenSuccessCallback = () => void
888
897
 
889
- export type ExitFullscreenFailCallback = (error:FullscreenError) => void
898
+ export type ExitFullscreenFailCallback = (error: FullscreenError) => void
890
899
 
891
- export type ExitFullscreenCompleteCallback = (result:any|null) => void
900
+ export type ExitFullscreenCompleteCallback = (result: any | null) => void
892
901
 
893
902
  export type ExitFullscreenOptions = {
894
903
  /**
895
904
  * 成功回调
896
905
  */
897
- success: ExitFullscreenSuccessCallback|null
906
+ success: ExitFullscreenSuccessCallback | null
898
907
  /**
899
908
  * 失败回调
900
909
  */
901
- fail: ExitFullscreenFailCallback|null
910
+ fail: ExitFullscreenFailCallback | null
902
911
  /**
903
912
  * 完成回调
904
913
  */
905
- complete: ExitFullscreenCompleteCallback|null
914
+ complete: ExitFullscreenCompleteCallback | null
906
915
  }
907
916
 
908
917
  export interface UniNormalPage extends UniPage {