@mpxjs/core 2.8.28 → 2.8.32

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/@types/index.d.ts CHANGED
@@ -484,6 +484,8 @@ export function reactive<T extends object> (target: T): Reactive<T>
484
484
 
485
485
  export function isReactive (value: unknown): boolean
486
486
 
487
+ export function markRaw<T extends object>(value: T): T
488
+
487
489
  export function shallowReactive<T extends object> (target: T): ShallowReactive<T>
488
490
 
489
491
  export function computed<T> (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.8.28",
3
+ "version": "2.8.32",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -47,5 +47,5 @@
47
47
  "url": "https://github.com/didi/mpx/issues"
48
48
  },
49
49
  "sideEffects": false,
50
- "gitHead": "4dc994fc42216ce85f58801578134184a2c279c8"
50
+ "gitHead": "76bc52fa3cb4d7c9071d2fb154e23434e7fcb184"
51
51
  }
package/src/core/proxy.js CHANGED
@@ -410,6 +410,7 @@ export default class MpxProxy {
410
410
  }
411
411
  const subPath = aIsSubPathOfB(key, tarKey)
412
412
  if (subPath) {
413
+ if (!this.miniRenderData[tarKey]) this.miniRenderData[tarKey] = {}
413
414
  // setByPath 更新miniRenderData中的子数据
414
415
  doGetByPath(this.miniRenderData[tarKey], subPath, (current, subKey, meta) => {
415
416
  if (meta.isEnd) {