@byteluck-fe/model-driven-engine 2.7.0-alpha.40 → 2.7.0-alpha.41

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.
@@ -647,9 +647,6 @@ var Engine = /*#__PURE__*/ function(Watcher) {
647
647
  // this.setStates(newValue[i], i, options)
648
648
  // }
649
649
  var deleted = oldValue !== null && oldValue !== void 0 ? oldValue : [];
650
- if ((eventOptionsTemp === null || eventOptionsTemp === void 0 ? void 0 : eventOptionsTemp.listChange) === "noDelete") {
651
- deleted = [];
652
- }
653
650
  this.emit("list-change", {
654
651
  instance: instance,
655
652
  value: value,
@@ -1289,9 +1286,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1289
1286
  }
1290
1287
  });
1291
1288
  this.debugLog("engine setData方法数据组合完成,参数为%o。", newState);
1292
- this.setStates(newState, undefined, _object_spread({
1293
- listChange: "noDelete"
1294
- }, options));
1289
+ this.setStates(newState, undefined, options);
1295
1290
  this.debugLog("engine setData方法执行完成。");
1296
1291
  }
1297
1292
  },
@@ -197,10 +197,10 @@ export var CalcPlugin = /*#__PURE__*/ function() {
197
197
  var _this = this;
198
198
  this.calcControls.forEach(function(item) {
199
199
  // this.engine.getState(item.id)
200
- // if (item.props.dataBind.result.fieldCode === null || item.props.dataBind.result.fieldCode === undefined) {
201
- // formEngineModel在custom:beforeEngineMounted时调用二开赋值,导致表单值 set 了却没有做计算。
202
- _this.computedCalcValue(item);
203
- // }
200
+ if (item.props.dataBind.result.fieldCode === null || item.props.dataBind.result.fieldCode === undefined) {
201
+ // formEngineModel在custom:beforeEngineMounted时调用二开赋值,表单值 set 了却没有做计算。但这个是正常的
202
+ _this.computedCalcValue(item);
203
+ }
204
204
  });
205
205
  }
206
206
  },