@dcloudio/uni-app-x 0.7.105 → 0.7.106

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.105",
3
+ "version": "0.7.106",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -113,7 +113,7 @@ declare global {
113
113
  * 用于Android平台线程1中创建UniTextLayout
114
114
  * @internal
115
115
  */
116
- createTextLayout(): UniTextLayout
116
+ createTextLayout(id?: number | null): UniTextLayout
117
117
  /**
118
118
  * 增加TextLayout内部计数器,解决非text节点不需要创建TextLayout时能同时增加计数,确保内部id与UniTextElement的内部id一致
119
119
  * @internal
@@ -43,6 +43,7 @@ declare global {
43
43
  * string - 兼容字符串参数设置字体大小
44
44
  */
45
45
  setFontSize(size: UniCSSUnitValue | string): void
46
+ setFontSize(value: number, unit: UniCSSUnitType): void
46
47
 
47
48
  /**
48
49
  * 设置字体样式
@@ -68,6 +69,7 @@ declare global {
68
69
  * string - 兼容字符串参数设置字符间距
69
70
  */
70
71
  setLetterSpacing(spacing: UniCSSUnitValue | string): void
72
+ setLetterSpacing(value: number, unit: UniCSSUnitType): void
71
73
 
72
74
  /**
73
75
  * 设置文本行高
@@ -78,6 +80,7 @@ declare global {
78
80
  * string - 兼容字符串参数设置行高
79
81
  */
80
82
  setLineHeight(height: UniCSSLineHeightType | UniCSSUnitValue | string): void
83
+ setLineHeight(value: number, unit: UniCSSUnitType): void
81
84
 
82
85
  /**
83
86
  * 设置文字水平对齐方式
@@ -301,6 +301,12 @@ declare global {
301
301
  track(target: object, type: TrackOpTypes, key: unknown): void
302
302
  }
303
303
 
304
+ const TEXT_LAYOUT_INDEX_VUE_ID = 0
305
+ const TEXT_LAYOUT_INDEX_FID = 1
306
+ const TEXT_LAYOUT_INDEX_EID = 2
307
+ const TEXT_LAYOUT_INDEX_NODE_ID = 3
308
+
309
+
304
310
  // 编译宏
305
311
 
306
312
  interface UniSharedDataRegistry {}