@dcloudio/uni-app-x 0.7.104 → 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.104",
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
  * 设置文字水平对齐方式
@@ -56,6 +56,12 @@ declare global {
56
56
  * @internal
57
57
  */
58
58
  _resetFlags(): void
59
+ /**
60
+ * 设置数据对象的属性值,并触发响应式更新(目前仅kotlin使用)
61
+ * @param key
62
+ * @param value
63
+ */
64
+ _setData(key: string, value: any | null): void
59
65
  constructor(scope: UniSharedDataPage)
60
66
  }
61
67
 
@@ -141,19 +147,31 @@ declare global {
141
147
  callback: (result: Array<[string, any | null]>) => void
142
148
  }): Map<string, any | null>
143
149
  /**
144
- * 目前仅限 android 平台
150
+ * 目前仅限 android 平台,c 层方法
145
151
  * 创建文本布局(先缓存,后批量同步至kotlin层)
146
152
  * 接收三个参数:fid, eid, nodeId
147
153
  * @internal
148
154
  */
149
155
  _createTextLayout(fid: number, eid: number, nodeId: number): void
150
156
  /**
151
- * 由编译器动态生成的子类中的 Element 渲染器
157
+ * 批量创建文本布局,kotlin 层方法
152
158
  * @internal
153
159
  */
154
- abstract _renderElement(): UniElementBlock
160
+ _createTextLayouts(ids: IntArray): void
161
+ /**
162
+ * 由编译器动态生成的子类中的 Element 渲染器,C层
163
+ * @internal
164
+ */
165
+ _renderElement(): UniElementBlock
166
+
155
167
  /**
156
- * 由编译器动态生成的子类中的 NativeView 渲染器
168
+ * 由编译器动态生成的子类中的 Kotlin Element 渲染器,kt层
169
+ * @internal
170
+ */
171
+ _renderKotlinElement(): UniElementBlock
172
+
173
+ /**
174
+ * 由编译器动态生成的子类中的 NativeView 渲染器,android平台是kt层,其他平台是c层
157
175
  * @internal
158
176
  */
159
177
  abstract _renderNativeView(): UniNativeViewBlock
@@ -283,6 +301,12 @@ declare global {
283
301
  track(target: object, type: TrackOpTypes, key: unknown): void
284
302
  }
285
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
+
286
310
  // 编译宏
287
311
 
288
312
  interface UniSharedDataRegistry {}