@dcloudio/uni-app-x 0.7.111 → 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.111",
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,20 +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
153
- * 需要将接收到的数据存储到 scope 的 _textLayouts 上边(可以考虑先临时存储成二维数组,最后传递给kt时,格式化成一维的IntArray)
154
- * [len1, vueId, fid, eid, nodeId..., len2, vueId, fid, eid, nodeId..., ...]
155
- * 每组数据前有一个 len,表示该组数据的元素个数(不含 len 本身)
154
+ * 需要将接收到的数据存储到 scope 的 _textLayouts 中,每4个一组
155
+ * [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
156
156
  * @internal
157
157
  */
158
158
  _createTextLayout(fid: number, eid: number, nodeId: number): void
159
- /**
160
- * 批量创建文本布局,kotlin 层方法
161
- * @internal
162
- */
163
- _createTextLayouts(data: IntArray, offset: Int, len: Int): void
164
159
  /**
165
160
  * 由编译器动态生成的子类中的 Element 渲染器,C层
166
161
  * @internal
@@ -205,7 +200,7 @@ declare global {
205
200
  /**
206
201
  * 目前仅限 android 平台
207
202
  * 文本布局缓存数组
208
- * [len1, vueId, fid, eid, nodeId..., len2, vueId, fid, eid, nodeId..., ...]
203
+ * [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
209
204
  * @internal
210
205
  */
211
206
  _textLayouts: IntArray
@@ -225,14 +220,14 @@ declare global {
225
220
  */
226
221
  _render: () => Promise<void>
227
222
  /**
228
- * 目前仅限 android 平台
229
- * 批量同步文本布局至kotlin层,kotlin层会根据_textLayouts数组进行处理(编译器生成指定函数switch执行具体的创建逻辑)
223
+ * 目前仅限 android 平台,c层调用该kt方法同步批量创建textLayout
224
+ * 批量同步文本布局至kotlin层,kotlin层会根据data数组进行处理(编译器生成指定函数switch执行具体的创建逻辑)
230
225
  * 需要确保调用时机(确保在排版之前同步触发):
231
226
  * 当页面首次渲染时,在调用c层renderElement之后同步调用
232
227
  * 当页面二次更新时,在flushJobs中所有element jobs执行完之后调用
233
228
  * @internal
234
229
  */
235
- _flushTextLayouts(): void
230
+ _flushTextLayouts(data: IntArray): void
236
231
  }
237
232
 
238
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"