@dcloudio/uni-app-x 0.7.53 → 0.7.55

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.53",
3
+ "version": "0.7.55",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -6,6 +6,7 @@ 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"
9
10
 
10
11
  export type GetBoundingClientRectAsyncSuccessCallback = (rect: DOMRect) => void
11
12
  export type GetBoundingClientRectAsyncFailCallback = () => void
@@ -39,6 +40,76 @@ export type GetBoundingClientRectAsyncOptions = {
39
40
  * }
40
41
  */
41
42
  export interface UniElement {
43
+ /**
44
+ * 只读属性 节点是否与 DOM 树连接
45
+ * @uniPlatform {
46
+ * "app": {
47
+ * "android": {
48
+ * "osVer": "5.0",
49
+ * "uniVer": "x",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "ios": {
53
+ * "osVer": "12.0",
54
+ * "uniVer": "x",
55
+ * "unixVer": "x"
56
+ * "unixUtsPlugin": "x"
57
+ * },
58
+ * "harmony": {
59
+ * "osVer": "12",
60
+ * "uniVer": "x",
61
+ * "unixVer": "4.61"
62
+ * }
63
+ * },
64
+ * "mp": {
65
+ * "weixin": {
66
+ * "osVer": "x",
67
+ * "uniVer": "x",
68
+ * "unixVer": "x"
69
+ * }
70
+ * },
71
+ * "web": {
72
+ * "uniVer": "x",
73
+ * "unixVer": "4.0"
74
+ * }
75
+ * }
76
+ */
77
+ isConnected: boolean
78
+ /**
79
+ * 元素所属的页面对象
80
+ * @uniPlatform {
81
+ * "app": {
82
+ * "android": {
83
+ * "osVer": "5.0",
84
+ * "uniVer": "x",
85
+ * "unixVer": "x"
86
+ * },
87
+ * "ios": {
88
+ * "osVer": "12.0",
89
+ * "uniVer": "x",
90
+ * "unixVer": "x"
91
+ * "unixUtsPlugin": "x"
92
+ * },
93
+ * "harmony": {
94
+ * "osVer": "12",
95
+ * "uniVer": "x",
96
+ * "unixVer": "4.61"
97
+ * }
98
+ * },
99
+ * "mp": {
100
+ * "weixin": {
101
+ * "osVer": "x",
102
+ * "uniVer": "x",
103
+ * "unixVer": "x"
104
+ * }
105
+ * },
106
+ * "web": {
107
+ * "uniVer": "x",
108
+ * "unixVer": "4.0"
109
+ * }
110
+ * }
111
+ */
112
+ uniPage: UniPage
42
113
  /**
43
114
  * 只读属性 获取当前元素的的 class 属性的动态集合。
44
115
  * @uniPlatform {
@@ -1923,7 +1994,12 @@ export interface UniElement {
1923
1994
  * "osVer": "12.0",
1924
1995
  * "uniVer": "x",
1925
1996
  * "unixVer": "x"
1926
- * }
1997
+ * },
1998
+ * "harmony": {
1999
+ * "osVer": "5.0.0",
2000
+ * "uniVer": "x",
2001
+ * "unixVer": "4.61"
2002
+ * }
1927
2003
  * },
1928
2004
  * "mp": {
1929
2005
  * "weixin": {
@@ -1967,13 +2043,17 @@ export type RequestFullscreenOptions = {
1967
2043
  */
1968
2044
  "auto"|
1969
2045
  /**
1970
- *固定为竖屏
2046
+ *固定为横屏,会根据重力调整方向
1971
2047
  */
1972
2048
  "landscape"|
1973
2049
  /**
1974
2050
  *固定为反向横屏
1975
2051
  */
1976
- "landscape_inverted"|
2052
+ "landscape-secondary"|
2053
+ /**
2054
+ *固定为正向横屏
2055
+ */
2056
+ "landscape-primary"|
1977
2057
  /**
1978
2058
  *固定为竖屏
1979
2059
  */
@@ -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'