@byteluck-fe/model-driven-engine 2.3.13-beta.2 → 2.3.13-beta.3
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 +13 -4
- package/dist/index.umd.js +6 -6
- package/package.json +2 -2
|
@@ -1165,11 +1165,20 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
1165
1165
|
Object.keys(dataSet).map(function(dataCode) {
|
|
1166
1166
|
var entity = dataSet[dataCode];
|
|
1167
1167
|
if (Array.isArray(entity)) {
|
|
1168
|
+
var mapping = _this.getDataBindMapping(dataCode);
|
|
1169
|
+
if (!mapping) {
|
|
1170
|
+
return;
|
|
1171
|
+
}
|
|
1172
|
+
if (!newState[mapping.dataViewId]) {
|
|
1173
|
+
newState[mapping.dataViewId] = {};
|
|
1174
|
+
}
|
|
1175
|
+
if (!entity.length) {
|
|
1176
|
+
var _newState_mapping_dataViewId_mapping_controlId;
|
|
1177
|
+
newState[mapping.dataViewId][mapping.controlId] = (_newState_mapping_dataViewId_mapping_controlId = newState[mapping.dataViewId][mapping.controlId]) !== null && _newState_mapping_dataViewId_mapping_controlId !== void 0 ? _newState_mapping_dataViewId_mapping_controlId : [];
|
|
1178
|
+
} else {
|
|
1179
|
+
newState[mapping.dataViewId][mapping.controlId] = [];
|
|
1180
|
+
}
|
|
1168
1181
|
entity.map(function(row) {
|
|
1169
|
-
var mapping = _this.getDataBindMapping(dataCode);
|
|
1170
|
-
if (!mapping) {
|
|
1171
|
-
return;
|
|
1172
|
-
}
|
|
1173
1182
|
var newRow = JSONCopy(_this.store.emptyState[mapping.dataViewId][mapping.controlId]);
|
|
1174
1183
|
var skipKey = [] //qiyu ObjectDataBind中会提前将相关key拿出来赋值,为了避免重复赋值,设置了此变量
|
|
1175
1184
|
;
|