@byteluck-fe/model-driven-engine 2.1.0-sourcemap.3 → 2.1.0-sourcemap.5

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.
@@ -1130,7 +1130,11 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1130
1130
  * @param header 明细表内是否获取表头的控件
1131
1131
  */ _proto.getInstances = function getInstances(controlId) {
1132
1132
  var header = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
1133
+ var cc = console;
1134
+ var label = "\uD83D\uDC11 genInstances " + controlId + " " + Date.now();
1135
+ cc.time(label);
1133
1136
  if (controlId === undefined) {
1137
+ cc.timeEnd(label);
1134
1138
  return this.runtime.flatInstances;
1135
1139
  }
1136
1140
  var instances = this.runtime.flatInstances.filter(// @ts-ignore
@@ -1173,6 +1177,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1173
1177
  }
1174
1178
  }
1175
1179
  }
1180
+ cc.timeEnd(label);
1176
1181
  return instances;
1177
1182
  };
1178
1183
  _proto.setInstance = function setInstance(instance, props, value, rowIndex) {
@@ -114,6 +114,10 @@ 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-row 放到 _flatInstances 中
118
+ if (item.type === "subtable-row") {
119
+ return;
120
+ }
117
121
  instances.push(item);
118
122
  if (!instanceMap[item.id]) {
119
123
  instanceMap[item.id] = [];