@dckj-npm/dc-material 0.1.371 → 0.1.373

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.
@@ -64,41 +64,50 @@ var getImageStyleNumber = function getImageStyleNumber(target, styleKey) {
64
64
  var imageChildSchema = findImageChildSchema(target);
65
65
  return parsePxNumber(imageChildSchema === null || imageChildSchema === void 0 ? void 0 : (_imageChildSchema$pro = imageChildSchema.props) === null || _imageChildSchema$pro === void 0 ? void 0 : (_imageChildSchema$pro2 = _imageChildSchema$pro.style) === null || _imageChildSchema$pro2 === void 0 ? void 0 : _imageChildSchema$pro2[styleKey]);
66
66
  };
67
+
68
+ /**
69
+ * 异步写入 Image 子节点的 style,避免在 imgWidth/imgHeight.setValue 的同步执行栈内
70
+ * 触发引擎重评估 dataList.initialValue(会先清空 dataList prop,导致默认图覆盖绑定数据)。
71
+ * 通过 Promise.resolve().then() 将写入推迟到当前 settings 重评估完成后执行,
72
+ * 此时 dataList 已稳定为正确的 JSExpression,重评估无副作用。
73
+ */
67
74
  var syncImageStyleValue = function syncImageStyleValue(target, styleKey, value) {
68
- var _extends3;
69
- // 优先通过引擎节点 API 更新子节点 style,确保引擎感知变化(布局面板读取时可见)
70
- var imageChildNode = findImageChildNode(target);
71
- if (imageChildNode) {
72
- var _imageChildNode$getPr3, _extends2, _imageChildNode$setPr;
73
- var _currentStyle = ((_imageChildNode$getPr3 = imageChildNode.getPropValue) === null || _imageChildNode$getPr3 === void 0 ? void 0 : _imageChildNode$getPr3.call(imageChildNode, 'style')) || {};
74
- // 同时确保 width/height 都存在于子节点 style 中,防止布局面板 replace 时丢失其中一个
75
- var updatedStyle = _extends({}, _currentStyle, (_extends2 = {}, _extends2[styleKey] = value + "px", _extends2));
76
- // 如果另一轴尺寸在子节点 style 中不存在,则从父级 prop 补充,保证两轴都写入
77
- var otherKey = styleKey === 'width' ? 'height' : 'width';
78
- if (!updatedStyle[otherKey]) {
79
- var _target$getProps, _target$getProps$call, _target$getProps$call2;
80
- var otherPropKey = otherKey === 'width' ? 'imgWidth' : 'imgHeight';
81
- var otherPropValue = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$getProps = target.getProps) === null || _target$getProps === void 0 ? void 0 : (_target$getProps$call = _target$getProps.call(target)) === null || _target$getProps$call === void 0 ? void 0 : (_target$getProps$call2 = _target$getProps$call.getPropValue) === null || _target$getProps$call2 === void 0 ? void 0 : _target$getProps$call2.call(_target$getProps$call, otherPropKey));
82
- if (otherPropValue !== undefined) {
83
- updatedStyle[otherKey] = otherPropValue + "px";
84
- } else {
85
- // 子节点 style 也没有,使用默认值 100
86
- updatedStyle[otherKey] = '100px';
75
+ Promise.resolve().then(function () {
76
+ var _extends3;
77
+ // 优先通过引擎节点 API 更新子节点 style,确保引擎感知变化(布局面板读取时可见)
78
+ var imageChildNode = findImageChildNode(target);
79
+ if (imageChildNode) {
80
+ var _imageChildNode$getPr3, _extends2, _imageChildNode$setPr;
81
+ var _currentStyle = ((_imageChildNode$getPr3 = imageChildNode.getPropValue) === null || _imageChildNode$getPr3 === void 0 ? void 0 : _imageChildNode$getPr3.call(imageChildNode, 'style')) || {};
82
+ // 同时确保 width/height 都存在于子节点 style 中,防止布局面板 replace 时丢失其中一个
83
+ var updatedStyle = _extends({}, _currentStyle, (_extends2 = {}, _extends2[styleKey] = value + "px", _extends2));
84
+ // 如果另一轴尺寸在子节点 style 中不存在,则从父级 prop 补充,保证两轴都写入
85
+ var otherKey = styleKey === 'width' ? 'height' : 'width';
86
+ if (!updatedStyle[otherKey]) {
87
+ var _target$getProps, _target$getProps$call, _target$getProps$call2;
88
+ var otherPropKey = otherKey === 'width' ? 'imgWidth' : 'imgHeight';
89
+ var otherPropValue = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$getProps = target.getProps) === null || _target$getProps === void 0 ? void 0 : (_target$getProps$call = _target$getProps.call(target)) === null || _target$getProps$call === void 0 ? void 0 : (_target$getProps$call2 = _target$getProps$call.getPropValue) === null || _target$getProps$call2 === void 0 ? void 0 : _target$getProps$call2.call(_target$getProps$call, otherPropKey));
90
+ if (otherPropValue !== undefined) {
91
+ updatedStyle[otherKey] = otherPropValue + "px";
92
+ } else {
93
+ // 子节点 style 也没有,使用默认值 100
94
+ updatedStyle[otherKey] = '100px';
95
+ }
87
96
  }
97
+ (_imageChildNode$setPr = imageChildNode.setPropValue) === null || _imageChildNode$setPr === void 0 ? void 0 : _imageChildNode$setPr.call(imageChildNode, 'style', updatedStyle);
98
+ return;
88
99
  }
89
- (_imageChildNode$setPr = imageChildNode.setPropValue) === null || _imageChildNode$setPr === void 0 ? void 0 : _imageChildNode$setPr.call(imageChildNode, 'style', updatedStyle);
90
- return;
91
- }
92
- // 降级:直接写 schema(引擎无法感知,但保留作为兜底)
93
- var imageChildSchema = findImageChildSchema(target);
94
- if (!imageChildSchema) {
95
- return;
96
- }
97
- if (!imageChildSchema.props) {
98
- imageChildSchema.props = {};
99
- }
100
- var currentStyle = imageChildSchema.props.style || {};
101
- imageChildSchema.props.style = _extends({}, currentStyle, (_extends3 = {}, _extends3[styleKey] = value + "px", _extends3));
100
+ // 降级:直接写 schema(引擎无法感知,但保留作为兜底)
101
+ var imageChildSchema = findImageChildSchema(target);
102
+ if (!imageChildSchema) {
103
+ return;
104
+ }
105
+ if (!imageChildSchema.props) {
106
+ imageChildSchema.props = {};
107
+ }
108
+ var currentStyle = imageChildSchema.props.style || {};
109
+ imageChildSchema.props.style = _extends({}, currentStyle, (_extends3 = {}, _extends3[styleKey] = value + "px", _extends3));
110
+ });
102
111
  };
