@dcloudio/uni-app-x 0.7.54 → 0.7.56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.54",
3
+ "version": "0.7.56",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -6,6 +6,8 @@ import { DOMRect } from "./DOMRect"
6
6
  import { UniCallbackWrapper } from "./UniCallbackWrapper"
7
7
  import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
8
8
  import { UniAnimation } from "./UniAnimation"
9
+ import { UniPage } from "./UniPage"
10
+ import { UniNativePage } from "./UniNativePage"
9
11
 
10
12
  export type GetBoundingClientRectAsyncSuccessCallback = (rect: DOMRect) => void
11
13
  export type GetBoundingClientRectAsyncFailCallback = () => void
@@ -74,6 +76,41 @@ export interface UniElement {
74
76
  * }
75
77
  */
76
78
  isConnected: boolean
79
+ /**
80
+ * 元素所属的页面对象
81
+ * @uniPlatform {
82
+ * "app": {
83
+ * "android": {
84
+ * "osVer": "5.0",
85
+ * "uniVer": "x",
86
+ * "unixVer": "x"
87
+ * },
88
+ * "ios": {
89
+ * "osVer": "12.0",
90
+ * "uniVer": "x",
91
+ * "unixVer": "x"
92
+ * "unixUtsPlugin": "x"
93
+ * },
94
+ * "harmony": {
95
+ * "osVer": "12",
96
+ * "uniVer": "x",
97
+ * "unixVer": "4.61"
98
+ * }
99
+ * },
100
+ * "mp": {
101
+ * "weixin": {
102
+ * "osVer": "x",
103
+ * "uniVer": "x",
104
+ * "unixVer": "x"
105
+ * }
106
+ * },
107
+ * "web": {
108
+ * "uniVer": "x",
109
+ * "unixVer": "4.0"
110
+ * }
111
+ * }
112
+ */
113
+ uniPage: UniNativePage
77
114
  /**
78
115
  * 只读属性 获取当前元素的的 class 属性的动态集合。
79
116
  * @uniPlatform {
@@ -1958,7 +1995,12 @@ export interface UniElement {
1958
1995
  * "osVer": "12.0",
1959
1996
  * "uniVer": "x",
1960
1997
  * "unixVer": "x"
1961
- * }
1998
+ * },
1999
+ * "harmony": {
2000
+ * "osVer": "5.0.0",
2001
+ * "uniVer": "x",
2002
+ * "unixVer": "4.61"
2003
+ * }
1962
2004
  * },
1963
2005
  * "mp": {
1964
2006
  * "weixin": {
@@ -2002,13 +2044,17 @@ export type RequestFullscreenOptions = {
2002
2044
  */
2003
2045
  "auto"|
2004
2046
  /**
2005
- *固定为竖屏
2047
+ *固定为横屏,会根据重力调整方向
2006
2048
  */
2007
2049
  "landscape"|
2008
2050
  /**
2009
2051
  *固定为反向横屏
2010
2052
  */
2011
- "landscape_inverted"|
2053
+ "landscape-secondary"|
2054
+ /**
2055
+ *固定为正向横屏
2056
+ */
2057
+ "landscape-primary"|
2012
2058
  /**
2013
2059
  *固定为竖屏
2014
2060
  */
@@ -15,7 +15,12 @@ import { DOMRect } from "./DOMRect";
15
15
  * "osVer": "12.0",
16
16
  * "uniVer": "x",
17
17
  * "unixVer": "4.18"
18
- * }
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "√",
21
+ * "uniVer": "x",
22
+ * "unixVer": "4.61"
23
+ * }
19
24
  * },
20
25
  * "mp": {
21
26
  * "weixin": {
@@ -107,7 +112,12 @@ export class UniResizeObserver {
107
112
  * "osVer": "12.0",
108
113
  * "uniVer": "x",
109
114
  * "unixVer": "4.18"
110
- * }
115
+ * },
116
+ * "harmony": {
117
+ * "osVer": "√",
118
+ * "uniVer": "x",
119
+ * "unixVer": "4.61"
120
+ * }
111
121
  * },
112
122
  * "mp": {
113
123
  * "weixin": {
@@ -194,7 +204,12 @@ export interface UniResizeObserverEntry {
194
204
  * "osVer": "12.0",
195
205
  * "uniVer": "x",
196
206
  * "unixVer": "4.18"
197
- * }
207
+ * },
208
+ * "harmony": {
209
+ * "osVer": "√",
210
+ * "uniVer": "x",
211
+ * "unixVer": "4.61"
212
+ * }
198
213
  * },
199
214
  * "mp": {
200
215
  * "weixin": {
@@ -265,7 +280,12 @@ export interface UniBorderBoxSize {
265
280
  * "osVer": "12.0",
266
281
  * "uniVer": "x",
267
282
  * "unixVer": "4.18"
268
- * }
283
+ * },
284
+ * "harmony": {
285
+ * "osVer": "√",
286
+ * "uniVer": "x",
287
+ * "unixVer": "4.61"
288
+ * }
269
289
  * },
270
290
  * "mp": {
271
291
  * "weixin": {
@@ -336,7 +356,12 @@ export interface UniContentBoxSize {
336
356
  * "osVer": "12.0",
337
357
  * "uniVer": "x",
338
358
  * "unixVer": "4.18"
339
- * }
359
+ * },
360
+ * "harmony": {
361
+ * "osVer": "√",
362
+ * "uniVer": "x",
363
+ * "unixVer": "4.61"
364
+ * }
340
365
  * },
341
366
  * "mp": {
342
367
  * "weixin": {
@@ -12,7 +12,6 @@
12
12
  /// <reference path='./lib/uni-createSelectorQuery/utssdk/global.d.ts' />
13
13
  /// <reference path='./lib/uni-createWebviewContext/utssdk/global.d.ts' />
14
14
  /// <reference path='./lib/uni-dialogPage/utssdk/global.d.ts' />
15
- /// <reference path='./lib/uni-document/utssdk/global.d.ts' />
16
15
  /// <reference path='./lib/uni-event/utssdk/global.d.ts' />
17
16
  /// <reference path='./lib/uni-exit/utssdk/global.d.ts' />
18
17
  /// <reference path='./lib/uni-file/utssdk/global.d.ts' />
@@ -12,7 +12,6 @@ export * from './lib/uni-createRequestPermissionListener/utssdk'
12
12
  export * from './lib/uni-createSelectorQuery/utssdk'
13
13
  export * from './lib/uni-createWebviewContext/utssdk'
14
14
  export * from './lib/uni-dialogPage/utssdk'
15
- export * from './lib/uni-document/utssdk'
16
15
  export * from './lib/uni-event/utssdk'
17
16
  export * from './lib/uni-exit/utssdk'
18
17
  export * from './lib/uni-file/utssdk'