@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
@@ -2,6 +2,7 @@ import { UniElementImpl } from "./UniElement"
2
2
  import { UniTextElement } from "./IUniElement"
3
3
  import { PageNode } from "./PageNode"
4
4
  import { INodeData } from "./NodeData"
5
+ import { UniTextLayout, UniLayoutSize } from "./index"
5
6
  /**
6
7
  * text元素对象
7
8
  * @package io.dcloud.uniapp.runtime
@@ -31,5 +32,41 @@ export class UniTextElementImpl extends UniElementImpl implements UniTextElement
31
32
  * @internal
32
33
  */
33
34
  getTextExtra(): any | null
35
+ /**
36
+ * 设置文本内容
37
+ * @uniPlatform {
38
+ * "app": {
39
+ * "android": {
40
+ * "osVer": "5.0",
41
+ * "uniVer": "x",
42
+ * "unixVer": "4.81"
43
+ * },
44
+ * "ios": {
45
+ * "osVer": "12.0",
46
+ * "uniVer": "x",
47
+ * "unixVer": "x"
48
+ * }
49
+ * }
50
+ * }
51
+ */
52
+ setTextLayout(layout: UniTextLayout): void
53
+ /**
54
+ * 获取内容宽高
55
+ * @uniPlatform {
56
+ * "app": {
57
+ * "android": {
58
+ * "osVer": "5.0",
59
+ * "uniVer": "x",
60
+ * "unixVer": "4.81"
61
+ * },
62
+ * "ios": {
63
+ * "osVer": "12.0",
64
+ * "uniVer": "x",
65
+ * "unixVer": "x"
66
+ * }
67
+ * }
68
+ * }
69
+ */
70
+ getContentSize(): UniLayoutSize
34
71
  constructor(data: INodeData, pageNode?: PageNode)
35
72
  }
