@byteluck-fe/model-driven-engine 1.7.6-bete.2 → 1.7.6-bete.4
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.
|
@@ -365,6 +365,12 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
365
365
|
_this.__pluginsApplied = false;
|
|
366
366
|
_this.actionManager = new ActionManager();
|
|
367
367
|
_this._jobTasks = [];
|
|
368
|
+
/**
|
|
369
|
+
* 用于存储运行态无需proxy的数据
|
|
370
|
+
* from v1.7.6-beta
|
|
371
|
+
*/ _this.rawStore = {
|
|
372
|
+
UPDATE_IDS: {}
|
|
373
|
+
};
|
|
368
374
|
_this.createControlInstance = _this.createInstance;
|
|
369
375
|
_this.$options = Object.freeze(props);
|
|
370
376
|
var _this_$options = _this.$options, _this_$options_autoMount = _this_$options.autoMount, autoMount = _this_$options_autoMount === void 0 ? true : _this_$options_autoMount, schema = _this_$options.schema, beforeCreateInstance = _this_$options.beforeCreateInstance, externalParams = _this_$options.externalParams, _this_$options_language = _this_$options.// fieldModel,
|
|
@@ -432,9 +438,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
432
438
|
_proto._proxyStateBeforeSetCallback = function _proxyStateBeforeSetCallback(state, key, newValue, oldValue) {
|
|
433
439
|
var _this = this;
|
|
434
440
|
var cc = console;
|
|
435
|
-
cc.time("㊗️_proxyStateBeforeSetCallback findItem");
|
|
441
|
+
cc.time("㊗️_proxyStateBeforeSetCallback findItem" + key);
|
|
436
442
|
var instance = findItem(this.runtime.flatInstances, key);
|
|
437
|
-
cc.timeLog("㊗️_proxyStateBeforeSetCallback findItem");
|
|
443
|
+
cc.timeLog("㊗️_proxyStateBeforeSetCallback findItem" + key);
|
|
438
444
|
// 找不到控件说明不是改动控件上的字段,直接通过
|
|
439
445
|
if (!instance) {
|
|
440
446
|
return newValue;
|
|
@@ -476,9 +482,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
476
482
|
_proto._handlerArrayUpdate = function _handlerArrayUpdate(state, key, type, args, result) {
|
|
477
483
|
var _this = this;
|
|
478
484
|
var cc = console;
|
|
479
|
-
cc.time("㊗️ _handlerArrayUpdate findItem");
|
|
485
|
+
cc.time("㊗️ _handlerArrayUpdate findItem" + key);
|
|
480
486
|
var subtable = findItem(this.runtime.flatInstances, key);
|
|
481
|
-
cc.timeLog("㊗️ _handlerArrayUpdate findItem");
|
|
487
|
+
cc.timeLog("㊗️ _handlerArrayUpdate findItem" + key);
|
|
482
488
|
if (!_instanceof(subtable, RuntimeListControl)) return;
|
|
483
489
|
// 新增多行方法
|
|
484
490
|
var createRows = function(len) {
|
|
@@ -569,9 +575,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
569
575
|
};
|
|
570
576
|
_proto._handlerObjectUpdate = function _handlerObjectUpdate(state, key, value, oldValue) {
|
|
571
577
|
var cc = console;
|
|
572
|
-
cc.time("㊗️_handlerObjectUpdate findItem");
|
|
578
|
+
cc.time("㊗️_handlerObjectUpdate findItem" + key);
|
|
573
579
|
var instance = findItem(this.runtime.flatInstances, key);
|
|
574
|
-
cc.timeLog("㊗️_handlerObjectUpdate findItem");
|
|
580
|
+
cc.timeLog("㊗️_handlerObjectUpdate findItem" + key);
|
|
575
581
|
if (!instance) {
|
|
576
582
|
return;
|
|
577
583
|
}
|