@byteluck-fe/model-driven-engine 6.1.0-1-beta.1 → 6.1.0-1-beta.2
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/dist/esm/common/Engine.js +6 -2
- package/dist/index.umd.js +6 -6
- package/package.json +4 -4
|
@@ -1355,8 +1355,12 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
1355
1355
|
var objValue = (_this_getEmptyState = _this.getEmptyState(mapping.controlId)) !== null && _this_getEmptyState !== void 0 ? _this_getEmptyState : {};
|
|
1356
1356
|
Object.keys(mapping.dataBind).map(function(key) {
|
|
1357
1357
|
var dataBind = mapping.dataBind[key];
|
|
1358
|
-
|
|
1359
|
-
|
|
1358
|
+
//金额及计算公式控件在赋值时会经过两次 且当控件值不为同一个模型时,会赋值两次 会导致前后覆盖行为。
|
|
1359
|
+
if (dataSet[dataBind.dataCode]) {
|
|
1360
|
+
var extendEntity = dataSet[dataBind.dataCode];
|
|
1361
|
+
if (extendEntity[dataBind.fieldCode] !== undefined) {
|
|
1362
|
+
objValue[key] = extendEntity[dataBind.fieldCode];
|
|
1363
|
+
}
|
|
1360
1364
|
}
|
|
1361
1365
|
skipKey.push(dataBind.fieldCode);
|
|
1362
1366
|
});
|