@dcloudio/uni-app-x 0.7.62 → 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.
- package/package.json +1 -1
- package/types/app.d.ts +36 -1
- package/types/dom2/UniCSSProperty.d.ts +446 -0
- package/types/dom2/UniCSSType.d.ts +72 -0
- package/types/dom2/UniCommon.d.ts +40 -0
- package/types/dom2/UniCustomViewElement.d.ts +12 -0
- package/types/dom2/UniElement.d.ts +354 -0
- package/types/dom2/UniElementType.d.ts +37 -0
- package/types/dom2/UniImageElement.d.ts +102 -0
- package/types/dom2/UniNativeBaseView.d.ts +178 -0
- package/types/dom2/UniNativeCustomView.d.ts +13 -0
- package/types/dom2/UniNativeDefines.d.ts +435 -0
- package/types/dom2/UniNativeImageView.d.ts +34 -0
- package/types/dom2/UniNativeScrollView.d.ts +42 -0
- package/types/dom2/UniNativeTextView.d.ts +25 -0
- package/types/dom2/UniNativeView.d.ts +51 -0
- package/types/dom2/UniNativeViewType.d.ts +22 -0
- package/types/dom2/UniPage.d.ts +55 -0
- package/types/dom2/UniScrollViewElement.d.ts +13 -0
- package/types/dom2/UniTextElement.d.ts +20 -0
- package/types/dom2/UniTextLayout.d.ts +386 -0
- package/types/dom2/UniViewElement.d.ts +57 -0
- package/types/dom2/global.d.ts +189 -0
- package/types/dom2/index.d.ts +40 -0
- package/types/dom2/sharedData.d.ts +227 -0
- package/types/index.d.ts +2 -1
- package/types/native/DOMRect.d.ts +2 -1
- package/types/native/DrawableContext.d.ts +1665 -1661
- package/types/native/IUniElement.d.ts +3514 -2877
- package/types/native/SnapshotOptions.d.ts +2 -2
- package/types/native/UniAnimation.d.ts +11 -10
- package/types/native/UniEvent.d.ts +108 -3
- package/types/native/UniPage.d.ts +891 -887
- package/types/native/UniTextElement.d.ts +37 -0
- package/types/native/UniTextLayout.d.ts +387 -0
- package/types/native/UniVideoElement.d.ts +20 -17
- package/types/native/Worker.d.ts +19 -0
- package/types/native/global.d.ts +28 -68
- package/types/native/index.d.ts +18 -1
- package/types/page.d.ts +1862 -599
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
- package/uts-plugin.d.ts +11 -0
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -62,7 +62,12 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
62
62
|
* "osVer": "10.0",
|
|
63
63
|
* "uniVer": "√",
|
|
64
64
|
* "unixVer": "4.0"
|
|
65
|
-
* }
|
|
65
|
+
* },
|
|
66
|
+
* "harmony": {
|
|
67
|
+
* "osVer": "3.0",
|
|
68
|
+
* "uniVer": "√",
|
|
69
|
+
* "unixVer": "4.61"
|
|
70
|
+
* }
|
|
66
71
|
* },
|
|
67
72
|
* "mp": {
|
|
68
73
|
* "weixin": {
|
|
@@ -131,6 +136,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
131
136
|
* "osVer": "10.0",
|
|
132
137
|
* "uniVer": "√",
|
|
133
138
|
* "unixVer": "4.0"
|
|
139
|
+
* },
|
|
140
|
+
* "harmony": {
|
|
141
|
+
* "osVer": "3.0",
|
|
142
|
+
* "uniVer": "√",
|
|
143
|
+
* "unixVer": "4.61"
|
|
134
144
|
* }
|
|
135
145
|
* },
|
|
136
146
|
* "mp": {
|
|
@@ -201,6 +211,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
201
211
|
* "osVer": "10.0",
|
|
202
212
|
* "uniVer": "√",
|
|
203
213
|
* "unixVer": "4.0"
|
|
214
|
+
* },
|
|
215
|
+
* "harmony": {
|
|
216
|
+
* "osVer": "3.0",
|
|
217
|
+
* "uniVer": "√",
|
|
218
|
+
* "unixVer": "4.61"
|
|
204
219
|
* }
|
|
205
220
|
* },
|
|
206
221
|
* "mp": {
|
|
@@ -271,6 +286,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
271
286
|
* "osVer": "10.0",
|
|
272
287
|
* "uniVer": "√",
|
|
273
288
|
* "unixVer": "4.0"
|
|
289
|
+
* },
|
|
290
|
+
* "harmony": {
|
|
291
|
+
* "osVer": "3.0",
|
|
292
|
+
* "uniVer": "√",
|
|
293
|
+
* "unixVer": "4.61"
|
|
274
294
|
* }
|
|
275
295
|
* },
|
|
276
296
|
* "mp": {
|
|
@@ -342,6 +362,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
342
362
|
* "osVer": "10.0",
|
|
343
363
|
* "uniVer": "√",
|
|
344
364
|
* "unixVer": "4.21"
|
|
365
|
+
* },
|
|
366
|
+
* "harmony": {
|
|
367
|
+
* "osVer": "3.0",
|
|
368
|
+
* "uniVer": "√",
|
|
369
|
+
* "unixVer": "4.61"
|
|
345
370
|
* }
|
|
346
371
|
* },
|
|
347
372
|
* "mp": {
|
|
@@ -416,6 +441,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
416
441
|
* "osVer": "10.0",
|
|
417
442
|
* "uniVer": "√",
|
|
418
443
|
* "unixVer": "x"
|
|
444
|
+
* },
|
|
445
|
+
* "harmony": {
|
|
446
|
+
* "osVer": "3.0",
|
|
447
|
+
* "uniVer": "√",
|
|
448
|
+
* "unixVer": "x"
|
|
419
449
|
* }
|
|
420
450
|
* },
|
|
421
451
|
* "mp": {
|
|
@@ -806,6 +836,11 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
|
|
|
806
836
|
* "osVer": "x",
|
|
807
837
|
* "uniVer": "x",
|
|
808
838
|
* "unixVer": "x"
|
|
839
|
+
* },
|
|
840
|
+
* "harmony": {
|
|
841
|
+
* "osVer": "3.0",
|
|
842
|
+
* "uniVer": "x",
|
|
843
|
+
* "unixVer": "x"
|
|
809
844
|
* }
|
|
810
845
|
* },
|
|
811
846
|
* "mp": {
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* CSS属性名称ID
|
|
4
|
+
* 枚举值
|
|
5
|
+
*/
|
|
6
|
+
export enum UniCSSPropertyID {
|
|
7
|
+
/**
|
|
8
|
+
* 无效属性
|
|
9
|
+
*/
|
|
10
|
+
InValid,
|
|
11
|
+
/**
|
|
12
|
+
* CSS变量
|
|
13
|
+
*/
|
|
14
|
+
Variable,
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 元素布局方式 display
|
|
18
|
+
* https://doc.dcloud.net.cn/uni-app-x/css/display.html
|
|
19
|
+
*/
|
|
20
|
+
Display,
|
|
21
|
+
/**
|
|
22
|
+
* 元素定位方式 position
|
|
23
|
+
* https://doc.dcloud.net.cn/uni-app-x/css/position.html
|
|
24
|
+
*/
|
|
25
|
+
Position,
|
|
26
|
+
/**
|
|
27
|
+
* 元素的上外边距边界与其包含块上边界之间的偏移 top
|
|
28
|
+
* 非定位元素设置此属性无效
|
|
29
|
+
*/
|
|
30
|
+
Top,
|
|
31
|
+
/**
|
|
32
|
+
* 元素的右外边距边界与其包含块右边界之间的偏移 right
|
|
33
|
+
* 非定位元素设置此属性无效
|
|
34
|
+
*/
|
|
35
|
+
Right,
|
|
36
|
+
/**
|
|
37
|
+
* 元素下外边距边界与其包含块下边界之间的偏移 bottom
|
|
38
|
+
* 非定位元素设置此属性无效
|
|
39
|
+
*/
|
|
40
|
+
Bottom,
|
|
41
|
+
/**
|
|
42
|
+
* 元素的左外边距边界与其包含块左边界之间的偏移 left
|
|
43
|
+
* 非定位元素设置此属性无效
|
|
44
|
+
*/
|
|
45
|
+
Left,
|
|
46
|
+
/**
|
|
47
|
+
* 元素的 Z 轴顺序 z-index
|
|
48
|
+
*/
|
|
49
|
+
ZIndex,
|
|
50
|
+
/**
|
|
51
|
+
* 元素溢出时所需的行为 overflow
|
|
52
|
+
*/
|
|
53
|
+
Overflow,
|
|
54
|
+
/**
|
|
55
|
+
* 元素显示或隐藏,不更改布局
|
|
56
|
+
*/
|
|
57
|
+
Visibility,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 元素的宽度
|
|
61
|
+
*/
|
|
62
|
+
Width,
|
|
63
|
+
/**
|
|
64
|
+
* 元素的高度
|
|
65
|
+
*/
|
|
66
|
+
Height,
|
|
67
|
+
/**
|
|
68
|
+
* 元素的最小宽度
|
|
69
|
+
*/
|
|
70
|
+
MinWidth,
|
|
71
|
+
/**
|
|
72
|
+
* 元素的最小高度
|
|
73
|
+
*/
|
|
74
|
+
MinHeight,
|
|
75
|
+
/**
|
|
76
|
+
* 元素的最大宽度
|
|
77
|
+
*/
|
|
78
|
+
MaxWidth,
|
|
79
|
+
/**
|
|
80
|
+
* 元素的最大高度
|
|
81
|
+
*/
|
|
82
|
+
MaxHeight,
|
|
83
|
+
/**
|
|
84
|
+
* 元素的盒模型
|
|
85
|
+
*/
|
|
86
|
+
BoxSizing,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Margin相关
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* 元素的外边距 margin
|
|
93
|
+
*/
|
|
94
|
+
Margin,
|
|
95
|
+
/**
|
|
96
|
+
* 元素的顶部外边距 margin-top
|
|
97
|
+
*/
|
|
98
|
+
MarginTop,
|
|
99
|
+
/**
|
|
100
|
+
* 元素的右侧外边距 margin-right
|
|
101
|
+
*/
|
|
102
|
+
MarginRight,
|
|
103
|
+
/**
|
|
104
|
+
* 元素的底部外边距 margin-bottom
|
|
105
|
+
*/
|
|
106
|
+
MarginBottom,
|
|
107
|
+
/**
|
|
108
|
+
* 元素的左侧外边距 margin-left
|
|
109
|
+
*/
|
|
110
|
+
MarginLeft,
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Padding相关
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* 元素的内边距 padding
|
|
117
|
+
*/
|
|
118
|
+
Padding,
|
|
119
|
+
/**
|
|
120
|
+
* 元素的顶部内边距 padding-top
|
|
121
|
+
*/
|
|
122
|
+
PaddingTop,
|
|
123
|
+
/**
|
|
124
|
+
* 元素的右侧内边距 padding-right
|
|
125
|
+
*/
|
|
126
|
+
PaddingRight,
|
|
127
|
+
/**
|
|
128
|
+
* 元素的底部内边距 padding-bottom
|
|
129
|
+
*/
|
|
130
|
+
PaddingBottom,
|
|
131
|
+
/**
|
|
132
|
+
* 元素的左侧内边距 padding-left
|
|
133
|
+
*/
|
|
134
|
+
PaddingLeft,
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Border相关
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* 元素边框的简写属性 border
|
|
141
|
+
*/
|
|
142
|
+
Border,
|
|
143
|
+
/**
|
|
144
|
+
* 元素所有边框的宽度 border-width
|
|
145
|
+
*/
|
|
146
|
+
BorderWidth,
|
|
147
|
+
/**
|
|
148
|
+
* 元素所有边框的样式 border-style
|
|
149
|
+
*/
|
|
150
|
+
BorderStyle,
|
|
151
|
+
/**
|
|
152
|
+
* 元素所有边框的颜色 border-color
|
|
153
|
+
*/
|
|
154
|
+
BorderColor,
|
|
155
|
+
/**
|
|
156
|
+
* 元素边框所有圆角半径 border-radius
|
|
157
|
+
*/
|
|
158
|
+
BorderRadius,
|
|
159
|
+
/**
|
|
160
|
+
* 元素顶部边框的简写属性 border-top
|
|
161
|
+
*/
|
|
162
|
+
BorderTop,
|
|
163
|
+
/**
|
|
164
|
+
* 元素顶部边框的宽度 border-top-width
|
|
165
|
+
*/
|
|
166
|
+
BorderTopWidth,
|
|
167
|
+
/**
|
|
168
|
+
* 元素顶部边框的样式 border-top-style
|
|
169
|
+
*/
|
|
170
|
+
BorderTopStyle,
|
|
171
|
+
/**
|
|
172
|
+
* 元素顶部边框的颜色 border-top-color
|
|
173
|
+
*/
|
|
174
|
+
BorderTopColor,
|
|
175
|
+
/**
|
|
176
|
+
* 元素左上角的圆角半径 border-top-left-radius
|
|
177
|
+
*/
|
|
178
|
+
BorderTopLeftRadius,
|
|
179
|
+
/**
|
|
180
|
+
* 元素右上角的圆角半径 border-top-right-radius
|
|
181
|
+
*/
|
|
182
|
+
BorderTopRightRadius,
|
|
183
|
+
/**
|
|
184
|
+
* 元素右边框的简写属性 border-right
|
|
185
|
+
*/
|
|
186
|
+
BorderRight,
|
|
187
|
+
/**
|
|
188
|
+
* 元素右边框的宽度 border-right-width
|
|
189
|
+
*/
|
|
190
|
+
BorderRightWidth,
|
|
191
|
+
/**
|
|
192
|
+
* 元素右边框的样式 border-right-style
|
|
193
|
+
*/
|
|
194
|
+
BorderRightStyle,
|
|
195
|
+
/**
|
|
196
|
+
* 元素右边框的颜色 border-right-color
|
|
197
|
+
*/
|
|
198
|
+
BorderRightColor,
|
|
199
|
+
/**
|
|
200
|
+
* 元素底部边框的简写属性 border-bottom
|
|
201
|
+
*/
|
|
202
|
+
BorderBottom,
|
|
203
|
+
/**
|
|
204
|
+
* 元素底部边框的宽度 border-bottom-width
|
|
205
|
+
*/
|
|
206
|
+
BorderBottomWidth,
|
|
207
|
+
/**
|
|
208
|
+
* 元素底部边框的样式 border-bottom-style
|
|
209
|
+
*/
|
|
210
|
+
BorderBottomStyle,
|
|
211
|
+
/**
|
|
212
|
+
* 元素底部边框的颜色 border-bottom-color
|
|
213
|
+
*/
|
|
214
|
+
BorderBottomColor,
|
|
215
|
+
/**
|
|
216
|
+
* 元素左下角的圆角半径 border-bottom-left-radius
|
|
217
|
+
*/
|
|
218
|
+
BorderBottomLeftRadius,
|
|
219
|
+
/**
|
|
220
|
+
* 元素右下角的圆角半径 border-bottom-right-radius
|
|
221
|
+
*/
|
|
222
|
+
BorderBottomRightRadius,
|
|
223
|
+
/**
|
|
224
|
+
* 元素左边框的简写属性 border-left
|
|
225
|
+
*/
|
|
226
|
+
BorderLeft,
|
|
227
|
+
/**
|
|
228
|
+
* 元素左边框的宽度 border-left-width
|
|
229
|
+
*/
|
|
230
|
+
BorderLeftWidth,
|
|
231
|
+
/**
|
|
232
|
+
* 元素左边框的样式 border-left-style
|
|
233
|
+
*/
|
|
234
|
+
BorderLeftStyle,
|
|
235
|
+
/**
|
|
236
|
+
* 元素左边框的颜色 border-left-color
|
|
237
|
+
*/
|
|
238
|
+
BorderLeftColor,
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Flex相关
|
|
242
|
+
*/
|
|
243
|
+
/**
|
|
244
|
+
* Flex布局 简写属性 flex
|
|
245
|
+
* flex-grow|flex-shrink|flex-basis 的简写
|
|
246
|
+
* 单值:flex-grow|flex-basis|关键字
|
|
247
|
+
* 双值:flex-grow|flex-basis
|
|
248
|
+
* 三值:flex-grow|flex-shrink|flex-basis
|
|
249
|
+
*/
|
|
250
|
+
Flex,
|
|
251
|
+
/**
|
|
252
|
+
* Flex布局 主轴方向 flex-direction
|
|
253
|
+
*/
|
|
254
|
+
FlexDirection,
|
|
255
|
+
/**
|
|
256
|
+
* Flex布局 元素是单行还是多行显示,允许多行时的堆叠方向 flex-wrap
|
|
257
|
+
*/
|
|
258
|
+
FlexWrap,
|
|
259
|
+
/**
|
|
260
|
+
* Flex布局 flex-direction|flex-wrap 的简写 flex-flow
|
|
261
|
+
*/
|
|
262
|
+
FlexFlow,
|
|
263
|
+
/**
|
|
264
|
+
* Flex布局 元素主尺寸的增长系数 flex-grow
|
|
265
|
+
*/
|
|
266
|
+
FlexGrow,
|
|
267
|
+
/**
|
|
268
|
+
* Flex布局 元素宽度的收缩规则 flex-shrink
|
|
269
|
+
*/
|
|
270
|
+
FlexShrink,
|
|
271
|
+
/**
|
|
272
|
+
* Flex布局 元素在主轴方向上的初始大小 flex-basis
|
|
273
|
+
*/
|
|
274
|
+
FlexBasis,
|
|
275
|
+
/**
|
|
276
|
+
* Flex布局 子元素在主轴方向的对齐方式 justify-content
|
|
277
|
+
*/
|
|
278
|
+
JustifyContent,
|
|
279
|
+
/**
|
|
280
|
+
* Flex布局 子元素在交叉轴方向的对齐方式 align-items
|
|
281
|
+
*/
|
|
282
|
+
AlignItems,
|
|
283
|
+
/**
|
|
284
|
+
* Flex布局 元素在父元素中的交叉轴方向的对齐方式(覆盖父元素设置的align-items值) align-self
|
|
285
|
+
*/
|
|
286
|
+
AlignSelf,
|
|
287
|
+
/**
|
|
288
|
+
* Flex布局 子元素在交叉轴方向的整体分布方式 align-content
|
|
289
|
+
*/
|
|
290
|
+
AlignContent,
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* 背景相关
|
|
294
|
+
*/
|
|
295
|
+
Background,
|
|
296
|
+
BackgroundColor,
|
|
297
|
+
BackgroundImage,
|
|
298
|
+
BackgroundClip,
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* 字体相关
|
|
302
|
+
*/
|
|
303
|
+
FontFamily,
|
|
304
|
+
FontSize,
|
|
305
|
+
FontStyle,
|
|
306
|
+
FontWeight,
|
|
307
|
+
LineHeight,
|
|
308
|
+
LetterSpacing,
|
|
309
|
+
Lines,
|
|
310
|
+
|
|
311
|
+
Color,
|
|
312
|
+
TextAlign,
|
|
313
|
+
TextDecoration,
|
|
314
|
+
TextDecorationColor,
|
|
315
|
+
TextDecorationLine,
|
|
316
|
+
TextDecorationStyle,
|
|
317
|
+
TextDecorationThickness,
|
|
318
|
+
TextOverflow,
|
|
319
|
+
TextShadow,
|
|
320
|
+
WhiteSpace,
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* 元素变换相关
|
|
324
|
+
*/
|
|
325
|
+
Transform,
|
|
326
|
+
TransformOrigin,
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* 元素动画相关
|
|
330
|
+
*/
|
|
331
|
+
Transition,
|
|
332
|
+
TransitionProperty,
|
|
333
|
+
TransitionDuration,
|
|
334
|
+
TransitionDelay,
|
|
335
|
+
TransitionTimingFunction,
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* 其它
|
|
339
|
+
*/
|
|
340
|
+
Opacity,
|
|
341
|
+
BoxShadow,
|
|
342
|
+
PointerEvents,
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* CSS属性名称
|
|
348
|
+
* 字符串类型
|
|
349
|
+
* 注意:各平台应定为常量
|
|
350
|
+
*/
|
|
351
|
+
export type UniCSSPropertyName = string
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* CSS属性值
|
|
355
|
+
*/
|
|
356
|
+
export type UniCSSPropertyValue = number|boolean|string
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* box-sizing值类型
|
|
360
|
+
*/
|
|
361
|
+
export enum UniCSSBoxSizingType {
|
|
362
|
+
BorderBox,
|
|
363
|
+
ContentBox,
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* display值类型
|
|
368
|
+
*/
|
|
369
|
+
export enum UniCSSDisplayType {
|
|
370
|
+
/**
|
|
371
|
+
* 元素按弹性布局
|
|
372
|
+
*/
|
|
373
|
+
Flex,
|
|
374
|
+
/**
|
|
375
|
+
* 元素不显示
|
|
376
|
+
*/
|
|
377
|
+
None,
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* position值类型
|
|
382
|
+
*/
|
|
383
|
+
export enum UniCSSPositionType {
|
|
384
|
+
Relative,
|
|
385
|
+
Absolute,
|
|
386
|
+
Fixed,
|
|
387
|
+
Sticky,
|
|
388
|
+
Static,
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* visibility值类型
|
|
393
|
+
*/
|
|
394
|
+
export enum UniCSSVisibilityType {
|
|
395
|
+
Visible,
|
|
396
|
+
Hidden
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* border-style值类型
|
|
401
|
+
*/
|
|
402
|
+
export enum UniCSSBorderStyleType {
|
|
403
|
+
None,
|
|
404
|
+
Border,
|
|
405
|
+
UnSet,
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* flex-direction值类型
|
|
410
|
+
*/
|
|
411
|
+
export enum UniCSSFlexDirectionType {
|
|
412
|
+
Row,
|
|
413
|
+
RowReverse,
|
|
414
|
+
Column,
|
|
415
|
+
ColumnReverse,
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* flex-wrap值类型
|
|
420
|
+
*/
|
|
421
|
+
export enum UniCSSFlexWrapType {
|
|
422
|
+
NoWrap,
|
|
423
|
+
Wrap,
|
|
424
|
+
WrapReverse,
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* flex对齐值类型
|
|
429
|
+
* align-item、align-self、justify-content、align-content
|
|
430
|
+
*/
|
|
431
|
+
export enum UniCSSFlexAlignType {
|
|
432
|
+
Auto,
|
|
433
|
+
FlexStart,
|
|
434
|
+
Center,
|
|
435
|
+
FlexEnd,
|
|
436
|
+
Stretch,
|
|
437
|
+
Baseline,
|
|
438
|
+
SpaceBetween,
|
|
439
|
+
SpaceAround,
|
|
440
|
+
SpaceEvenly,
|
|
441
|
+
}
|
|
442
|
+
export type UniCSSJustifyContentType = UniCSSFlexAlignType
|
|
443
|
+
export type UniCSSAlignItemsType = UniCSSFlexAlignType
|
|
444
|
+
export type UniCSSAlignSelfType = UniCSSFlexAlignType
|
|
445
|
+
export type UniCSSAlignContentType = UniCSSFlexAlignType
|
|
446
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 单位类型
|
|
4
|
+
*/
|
|
5
|
+
export enum UniCSSUnitType {
|
|
6
|
+
/**
|
|
7
|
+
* 无单位
|
|
8
|
+
*/
|
|
9
|
+
NONE,
|
|
10
|
+
/**
|
|
11
|
+
* 自动计算
|
|
12
|
+
*/
|
|
13
|
+
AUTO,
|
|
14
|
+
/**
|
|
15
|
+
* 逻辑像素
|
|
16
|
+
* Pixel
|
|
17
|
+
*/
|
|
18
|
+
PX,
|
|
19
|
+
/**
|
|
20
|
+
* 相对像素
|
|
21
|
+
* Relative Pixel
|
|
22
|
+
*/
|
|
23
|
+
RPX,
|
|
24
|
+
/**
|
|
25
|
+
* 百分比
|
|
26
|
+
* Percent
|
|
27
|
+
*/
|
|
28
|
+
PCT,
|
|
29
|
+
/**
|
|
30
|
+
* 相对当前元素单位
|
|
31
|
+
*/
|
|
32
|
+
EM,
|
|
33
|
+
/**
|
|
34
|
+
* 相对根元素单位
|
|
35
|
+
* Root EM
|
|
36
|
+
*/
|
|
37
|
+
REM,
|
|
38
|
+
/**
|
|
39
|
+
* 角度度数
|
|
40
|
+
* Degree
|
|
41
|
+
*/
|
|
42
|
+
DEG,
|
|
43
|
+
/**
|
|
44
|
+
* 角度弧度
|
|
45
|
+
* Radian
|
|
46
|
+
*/
|
|
47
|
+
RAD,
|
|
48
|
+
/**
|
|
49
|
+
* 时间 秒
|
|
50
|
+
*/
|
|
51
|
+
S,
|
|
52
|
+
/**
|
|
53
|
+
* 时间 毫秒
|
|
54
|
+
*/
|
|
55
|
+
MS,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* CSS带单位的数值类型
|
|
61
|
+
*/
|
|
62
|
+
export interface UniCSSUnitValue {
|
|
63
|
+
/**
|
|
64
|
+
* 值
|
|
65
|
+
* 注: 不同语言实际类型需调整,如c/c++中为float类型
|
|
66
|
+
*/
|
|
67
|
+
value: number,
|
|
68
|
+
/**
|
|
69
|
+
* 单位
|
|
70
|
+
*/
|
|
71
|
+
unit: UniCSSUnitType,
|
|
72
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通用类型定义
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 基础类型position:left/top
|
|
7
|
+
*/
|
|
8
|
+
export type UniPosition = {
|
|
9
|
+
left: number,
|
|
10
|
+
top: number,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 基础类型size:width/height
|
|
15
|
+
*/
|
|
16
|
+
export type UniSize = {
|
|
17
|
+
width: number,
|
|
18
|
+
height: number,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 基础类型:left/top/width/height
|
|
23
|
+
*/
|
|
24
|
+
export type UniLTWH = {
|
|
25
|
+
left: number,
|
|
26
|
+
top: number,
|
|
27
|
+
width: number,
|
|
28
|
+
height: number,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 基础类型:left/top/right/bottom
|
|
33
|
+
*/
|
|
34
|
+
export type UniLTRB = {
|
|
35
|
+
left: number,
|
|
36
|
+
top: number,
|
|
37
|
+
right: number,
|
|
38
|
+
bottom: number,
|
|
39
|
+
}
|
|
40
|
+
|