@dcloudio/uni-app-x 0.7.103 → 0.7.105

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.103",
3
+ "version": "0.7.105",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -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 层方法
158
+ * @internal
159
+ */
160
+ _createTextLayouts(ids: IntArray): void
161
+ /**
162
+ * 由编译器动态生成的子类中的 Element 渲染器,C层
163
+ * @internal
164
+ */
165
+ _renderElement(): UniElementBlock
166
+
167
+ /**
168
+ * 由编译器动态生成的子类中的 Kotlin Element 渲染器,kt层
152
169
  * @internal
153
170
  */
154
- abstract _renderElement(): UniElementBlock
171
+ _renderKotlinElement(): UniElementBlock
172
+
155
173
  /**
156
- * 由编译器动态生成的子类中的 NativeView 渲染器
174
+ * 由编译器动态生成的子类中的 NativeView 渲染器,android平台是kt层,其他平台是c层
157
175
  * @internal
158
176
  */
159
177
  abstract _renderNativeView(): UniNativeViewBlock
@@ -273,11 +291,19 @@ declare global {
273
291
  constructor(scope: UniSharedDataPage)
274
292
  }
275
293
 
276
- class VueReactivity { }
294
+ enum TrackOpTypes {
295
+ GET = "get",
296
+ HAS = "has",
297
+ ITERATE = "iterate",
298
+ }
299
+
300
+ class VueReactivity {
301
+ track(target: object, type: TrackOpTypes, key: unknown): void
302
+ }
277
303
 
278
304
  // 编译宏
279
305
 
280
- interface UniSharedDataRegistry { }
306
+ interface UniSharedDataRegistry {}
281
307
 
282
308
  type InferSharedData<T, R extends UniSharedData = UniSharedData> = T extends keyof UniSharedDataRegistry ? UniSharedDataRegistry[T] : R
283
309
 
@@ -300,4 +326,4 @@ declare global {
300
326
  function observable(): any
301
327
  }
302
328
 
303
- export { }
329
+ export {}