103
112
  var syncImageDimensionPropsFromChild = function syncImageDimensionPropsFromChild(target) {
104
113
  var _target$getProps2;
@@ -127,30 +136,30 @@ var isDataListBoundExpression = function isDataListBoundExpression(target) {
127
136
  };
128
137
 
129
138
  /**
130
- * 模块级 WeakMap 缓存:以 IPublicModelNode 对象引用为 key,存储每个 TeletextList 节点
131
- * 最后一次已知的「非默认」dataList 值。
132
- *
133
- * 作用:在 setPropValue 触发的 settings 重评估中,引擎可能先将 node prop 清空再调用
134
- * dataList.initialValue;此时 node.getPropValue 与 getProps().getPropValue 均返回
135
- * undefined,导致 initialValue 回退默认数组、覆盖已绑定的 JSExpression 或用户数据。
136
- * 通过在每次 imgWidth/imgHeight/imagePlacement.setValue 执行任何 setPropValue 之前
137
- * 将当前 dataList 写入此缓存,initialValue 可从缓存安全恢复,彻底切断引擎中间态影响。
139
+ * 模块级缓存:使用 node.id(稳定的字符串 ID)作为 key
140
+ * 替代 WeakMap 方案:WeakMap 以 target.node 对象引用为 key,
141
+ * 但引擎可能通过 Proxy/getter 每次返回不同的包装对象,导致缓存命中失败。
142
+ * 使用 node.id 字符串做 key 彻底消除引用不一致问题。
138
143
  */
139
- var _nodeDataListCache = new WeakMap();
144
+ var _dataListCacheById = {};
140
145
  var _cacheDataList = function _cacheDataList(target) {
141
- var _node$getPropValue, _target$getProps4, _target$getProps4$cal, _target$getProps4$cal2;
142
- var node = target === null || target === void 0 ? void 0 : target.node;
143
- if (!node) return;
144
- // 优先从 node API 读取(schema 层,不受 settings 重评估中间态影响)
145
- var fromNode = node === null || node === void 0 ? void 0 : (_node$getPropValue = node.getPropValue) === null || _node$getPropValue === void 0 ? void 0 : _node$getPropValue.call(node, 'dataList');
146
+ var _target$node3, _target$node4, _target$node4$getProp, _target$node5, _target$node5$schema, _target$node5$schema$, _target$getProps4, _target$getProps4$cal, _target$getProps4$cal2;
147
+ var nodeId = target === null || target === void 0 ? void 0 : (_target$node3 = target.node) === null || _target$node3 === void 0 ? void 0 : _target$node3.id;
148
+ if (!nodeId) return;
149
+ var fromNode = target === null || target === void 0 ? void 0 : (_target$node4 = target.node) === null || _target$node4 === void 0 ? void 0 : (_target$node4$getProp = _target$node4.getPropValue) === null || _target$node4$getProp === void 0 ? void 0 : _target$node4$getProp.call(_target$node4, 'dataList');
146
150
  if (fromNode !== undefined) {
147
- _nodeDataListCache.set(node, fromNode);
151
+ _dataListCacheById[nodeId] = fromNode;
152
+ return;
153
+ }
154
+ // schema 序列化快照:源头数据,不受 settings 中间态影响
155
+ var fromSchema = target === null || target === void 0 ? void 0 : (_target$node5 = target.node) === null || _target$node5 === void 0 ? void 0 : (_target$node5$schema = _target$node5.schema) === null || _target$node5$schema === void 0 ? void 0 : (_target$node5$schema$ = _target$node5$schema.props) === null || _target$node5$schema$ === void 0 ? void 0 : _target$node5$schema$.dataList;
156
+ if (fromSchema !== undefined) {
157
+ _dataListCacheById[nodeId] = fromSchema;
148
158
  return;
149
159
  }
150
- // 降级:从 settings API 读取
151
160
  var fromProps = target === null || target === void 0 ? void 0 : (_target$getProps4 = target.getProps) === null || _target$getProps4 === void 0 ? void 0 : (_target$getProps4$cal = _target$getProps4.call(target)) === null || _target$getProps4$cal === void 0 ? void 0 : (_target$getProps4$cal2 = _target$getProps4$cal.getPropValue) === null || _target$getProps4$cal2 === void 0 ? void 0 : _target$getProps4$cal2.call(_target$getProps4$cal, 'dataList');
152
161
  if (fromProps !== undefined) {
153
- _nodeDataListCache.set(node, fromProps);
162
+ _dataListCacheById[nodeId] = fromProps;
154
163
  }
155
164
  };
156
165
  var TeletextListMeta = {
@@ -336,17 +345,15 @@ var TeletextListMeta = {
336
345
  return;
337
346
  }
338
347
  var props = target.getProps();
339
- // 在任何 setPropValue 之前先写入模块级缓存(与 imagePlacement.setValue 同策略)
340
348
  _cacheDataList(target);
341
- // 快照需要保护的数据,防止 syncImageStyleValue imageChildNode.setPropValue
342
- // 触发引擎重评估 dataList.initialValue,导致 dataList 被重置为默认图
349
+ // 快照 dataList:在 setPropValue 前捕获,防止引擎重评估时被默认值覆盖
343
350
  var prevDataList = props.getPropValue('dataList');
344
- var prevDataListBind = props.getPropValue('dataListBind');
345
351
  props.setPropValue('imgWidth', parsedValue);
352
+ // 还原 dataList(幂等操作,若引擎未覆盖则无副作用)
353
+ if (prevDataList !== undefined) {
354
+ props.setPropValue('dataList', prevDataList);
355
+ }
346
356
  syncImageStyleValue(target, 'width', parsedValue);
347
- // 还原被保护的数据(幂等操作,若引擎未重置则无副作用)
348
- if (prevDataList !== undefined) props.setPropValue('dataList', prevDataList);
349
- if (prevDataListBind !== undefined) props.setPropValue('dataListBind', prevDataListBind);
350
357
  }
351
358
  }
