@byteluck-fe/model-driven-engine 2.1.0-sourcemap.6 → 2.1.0-sourcemap.8
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.
|
@@ -114,8 +114,8 @@ export var Runtime = /*#__PURE__*/ function(RegisterControls) {
|
|
|
114
114
|
var instances = [];
|
|
115
115
|
var instanceMap = {};
|
|
116
116
|
loop(this._instance, function(item) {
|
|
117
|
-
// 3.4.1 避免将subtable-
|
|
118
|
-
if (item.type === "subtable-
|
|
117
|
+
// 3.4.1 避免将 subtable-column 放到 _flatInstances 中
|
|
118
|
+
if (item.type === "subtable-column") {
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
instances.push(item);
|
|
@@ -228,16 +228,15 @@ function flatInstanceForChildren(controls) {
|
|
|
228
228
|
if (keys.length === 0) return undefined;
|
|
229
229
|
var oneKey = keys[0];
|
|
230
230
|
var otherKeys = keys.slice(1);
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
cc.
|
|
236
|
-
cc.
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
cc.
|
|
240
|
-
cc.timeEnd("findItem instanceMap match");
|
|
231
|
+
// 3.4.1 优化速度,读取instanceMap
|
|
232
|
+
// cc.time('findItem flatInstance find')
|
|
233
|
+
// const initInstance = flatInstance.find((item) => item.id === oneKey)
|
|
234
|
+
// cc.log('🏠 findItem flatInstance find result', initInstance)
|
|
235
|
+
// cc.timeEnd('findItem flatInstance find')
|
|
236
|
+
// cc.time('findItem instanceMap match')
|
|
237
|
+
var initInstance = instanceMap[oneKey];
|
|
238
|
+
// cc.log('🏠 findItem instanceMap match result', initInstance)
|
|
239
|
+
// cc.timeEnd('findItem instanceMap match')
|
|
241
240
|
if (otherKeys.length === 0) return initInstance;
|
|
242
241
|
// @ts-ignore
|
|
243
242
|
return otherKeys.reduce(function(prevItem, key) {
|