@@ -0,0 +1,387 @@
1
+ declare global {
2
+
3
+ /**
4
+ * 文本对象
5
+ */
6
+ interface UniTextLayout {
7
+ /**
8
+ * 设置文本
9
+ * @uniPlatform {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "x",
14
+ * "unixVer": "4.81"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "12.0",
18
+ * "uniVer": "x",
19
+ * "unixVer": "x"
20
+ * }
21
+ * }
22
+ * }
23
+ */
24
+ setText(text: string): void
25
+ /**
26
+ * 设置文本颜色
27
+ * @uniPlatform {
28
+ * "app": {
29
+ * "android": {
30
+ * "osVer": "5.0",
31
+ * "uniVer": "x",
32
+ * "unixVer": "4.81"
33
+ * },
34
+ * "ios": {
35
+ * "osVer": "12.0",
36
+ * "uniVer": "x",
37
+ * "unixVer": "x"
38
+ * }
39
+ * }
40
+ * }
41
+ */
42
+ setColor(color: string): void
43
+ /**
44
+ * 设置字体名称
45
+ * @uniPlatform {
46
+ * "app": {
47
+ * "android": {
48
+ * "osVer": "5.0",
49
+ * "uniVer": "x",
50
+ * "unixVer": "4.81"
51
+ * },
52
+ * "ios": {
53
+ * "osVer": "12.0",
54
+ * "uniVer": "x",
55
+ * "unixVer": "x"
56
+ * }
57
+ * }
58
+ * }
59
+ */
60
+ setFontFamily(family: string): void
61
+ /**
62
+ * 设置字体大小
63
+ * @uniPlatform {
64
+ * "app": {
65
+ * "android": {
66
+ * "osVer": "5.0",
67
+ * "uniVer": "x",
68
+ * "unixVer": "4.81"
69
+ * },
70
+ * "ios": {
71
+ * "osVer": "12.0",
72
+ * "uniVer": "x",
73
+ * "unixVer": "x"
74
+ * }
75
+ * }
76
+ * }
77
+ */
78
+ setFontSize(size: string): void
79
+ /**
80
+ * 设置字体样式
81
+ * @uniPlatform {
82
+ * "app": {
83
+ * "android": {
84
+ * "osVer": "5.0",
85
+ * "uniVer": "x",
86
+ * "unixVer": "4.81"
87
+ * },
88
+ * "ios": {
89
+ * "osVer": "12.0",
90
+ * "uniVer": "x",
91
+ * "unixVer": "x"
92
+ * }
93
+ * }
94
+ * }
95
+ */
96
+ setFontStyle(style: string): void
97
+ /**
98
+ * 设置字体粗细
99
+ * @uniPlatform {
100
+ * "app": {
101
+ * "android": {
102
+ * "osVer": "5.0",
103
+ * "uniVer": "x",
104
+ * "unixVer": "4.81"
105
+ * },
106
+ * "ios": {
107
+ * "osVer": "12.0",
108
+ * "uniVer": "x",
109
+ * "unixVer": "x"
110
+ * }
111
+ * }
112
+ * }
113
+ */
114
+ setFontWeight(weight: string): void
115
+ /**
116
+ * 设置行高
117
+ * @uniPlatform {
118
+ * "app": {
119
+ * "android": {
120
+ * "osVer": "5.0",
121
+ * "uniVer": "x",
122
+ * "unixVer": "4.81"
123
+ * },
124
+ * "ios": {
125
+ * "osVer": "12.0",
126
+ * "uniVer": "x",
127
+ * "unixVer": "x"
128
+ * }
129
+ * }
130
+ * }
131
+ */
132
+ setLineHeight(height: string): void
133
+ /**
134
+ * 设置文字水平对齐方式
135
+ * @uniPlatform {
136
+ * "app": {
137
+ * "android": {
138
+ * "osVer": "5.0",
139
+ * "uniVer": "x",
140
+ * "unixVer": "4.81"
141
+ * },
142
+ * "ios": {
143
+ * "osVer": "12.0",
144
+ * "uniVer": "x",
145
+ * "unixVer": "x"
146
+ * }
147
+ * }
148
+ * }
149
+ */
150
+ setTextAlign(align: string): void
151
+ /**
152
+ * 设置文字溢出裁剪方式
153
+ * @uniPlatform {
154
+ * "app": {
155
+ * "android": {
156
+ * "osVer": "5.0",
157
+ * "uniVer": "x",
158
+ * "unixVer": "4.81"
159
+ * },
160
+ * "ios": {
161
+ * "osVer": "12.0",
162
+ * "uniVer": "x",
163
+ * "unixVer": "x"
164
+ * }
165
+ * }
166
+ * }
167
+ */
168
+ setTextOverflow(overflow: string): void
169
+ /**
170
+ * 设置文字阴影
171
+ * @uniPlatform {
172
+ * "app": {
173
+ * "android": {
174
+ * "osVer": "5.0",
175
+ * "uniVer": "x",
176
+ * "unixVer": "4.81"
177
+ * },
178
+ * "ios": {
179
+ * "osVer": "12.0",
180
+ * "uniVer": "x",
181
+ * "unixVer": "x"
182
+ * }
183
+ * }
184
+ * }
185
+ */
186
+ setTextShadow(shadow: string): void
187
+ /**
188
+ * 设置文本修饰类型
189
+ * @uniPlatform {
190
+ * "app": {
191
+ * "android": {
192
+ * "osVer": "5.0",
193
+ * "uniVer": "x",
194
+ * "unixVer": "4.81"
195
+ * },
196
+ * "ios": {
197
+ * "osVer": "12.0",
198
+ * "uniVer": "x",
199
+ * "unixVer": "x"
200
+ * }
201
+ * }
202
+ * }
203
+ */
204
+ setTextDecorationLine(decorationLine: string): void
205
+ /**
206
+ * 设置处理空白字符
207
+ * @uniPlatform {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "5.0",
211
+ * "uniVer": "x",
212
+ * "unixVer": "4.81"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "12.0",
216
+ * "uniVer": "x",
217
+ * "unixVer": "x"
218
+ * }
219
+ * }
220
+ * }
221
+ */
222
+ setWhiteSpace(whiteSpace: string): void
223
+ /**
224
+ * 添加子文本对象
225
+ * @uniPlatform {
226
+ * "app": {
227
+ * "android": {
228
+ * "osVer": "5.0",
229
+ * "uniVer": "x",
230
+ * "unixVer": "4.81"
231
+ * },
232
+ * "ios": {
233
+ * "osVer": "12.0",
234
+ * "uniVer": "x",
235
+ * "unixVer": "x"
236
+ * }
237
+ * }
238
+ * }
239
+ */
240
+ append(layout: UniTextLayout): void
241
+ /**
242
+ * 测量文本大小
243
+ * @uniPlatform {
244
+ * "app": {
245
+ * "android": {
246
+ * "osVer": "5.0",
247
+ * "uniVer": "x",
248
+ * "unixVer": "4.81"
249
+ * },
250
+ * "ios": {
251
+ * "osVer": "12.0",
252
+ * "uniVer": "x",
253
+ * "unixVer": "x"
254
+ * }
255
+ * }
256
+ * }
257
+ */
258
+ measure(constraint: UniLayoutConstraintSize): UniLayoutSize
259
+ }
260
+
261
+ /**
262
+ * 布局大小
263
+ */
264
+ interface UniLayoutSize {
265
+ /**
266
+ * 元素宽度,逻辑像素值
267
+ * @uniPlatform {
268
+ * "app": {
269
+ * "android": {
270
+ * "osVer": "5.0",
271
+ * "uniVer": "x",
272
+ * "unixVer": "4.81"
273
+ * },
274
+ * "ios": {
275
+ * "osVer": "12.0",
276
+ * "uniVer": "x",
277
+ * "unixVer": "x"
278
+ * }
279
+ * }
280
+ * }
281
+ */
282
+ width: number
283
+ /**
284
+ * 元素高度,逻辑像素值
285
+ * @uniPlatform {
286
+ * "app": {
287
+ * "android": {
288
+ * "osVer": "5.0",
289
+ * "uniVer": "x",
290
+ * "unixVer": "4.81"
291
+ * },
292
+ * "ios": {
293
+ * "osVer": "12.0",
294
+ * "uniVer": "x",
295
+ * "unixVer": "x"
296
+ * }
297
+ * }
298
+ * }
299
+ */
300
+ height: number
301
+ }
302
+
303
+ /**
304
+ * 布局约束大小
305
+ */
306
+ interface UniLayoutConstraintSize {
307
+ /**
308
+ * 元素最小宽度,逻辑像素值
309
+ * 可选值,不设置则认为没有最小宽度
310
+ * @uniPlatform {
311
+ * "app": {
312
+ * "android": {
313
+ * "osVer": "5.0",
314
+ * "uniVer": "x",
315
+ * "unixVer": "4.81"
316
+ * },
317
+ * "ios": {
318
+ * "osVer": "12.0",
319
+ * "uniVer": "x",
320
+ * "unixVer": "x"
321
+ * }
322
+ * }
323
+ * }
324
+ */
325
+ minWidth?: number | null
326
+ /**
327
+ * 元素最大宽度,逻辑像素值
328
+ * 可选值,不设置则认为可以无限宽
329
+ * @uniPlatform {
330
+ * "app": {
331
+ * "android": {
332
+ * "osVer": "5.0",
333
+ * "uniVer": "x",
334
+ * "unixVer": "4.81"
335
+ * },
336
+ * "ios": {
337
+ * "osVer": "12.0",
338
+ * "uniVer": "x",
339
+ * "unixVer": "x"
340
+ * }
341
+ * }
342
+ * }
343
+ */
344
+ maxWidth?: number | null
345
+ /**
346
+ * 元素最小高度,逻辑像素值
347
+ * 可选值,不设置则认为没有最小高度
348
+ * @uniPlatform {
349
+ * "app": {
350
+ * "android": {
351
+ * "osVer": "5.0",
352
+ * "uniVer": "x",
353
+ * "unixVer": "4.81"
354
+ * },
355
+ * "ios": {
356
+ * "osVer": "12.0",
357
+ * "uniVer": "x",
358
+ * "unixVer": "x"
359
+ * }
360
+ * }
361
+ * }
362
+ */
363
+ minHeight?: number | null
364
+ /**
365
+ * 元素最大高度,逻辑像素值
366
+ * 可选值,不设置则认为可以无限高
367
+ * @uniPlatform {
368
+ * "app": {
369
+ * "android": {
370
+ * "osVer": "5.0",
371
+ * "uniVer": "x",
372
+ * "unixVer": "4.81"
373
+ * },
374
+ * "ios": {
375
+ * "osVer": "12.0",
376
+ * "uniVer": "x",
377
+ * "unixVer": "x"
378
+ * }
379
+ * }
380
+ * }
381
+ */
382
+ maxHeight?: number | null
383
+ }
384
+
385
+ }
386
+
387
+ export { }
@@ -495,21 +495,24 @@ export type Danmu = {
495
495
  time?: number | null
496
496
  }
