@dcloudio/uni-app-x 0.7.109 → 0.7.112

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.109",
3
+ "version": "0.7.112",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -147,17 +147,15 @@ declare global {
147
147
  callback: (result: Array<[string, any | null]>) => void
148
148
  }): Map<string, any | null>
149
149
  /**
150
- * 目前仅限 android 平台,c 层方法
151
- * 创建文本布局(先缓存,后批量同步至kotlin层)
150
+ * 目前仅限 android 平台
151
+ * c层实现时,对数据暂存_textLayouts中,后批量flush同步至kotlin层
152
+ * kt层由编译器生成
152
153
  * 接收三个参数:fid, eid, nodeId
154
+ * 需要将接收到的数据存储到 scope 的 _textLayouts 中,每4个一组
155
+ * [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
153
156
  * @internal
154
157
  */
155
158
  _createTextLayout(fid: number, eid: number, nodeId: number): void
156
- /**
157
- * 批量创建文本布局,kotlin 层方法
158
- * @internal
159
- */
160
- _createTextLayouts(data: IntArray, offset: Int, len: Int): void
161
159
  /**
162
160
  * 由编译器动态生成的子类中的 Element 渲染器,C层
163
161
  * @internal
@@ -202,10 +200,10 @@ declare global {
202
200
  /**
203
201
  * 目前仅限 android 平台
204
202
  * 文本布局缓存数组
205
- * [[vueId, fid, eid, nodeId, nodeId]]
203
+ * [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
206
204
  * @internal
207
205
  */
208
- _textLayouts: Array<Array<number>>
206
+ _textLayouts: IntArray
209
207
 
210
208
  constructor(pageIdOrScope: number | UniSharedDataPage, options: UniSharedDataComponentOptions)
211
209
  /**
@@ -222,14 +220,14 @@ declare global {
222
220
  */
223
221
  _render: () => Promise<void>
224
222
  /**
225
- * 目前仅限 android 平台
226
- * 批量同步文本布局至kotlin层,kotlin层会根据_textLayouts数组进行处理(编译器生成指定函数switch执行具体的创建逻辑)
223
+ * 目前仅限 android 平台,c层调用该kt方法同步批量创建textLayout
224
+ * 批量同步文本布局至kotlin层,kotlin层会根据data数组进行处理(编译器生成指定函数switch执行具体的创建逻辑)
227
225
  * 需要确保调用时机(确保在排版之前同步触发):
228
226
  * 当页面首次渲染时,在调用c层renderElement之后同步调用
229
227
  * 当页面二次更新时,在flushJobs中所有element jobs执行完之后调用
230
228
  * @internal
231
229
  */
232
- _flushTextLayouts(): void
230
+ _flushTextLayouts(data: IntArray): void
233
231
  }
234
232
 
235
233
  abstract class UniSharedDataApp extends UniSharedData {
@@ -42,6 +42,13 @@ declare global {
42
42
  * "unixvVer": "5.0"
43
43
  * }
44
44
  * },
45
+ * "mp": {
46
+ * "weixin": {
47
+ * "osVer": "x",
48
+ * "uniVer": "x",
49
+ * "unixVer": "4.41"
50
+ * }
51
+ * },
45
52
  * "web": {
46
53
  * "uniVer": "x",
47
54
  * "unixVer": "4.0"