@byteluck-fe/model-driven-engine 2.8.0-alpha.1e → 2.8.0-alpha.1f
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 +4 -0
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
|
@@ -1237,7 +1237,11 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
1237
1237
|
value: function setData(dataSet, options) {
|
|
1238
1238
|
var _this = this;
|
|
1239
1239
|
this.debugLog("engine setData方法执行,参数为%o,%o。", dataSet, options);
|
|
1240
|
+
var onlySetData = options === null || options === void 0 ? void 0 : options.onlySetData;
|
|
1240
1241
|
var newState = this.store.defaultState;
|
|
1242
|
+
if (onlySetData === true) {
|
|
1243
|
+
newState = {};
|
|
1244
|
+
}
|
|
1241
1245
|
Object.keys(dataSet).map(function(dataCode) {
|
|
1242
1246
|
var entity = dataSet[dataCode];
|
|
1243
1247
|
if (Array.isArray(entity)) {
|