497
497
 
498
- export type RequestFullScreenOptions = {
499
- /**
500
- * direction
501
- */
502
- direction?:
503
- /**
504
- * 正常竖向
505
- */
506
- 0 |
507
- /**
508
- * 屏幕逆时针90度
509
- */
510
- 90 |
511
- /**
512
- * 屏幕顺时针90度
513
- */
514
- -90 | null
498
+ declare global {
499
+
500
+ interface RequestFullScreenOptions {
501
+ /**
502
+ * direction
503
+ */
504
+ direction?:
505
+ /**
506
+ * 正常竖向
507
+ */
508
+ 0 |
509
+ /**
510
+ * 屏幕逆时针90
511
+ */
512
+ 90 |
513
+ /**
514
+ * 屏幕顺时针90
515
+ */
516
+ -90 | null
517
+ }
515
518
  }
@@ -0,0 +1,19 @@
1
+ export type WorkerPostMessageOptions = {
2
+ /**
3
+ * 是否支持符合Sendable协议的对象作为共享变量发送,使用postMessageWithSharedSendable实现,默认值为false
4
+ */
5
+ harmonySendable?: boolean
6
+ /**
7
+ * 可转移对象数组,默认值为空数组
8
+ */
9
+ transfer?: any[]
10
+ }
11
+
12
+ export class WorkerTaskImpl {
13
+ entry(): void;
14
+ onMessage(message: any): void;
15
+ postMessage(
16
+ message: any,
17
+ options?: WorkerPostMessageOptions | null
18
+ ): void
19
+ }