352
359
  }, {
@@ -407,17 +414,15 @@ var TeletextListMeta = {
407
414
  return;
408
415
  }
409
416
  var props = target.getProps();
410
- // 在任何 setPropValue 之前先写入模块级缓存(与 imagePlacement.setValue 同策略)
411
417
  _cacheDataList(target);
412
- // 快照需要保护的数据,防止 syncImageStyleValue imageChildNode.setPropValue
413
- // 触发引擎重评估 dataList.initialValue,导致 dataList 被重置为默认图
418
+ // 快照 dataList:在 setPropValue 前捕获,防止引擎重评估时被默认值覆盖
414
419
  var prevDataList = props.getPropValue('dataList');
415
- var prevDataListBind = props.getPropValue('dataListBind');
416
420
  props.setPropValue('imgHeight', parsedValue);
421
+ // 还原 dataList(幂等操作,若引擎未覆盖则无副作用)
422
+ if (prevDataList !== undefined) {
423
+ props.setPropValue('dataList', prevDataList);
424
+ }
417
425
  syncImageStyleValue(target, 'height', parsedValue);
418
- // 还原被保护的数据(幂等操作,若引擎未重置则无副作用)
419
- if (prevDataList !== undefined) props.setPropValue('dataList', prevDataList);
420
- if (prevDataListBind !== undefined) props.setPropValue('dataListBind', prevDataListBind);
421
426
  }
422
427
  }
423
428
  }, {
@@ -491,9 +496,9 @@ var TeletextListMeta = {
491
496
  },
492
497
  extraProps: {
493
498
  setValue: function setValue(target, value) {
494
- var _target$node3, _schemaChildren$filte, _target$parent, _target$parent$items;
499
+ var _target$node6, _schemaChildren$filte, _target$parent, _target$parent$items;
495
500
  target.getProps().setPropValue('textLines', value);
496
- var schema = target === null || target === void 0 ? void 0 : (_target$node3 = target.node) === null || _target$node3 === void 0 ? void 0 : _target$node3.schema;
501
+ var schema = target === null || target === void 0 ? void 0 : (_target$node6 = target.node) === null || _target$node6 === void 0 ? void 0 : _target$node6.schema;
497
502
  var node = target === null || target === void 0 ? void 0 : target.node;
498
503
  var schemaChildren = Array.isArray(schema === null || schema === void 0 ? void 0 : schema.children) ? schema.children : [];
499
504
 
@@ -887,30 +892,31 @@ var TeletextListMeta = {
887
892
  }
888
893
  },
889
894
  initialValue: function initialValue(target) {
890
- var _node$getPropValue2, _target$getProps1, _target$getProps1$cal, _target$getProps1$cal2;
891
- // 读取顺序(由最可靠到最不可靠):
892
- // 1. node API(schema 层,引擎重评估前通常仍有值)
893
- // 2. 模块级 WeakMap 缓存(在任何 setPropValue 之前写入,完全不受引擎清空影响)
894
- // 3. settings API(重评估中间态下可能已清空,作为最后手段)
895
- // 4. 默认占位数据(仅首次创建组件时触达)
896
- var node = target === null || target === void 0 ? void 0 : target.node;
897
- var fromNode = node === null || node === void 0 ? void 0 : (_node$getPropValue2 = node.getPropValue) === null || _node$getPropValue2 === void 0 ? void 0 : _node$getPropValue2.call(node, 'dataList');
895
+ var _target$node7, _target$node8, _target$node8$getProp, _target$getProps1, _target$getProps1$cal, _target$getProps1$cal2, _target$node9, _target$node9$schema, _target$node9$schema$;
896
+ var nodeId = target === null || target === void 0 ? void 0 : (_target$node7 = target.node) === null || _target$node7 === void 0 ? void 0 : _target$node7.id;
897
+ // 1. node API
898
+ var fromNode = target === null || target === void 0 ? void 0 : (_target$node8 = target.node) === null || _target$node8 === void 0 ? void 0 : (_target$node8$getProp = _target$node8.getPropValue) === null || _target$node8$getProp === void 0 ? void 0 : _target$node8$getProp.call(_target$node8, 'dataList');
898
899
  if (fromNode !== undefined) {
899
- // 同步更新缓存,为后续可能的重评估提供后备
900
- if (node) _nodeDataListCache.set(node, fromNode);
900
+ if (nodeId) _dataListCacheById[nodeId] = fromNode;
901
901
  return fromNode;
902
902
  }
903
- // node.getPropValue 返回 undefined:引擎已在调用 initialValue 前清空 node prop
904
- // 读取模块级缓存(在 setValue 中任何 setPropValue 之前写入,最可靠的后备)
905
- var cached = node ? _nodeDataListCache.get(node) : undefined;
906
- if (cached !== undefined) {
907
- return cached;
903
+ // 2. 模块级缓存(node.id 索引,不受 Proxy 引用问题影响)
904
+ if (nodeId && _dataListCacheById[nodeId] !== undefined) {
905
+ return _dataListCacheById[nodeId];
908
906
  }
907
+ // 3. settings API
909
908
  var current = target === null || target === void 0 ? void 0 : (_target$getProps1 = target.getProps) === null || _target$getProps1 === void 0 ? void 0 : (_target$getProps1$cal = _target$getProps1.call(target)) === null || _target$getProps1$cal === void 0 ? void 0 : (_target$getProps1$cal2 = _target$getProps1$cal.getPropValue) === null || _target$getProps1$cal2 === void 0 ? void 0 : _target$getProps1$cal2.call(_target$getProps1$cal, 'dataList');
910
909
  if (current !== undefined) {
911
- if (node) _nodeDataListCache.set(node, current);
910
+ if (nodeId) _dataListCacheById[nodeId] = current;
912
911
  return current;
913
912
  }
913
+ // 4. schema 序列化快照(源头数据,不受 settings 中间态影响)
914
+ var fromSchema = target === null || target === void 0 ? void 0 : (_target$node9 = target.node) === null || _target$node9 === void 0 ? void 0 : (_target$node9$schema = _target$node9.schema) === null || _target$node9$schema === void 0 ? void 0 : (_target$node9$schema$ = _target$node9$schema.props) === null || _target$node9$schema$ === void 0 ? void 0 : _target$node9$schema$.dataList;
915
+ if (fromSchema !== undefined) {
916
+ if (nodeId) _dataListCacheById[nodeId] = fromSchema;
917
+ return fromSchema;
918
+ }
919
+ // 5. 默认数据(仅首次创建组件时触达)
914
920
  return [{
915
921
  image: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
916
922
  title: '标题名称',
@@ -931,55 +937,49 @@ var TeletextListMeta = {
931
937
  },
932
938
  extraProps: {
933
939
  /**
934
- * 自定义 getValue:保证引擎重评估期间 field.getValue() 始终返回有效值(非 undefined),
935
- * 从而阻止 initDefaultValue 在不应该的时机调用 initialValue 并覆盖为默认图数组。
936
- *
937
- * 触发场景:修改 imgWidth/imgHeight 或通过布局面板修改图片 margin 时,
938
- * imageChildNode.setPropValue('style', ...) 会触发引擎对父节点 settings 的重评估;
939
- * 若此时 dataList Prop 处于 "unset" 中间态,parent.getPropValue 会返回 undefined,
940
- * 导致不带 getValue 时 field.getValue() = undefined → initDefaultValue 触发 → 默认图。
941
- * 有了此 getValue 后,即使 schema 层暂时返回 undefined,从缓存取值仍可返回用户数据,
942
- * field.getValue() 非 undefined → initDefaultValue 永远跳过 → 默认图问题彻底消失。
940
+ * 保证引擎重评估期间 field.getValue() 始终返回有效值(非 undefined),
941
+ * 阻止 initDefaultValue 覆盖已绑定的 JSExpression。
942
+ * 回退链:currentValue → 缓存(node.id) → schema 快照 → node API。
943
943
  */
944
944
  getValue: function getValue(target, currentValue) {
945
- var node = target === null || target === void 0 ? void 0 : target.node;
945
+ var _target$node0, _target$node1, _target$node1$schema, _target$node1$schema$, _target$node10, _target$node10$getPro;
946
+ var nodeId = target === null || target === void 0 ? void 0 : (_target$node0 = target.node) === null || _target$node0 === void 0 ? void 0 : _target$node0.id;
946
947
  if (currentValue !== undefined) {
947
- // schema 层有值:同步更新缓存,确保用户最新编辑的数据被记录
948
- if (node) _nodeDataListCache.set(node, currentValue);
948
+ if (nodeId) _dataListCacheById[nodeId] = currentValue;
949
949
  return currentValue;
950
950
  }
951
- // schema 层暂时无值(引擎重评估中间态):从缓存恢复,避免 initDefaultValue 触发
952
- var cached = node ? _nodeDataListCache.get(node) : undefined;
953
- return cached; // undefined 仅在缓存为空(全新组件首次初始化)时出现,属正常情况
951
+ // 引擎 currentValue undefined(重评估中间态),逐级回退:
952
+ if (nodeId && _dataListCacheById[nodeId] !== undefined) {
953
+ return _dataListCacheById[nodeId];
954
+ }
955
+ // node.schema 序列化快照:不受 settings 中间态影响,是最可靠的源头数据
956
+ var fromSchema = target === null || target === void 0 ? void 0 : (_target$node1 = target.node) === null || _target$node1 === void 0 ? void 0 : (_target$node1$schema = _target$node1.schema) === null || _target$node1$schema === void 0 ? void 0 : (_target$node1$schema$ = _target$node1$schema.props) === null || _target$node1$schema$ === void 0 ? void 0 : _target$node1$schema$.dataList;
957
+ if (fromSchema !== undefined) {
958
+ if (nodeId) _dataListCacheById[nodeId] = fromSchema;
959
+ return fromSchema;
960
+ }
961
+ var fromNode = target === null || target === void 0 ? void 0 : (_target$node10 = target.node) === null || _target$node10 === void 0 ? void 0 : (_target$node10$getPro = _target$node10.getPropValue) === null || _target$node10$getPro === void 0 ? void 0 : _target$node10$getPro.call(_target$node10, 'dataList');
962
+ if (fromNode !== undefined) {
963
+ if (nodeId) _dataListCacheById[nodeId] = fromNode;
964
+ return fromNode;
965
+ }
966
+ return undefined;
954
967
  },
955
968
  /**
956
- * 自定义 setValue:用户每次编辑 dataList 条目时,先更新 WeakMap 缓存,
957
- * 再通过 node.setPropValue 将值持久化到 schema
958
- *
959
- * ⚠️ 此引擎中 extraProps.setValue 完全接管写入逻辑,引擎不会自动持久化:
960
- * 若不在此处显式调用 setPropValue,用户编辑的数据将只存于内存缓存,
961
- * 页面刷新后丢失,同时 imgWidth/imgHeight.setValue 的快照–还原机制也因
962
- * props.getPropValue('dataList') 返回 undefined 而失效,导致还原跳过,
963
- * 进而触发引擎 initDefaultValue,画布回退默认图。
964
- *
965
- * 写入顺序:先缓存(供 initialValue/getValue 兜底),再写 schema(持久化)。
966
- * 写入 schema 会触发引擎对 settings 的重评估,但此时 schema 已有值,
967
- * initialValue 不会被调用,不会产生循环。
969
+ * 用户编辑 dataList 时同步更新缓存并持久化到 schema。
970
+ * 引擎 extraProps.setValue 完全接管写入,必须显式 setPropValue
968
971
  */
969
972
  setValue: function setValue(target, value) {
970
- var node = target === null || target === void 0 ? void 0 : target.node;
971
- if (!node) return;
973
+ var _target$node11;
974
+ var nodeId = target === null || target === void 0 ? void 0 : (_target$node11 = target.node) === null || _target$node11 === void 0 ? void 0 : _target$node11.id;
975
+ if (!nodeId) return;
972
976
  if (value !== undefined) {
973
977
  var _target$getProps10, _target$getProps10$ca, _target$getProps10$ca2;
974
- // 先写缓存,确保重评估期间 getValue 可从缓存返回有效值
975
- _nodeDataListCache.set(node, value);
976
- // 再持久化到 schema(引擎不会自动写入,必须显式调用)
978
+ _dataListCacheById[nodeId] = value;
977
979
  (_target$getProps10 = target.getProps) === null || _target$getProps10 === void 0 ? void 0 : (_target$getProps10$ca = _target$getProps10.call(target)) === null || _target$getProps10$ca === void 0 ? void 0 : (_target$getProps10$ca2 = _target$getProps10$ca.setPropValue) === null || _target$getProps10$ca2 === void 0 ? void 0 : _target$getProps10$ca2.call(_target$getProps10$ca, 'dataList', value);
978
980
  } else {
979
981
  var _target$getProps11, _target$getProps11$ca, _target$getProps11$ca2;
980
- // clearValue 场景(value = undefined):清空缓存,使下次 initDefaultValue
981
- // 可正常返回默认数组(仅用于组件被显式清除数据的情况)
982
- _nodeDataListCache["delete"](node);
982
+ delete _dataListCacheById[nodeId];
983
983
  (_target$getProps11 = target.getProps) === null || _target$getProps11 === void 0 ? void 0 : (_target$getProps11$ca = _target$getProps11.call(target)) === null || _target$getProps11$ca === void 0 ? void 0 : (_target$getProps11$ca2 = _target$getProps11$ca.setPropValue) === null || _target$getProps11$ca2 === void 0 ? void 0 : _target$getProps11$ca2.call(_target$getProps11$ca, 'dataList', undefined);
984
984
  }
985
985
  }
@@ -122,7 +122,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
122
122
  packageName = '@dckj-npm/dc-material';
123
123
  }
124
124
  if (version === void 0) {
125
- version = '0.1.371';
125
+ version = '0.1.373';
126
126
  }
127
127
  if (basicLibraryVersion === void 0) {
128
128
  basicLibraryVersion = {