bk-magic-vue 2.5.9-beta.31 → 2.5.9-beta.32

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.
@@ -54411,17 +54411,6 @@
54411
54411
 
54412
54412
  setInstaller(__vue_component__$1k);
54413
54413
 
54414
- var meta$1 = _meta.onFreeze;
54415
- _objectSap('freeze', function ($freeze) {
54416
- return function freeze(it) {
54417
- return $freeze && _isObject(it) ? $freeze(meta$1(it)) : it;
54418
- };
54419
- });
54420
-
54421
- var freeze = _core.Object.freeze;
54422
-
54423
- var freeze$1 = freeze;
54424
-
54425
54414
  var getNodeId = function getNodeId(data, tree) {
54426
54415
  var idKey = tree.nodeOptions.idKey;
54427
54416
  if (typeof idKey === 'function') {
@@ -55039,6 +55028,7 @@
55039
55028
  data: function data() {
55040
55029
  return {
55041
55030
  nodes: [],
55031
+ map: {},
55042
55032
  selected: this.defaultSelectedNode,
55043
55033
  needsCalculateNodes: [],
55044
55034
  calculateTimer: null,
@@ -55092,58 +55082,26 @@
55092
55082
  data: function data(value) {
55093
55083
  this.setData(value);
55094
55084
  },
55095
- hasLine: {
55096
- handler: function handler() {
55097
- if (this.hasLine) {
55098
- this.needsCalculateNodes = freeze$1([].concat(_toConsumableArray(this.needsCalculateNodes), _toConsumableArray(this.visibleNodes)));
55099
- }
55100
- },
55101
- immediate: true
55085
+ hasLine: function hasLine(_hasLine) {
55086
+ var _this$needsCalculateN;
55087
+ _hasLine && (_this$needsCalculateN = this.needsCalculateNodes).push.apply(_this$needsCalculateN, _toConsumableArray(this.visibleNodes));
55102
55088
  }
55103
55089
  },
55104
- created: function created() {
55105
- this.map = {};
55106
- },
55107
55090
  mounted: function mounted() {
55108
55091
  this.setData(this.data);
55109
55092
  },
55110
55093
  methods: {
55111
55094
  setData: function setData(data) {
55095
+ var _this$needsCalculateN2;
55112
55096
  var nodes = [];
55113
55097
  var map = {};
55114
55098
  this.recurrenceNodes(data, null, nodes, map);
55115
- this.nodes = freeze$1(nodes);
55099
+ this.nodes = nodes;
55116
55100
  this.map = map;
55117
55101
  this.initNodeState();
55118
55102
  this.setVirtualScrollList();
55119
55103
  this.registryOptions(this.nodes);
55120
- },
55121
- initNodeState: function initNodeState() {
55122
- var _this = this;
55123
- if (!this.defaultExpandAll) {
55124
- var defaultExpandedNodes = _toConsumableArray(this.defaultExpandedNodes);
55125
- if (this.defaultSelectedNode) {
55126
- defaultExpandedNodes.push(this.defaultSelectedNode);
55127
- }
55128
- defaultExpandedNodes.forEach(function (id) {
55129
- var node = _this.getNodeById(id);
55130
- if (node) {
55131
- node.expanded = true;
55132
- }
55133
- });
55134
- }
55135
- this.defaultCheckedNodes.forEach(function (id) {
55136
- var node = _this.getNodeById(id);
55137
- if (node) {
55138
- node.checked = true;
55139
- }
55140
- });
55141
- this.defaultDisabledNodes.forEach(function (id) {
55142
- var node = _this.getNodeById(id);
55143
- if (node) {
55144
- node.disabled = true;
55145
- }
55146
- });
55104
+ this.hasLine && (_this$needsCalculateN2 = this.needsCalculateNodes).push.apply(_this$needsCalculateN2, _toConsumableArray(this.visibleNodes));
55147
55105
  },
55148
55106
  registryOptions: function registryOptions(nodes) {
55149
55107
  var parent = this.$parent.$parent || this.$root;
@@ -55162,28 +55120,61 @@
55162
55120
  }
55163
55121
  },
55164
55122
  recurrenceNodes: function recurrenceNodes(data, parent, nodes, map) {
55165
- var _this2 = this;
55166
- data.forEach(function (datum) {
55123
+ var _this = this;
55124
+ data.forEach(function (datum, index) {
55167
55125
  var node = new TreeNode(datum, {
55168
55126
  level: parent ? parent.level + 1 : 0,
55169
55127
  parent: parent,
55170
55128
  index: nodes.length
55171
- }, _this2);
55129
+ }, _this);
55172
55130
  if (parent) {
55173
55131
  node.childIndex = parent.children.length;
55174
55132
  parent.children.push(node);
55175
55133
  }
55176
55134
  nodes.push(node);
55177
55135
  map[node.id] = node;
55178
- var children = datum[_this2.nodeOptions.childrenKey];
55136
+ var children = datum[_this.nodeOptions.childrenKey];
55179
55137
  if (isArray$1(children) && children.length) {
55180
- _this2.recurrenceNodes(children, node, nodes, map);
55138
+ _this.recurrenceNodes(children, node, nodes, map);
55181
55139
  }
55182
55140
  });
55183
55141
  },
55184
55142
  getNodeById: function getNodeById(id) {
55185
55143
  return this.map[id];
55186
55144
  },
55145
+ initNodeState: function initNodeState() {
55146
+ !this.defaultExpandAll && this.initDefaultExpanded();
55147
+ this.initDefaultChecked();
55148
+ this.initDefaultDisabled();
55149
+ },
55150
+ initDefaultExpanded: function initDefaultExpanded() {
55151
+ var _this2 = this;
55152
+ var defaultExpandedNodes = this.defaultSelectedNode !== null ? [].concat(_toConsumableArray(this.defaultExpandedNodes), [this.defaultSelectedNode]) : this.defaultExpandedNodes;
55153
+ defaultExpandedNodes.forEach(function (id) {
55154
+ var node = _this2.getNodeById(id);
55155
+ if (node) {
55156
+ node.expanded = true;
55157
+ }
55158
+ });
55159
+ },
55160
+ initDefaultChecked: function initDefaultChecked() {
55161
+ var _this3 = this;
55162
+ this.defaultCheckedNodes.forEach(function (id) {
55163
+ var node = _this3.getNodeById(id);
55164
+ if (node) {
55165
+ node.checked = true;
55166
+ }
55167
+ });
55168
+ },
55169
+ initDefaultDisabled: function initDefaultDisabled() {
55170
+ var _this4 = this;
55171
+ this.defaultDisabledNodes.forEach(function (id) {
55172
+ var node = _this4.getNodeById(id);
55173
+ if (node) {
55174
+ node.disabled = true;
55175
+ }
55176
+ });
55177
+ },
55187
55178
  addNode: function addNode(nodeData, parentId) {
55188
55179
  var trailing = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
55189
55180
  var options = _typeof(parentId) === 'object' ? parentId : {
@@ -55205,10 +55196,10 @@
55205
55196
  return this.addChildNode(data, mergeOptions);
55206
55197
  },
55207
55198
  addRootNode: function addRootNode(data, _ref) {
55208
- var _this3 = this;
55199
+ var _this5 = this,
55200
+ _this$nodes;
55209
55201
  var trailing = _ref.trailing;
55210
- var lastNodes = _toConsumableArray(this.nodes);
55211
- var rootNodes = lastNodes.filter(function (node) {
55202
+ var rootNodes = this.nodes.filter(function (node) {
55212
55203
  return node.level === 0;
55213
55204
  });
55214
55205
  var offset = typeof trailing === 'number' ? Math.min(trailing, rootNodes.length) : trailing ? rootNodes.length : 0;
@@ -55223,21 +55214,21 @@
55223
55214
  return new TreeNode(datum, {
55224
55215
  level: 0,
55225
55216
  parent: null
55226
- }, _this3);
55217
+ }, _this5);
55227
55218
  });
55228
55219
  nodes.forEach(function (node) {
55229
- _this3.map[node.id] = node;
55220
+ _this5.$set(_this5.map, node.id, node);
55230
55221
  });
55231
- lastNodes.splice.apply(lastNodes, [insertIndex, 0].concat(_toConsumableArray(nodes)));
55232
- lastNodes.slice(insertIndex).forEach(function (node, index) {
55222
+ (_this$nodes = this.nodes).splice.apply(_this$nodes, [insertIndex, 0].concat(_toConsumableArray(nodes)));
55223
+ this.nodes.slice(insertIndex).forEach(function (node, index) {
55233
55224
  node.index = insertIndex + index;
55234
55225
  });
55235
- this.nodes = freeze$1(lastNodes);
55236
55226
  this.setVirtualScrollList();
55237
55227
  return nodes;
55238
55228
  },
55239
55229
  addChildNode: function addChildNode(data, options) {
55240
- var _this4 = this;
55230
+ var _this6 = this,
55231
+ _this$nodes2;
55241
55232
  var parentId = options.parentId,
55242
55233
  trailing = options.trailing;
55243
55234
  var parent = this.getNodeById(parentId);
@@ -55260,28 +55251,26 @@
55260
55251
  return new TreeNode(datum, {
55261
55252
  level: parent.level + 1,
55262
55253
  parent: parent
55263
- }, _this4);
55254
+ }, _this6);
55264
55255
  });
55265
55256
  parent.appendChild(nodes, offset, options);
55266
55257
  nodes.forEach(function (node) {
55267
- _this4.map[node.id] = node;
55258
+ _this6.$set(_this6.map, node.id, node);
55268
55259
  });
55269
- var lastNodes = _toConsumableArray(this.nodes);
55270
- lastNodes.splice.apply(lastNodes, [insertIndex, 0].concat(_toConsumableArray(nodes)));
55271
- lastNodes.slice(insertIndex).forEach(function (node, index) {
55260
+ (_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [insertIndex, 0].concat(_toConsumableArray(nodes)));
55261
+ this.nodes.slice(insertIndex).forEach(function (node, index) {
55272
55262
  node.index = insertIndex + index;
55273
55263
  });
55274
- this.nodes = freeze$1(lastNodes);
55275
55264
  this.setVirtualScrollList();
55276
55265
  return nodes;
55277
55266
  },
55278
55267
  removeNode: function removeNode(nodeId) {
55279
- var _this5 = this;
55268
+ var _this7 = this;
55280
55269
  try {
55281
55270
  var ids = convertToArray(nodeId);
55282
55271
  var nodes = [];
55283
55272
  ids.forEach(function (id) {
55284
- var node = _this5.getNodeById(id);
55273
+ var node = _this7.getNodeById(id);
55285
55274
  if (node) {
55286
55275
  nodes.push(node);
55287
55276
  }
@@ -55291,7 +55280,7 @@
55291
55280
  });
55292
55281
  nodes.forEach(function (node) {
55293
55282
  var removeNodes = [node].concat(_toConsumableArray(node.descendants));
55294
- _this5.nodes.splice(node.index, removeNodes.length);
55283
+ _this7.nodes.splice(node.index, removeNodes.length);
55295
55284
  if (node.parent) {
55296
55285
  node.parent.removeChild(node);
55297
55286
  }
@@ -55299,18 +55288,16 @@
55299
55288
  var minChangedIndex = Math.min.apply(Math, _toConsumableArray(nodes.map(function (node) {
55300
55289
  return node.index;
55301
55290
  })));
55302
- var lastNodes = _toConsumableArray(this.nodes);
55303
- lastNodes.slice(minChangedIndex).forEach(function (node, index) {
55291
+ this.nodes.slice(minChangedIndex).forEach(function (node, index) {
55304
55292
  node.index = minChangedIndex + index;
55305
55293
  });
55306
- this.nodes = freeze$1(lastNodes);
55307
55294
  this.setVirtualScrollList();
55308
55295
  } catch (e) {
55309
55296
  console.warn(e.message);
55310
55297
  }
55311
55298
  },
55312
55299
  setSelected: function setSelected(nodeId) {
55313
- var _this6 = this;
55300
+ var _this8 = this;
55314
55301
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
55315
55302
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
55316
55303
  var mergeOptions, node, response;
@@ -55318,7 +55305,7 @@
55318
55305
  while (1) switch (_context.prev = _context.next) {
55319
55306
  case 0:
55320
55307
  _context.prev = 0;
55321
- if (!(!_this6.selectable || nodeId === _this6.selected)) {
55308
+ if (!(!_this8.selectable || nodeId === _this8.selected)) {
55322
55309
  _context.next = 3;
55323
55310
  break;
55324
55311
  }
@@ -55328,13 +55315,13 @@
55328
55315
  emitEvent: false,
55329
55316
  beforeSelect: true
55330
55317
  }, options);
55331
- node = _this6.getNodeById(nodeId);
55332
- if (!(mergeOptions.beforeSelect && typeof _this6.beforeSelect === 'function')) {
55318
+ node = _this8.getNodeById(nodeId);
55319
+ if (!(mergeOptions.beforeSelect && typeof _this8.beforeSelect === 'function')) {
55333
55320
  _context.next = 11;
55334
55321
  break;
55335
55322
  }
55336
55323
  _context.next = 8;
55337
- return _this6.beforeSelect(node);
55324
+ return _this8.beforeSelect(node);
55338
55325
  case 8:
55339
55326
  response = _context.sent;
55340
55327
  if (response) {
@@ -55343,9 +55330,9 @@
55343
55330
  }
55344
55331
  return _context.abrupt("return", false);
55345
55332
  case 11:
55346
- _this6.selected = nodeId;
55333
+ _this8.selected = nodeId;
55347
55334
  if (mergeOptions.emitEvent) {
55348
- _this6.$emit('select-change', node);
55335
+ _this8.$emit('select-change', node);
55349
55336
  }
55350
55337
  _context.next = 18;
55351
55338
  break;
@@ -55377,10 +55364,10 @@
55377
55364
  }
55378
55365
  },
55379
55366
  setChecked: function setChecked(nodeId) {
55380
- var _this7 = this;
55367
+ var _this9 = this;
55381
55368
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
55382
55369
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee2() {
55383
- var isMultiple, ids, mergeOptions, nodes, response, lastNodes;
55370
+ var isMultiple, ids, mergeOptions, nodes, response;
55384
55371
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
55385
55372
  while (1) switch (_context2.prev = _context2.next) {
55386
55373
  case 0:
@@ -55388,7 +55375,7 @@
55388
55375
  isMultiple = isArray$1(nodeId);
55389
55376
  ids = isMultiple ? nodeId : [nodeId];
55390
55377
  if (!ids.length) {
55391
- _context2.next = 16;
55378
+ _context2.next = 14;
55392
55379
  break;
55393
55380
  }
55394
55381
  mergeOptions = _objectSpread({
@@ -55397,14 +55384,14 @@
55397
55384
  checked: true
55398
55385
  }, options);
55399
55386
  nodes = ids.map(function (id) {
55400
- return _this7.getNodeById(id);
55387
+ return _this9.getNodeById(id);
55401
55388
  });
55402
- if (!(mergeOptions.beforeCheck && typeof _this7.beforeCheck === 'function')) {
55389
+ if (!(mergeOptions.beforeCheck && typeof _this9.beforeCheck === 'function')) {
55403
55390
  _context2.next = 12;
55404
55391
  break;
55405
55392
  }
55406
55393
  _context2.next = 9;
55407
- return _this7.beforeCheck(nodes.length > 1 ? nodes : nodes[0], mergeOptions.checked);
55394
+ return _this9.beforeCheck(nodes.length > 1 ? nodes : nodes[0], mergeOptions.checked);
55408
55395
  case 9:
55409
55396
  response = _context2.sent;
55410
55397
  if (response) {
@@ -55418,23 +55405,21 @@
55418
55405
  });
55419
55406
  if (mergeOptions.emitEvent) {
55420
55407
  setTimeout(function () {
55421
- _this7.$emit('check-change', _this7.checked, isMultiple ? nodes : nodes[0]);
55408
+ _this9.$emit('check-change', _this9.checked, isMultiple ? nodes : nodes[0]);
55422
55409
  }, 0);
55423
55410
  }
55424
- lastNodes = _toConsumableArray(_this7.nodes);
55425
- _this7.nodes = freeze$1(lastNodes);
55426
- case 16:
55427
- _context2.next = 21;
55411
+ case 14:
55412
+ _context2.next = 19;
55428
55413
  break;
55429
- case 18:
55430
- _context2.prev = 18;
55414
+ case 16:
55415
+ _context2.prev = 16;
55431
55416
  _context2.t0 = _context2["catch"](0);
55432
55417
  console.warn(_context2.t0.message);
55433
- case 21:
55418
+ case 19:
55434
55419
  case "end":
55435
55420
  return _context2.stop();
55436
55421
  }
55437
- }, _callee2, null, [[0, 18]]);
55422
+ }, _callee2, null, [[0, 16]]);
55438
55423
  }))();
55439
55424
  },
55440
55425
  setExpanded: function setExpanded(nodeId) {
@@ -55453,14 +55438,13 @@
55453
55438
  if (mergeOptions.emitEvent) {
55454
55439
  this.$emit('expand-change', node);
55455
55440
  }
55456
- this.nodes = freeze$1(_toConsumableArray(this.nodes));
55457
55441
  this.setVirtualScrollList();
55458
55442
  } catch (e) {
55459
55443
  console.warn(e.message);
55460
55444
  }
55461
55445
  },
55462
55446
  setDisabled: function setDisabled(nodeId) {
55463
- var _this8 = this;
55447
+ var _this10 = this;
55464
55448
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
55465
55449
  try {
55466
55450
  var mergeOptions = _objectSpread({
@@ -55469,7 +55453,7 @@
55469
55453
  }, options);
55470
55454
  var ids = convertToArray(nodeId);
55471
55455
  var nodes = ids.map(function (id) {
55472
- return _this8.getNodeById(id);
55456
+ return _this10.getNodeById(id);
55473
55457
  }).filter(function (node) {
55474
55458
  return !!node;
55475
55459
  });
@@ -55479,13 +55463,12 @@
55479
55463
  if (mergeOptions.emitEvent) {
55480
55464
  this.$emit('disable-change', nodes.length > 1 ? nodes : nodes[0]);
55481
55465
  }
55482
- this.nodes = freeze$1(_toConsumableArray(this.nodes));
55483
55466
  } catch (e) {
55484
55467
  console.warn(e.message);
55485
55468
  }
55486
55469
  },
55487
55470
  setDisableCheck: function setDisableCheck(nodeId) {
55488
- var _this9 = this;
55471
+ var _this11 = this;
55489
55472
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
55490
55473
  try {
55491
55474
  var mergeOptions = _objectSpread({
@@ -55494,7 +55477,7 @@
55494
55477
  }, options);
55495
55478
  var ids = convertToArray(nodeId);
55496
55479
  var nodes = ids.map(function (id) {
55497
- return _this9.getNodeById(id);
55480
+ return _this11.getNodeById(id);
55498
55481
  }).filter(function (node) {
55499
55482
  return !!node;
55500
55483
  });
@@ -55504,62 +55487,59 @@
55504
55487
  if (mergeOptions.emitEvent) {
55505
55488
  this.$emit('disable-check-change', nodes.length > 1 ? nodes : nodes[0]);
55506
55489
  }
55507
- this.nodes = freeze$1(_toConsumableArray(this.nodes));
55508
55490
  } catch (e) {
55509
55491
  console.warn(e.message);
55510
55492
  }
55511
55493
  },
55512
55494
  handleCalculateLine: function handleCalculateLine() {
55513
- var _this10 = this;
55514
- var calculateNodeLine = function calculateNodeLine(node) {
55515
- var children = node.children,
55516
- isLeaf = node.isLeaf,
55517
- expanded = node.expanded;
55518
- if (isLeaf || !expanded) {
55519
- node.line = 0;
55520
- return;
55521
- }
55522
- var visibleChildren = children.filter(function (child) {
55523
- return child.visible;
55524
- });
55525
- if (!visibleChildren.length) {
55526
- node.line = 0;
55527
- return;
55528
- }
55529
- var firstChild = visibleChildren[0];
55530
- var firstChildElement = _this10.$el.querySelector("#".concat(firstChild.uid));
55531
- var lastChild = visibleChildren[visibleChildren.length - 1];
55532
- var lastChildElement = _this10.$el.querySelector("#".concat(lastChild.uid));
55533
- node.line = lastChildElement.getBoundingClientRect().bottom - firstChildElement.getBoundingClientRect().top;
55534
- };
55495
+ var _this12 = this;
55535
55496
  this.calculateTimer && clearTimeout(this.calculateTimer);
55536
55497
  if (this.needsCalculateNodes.length) {
55537
55498
  this.calculateTimer = setTimeout(function () {
55538
- _this10.needsCalculateNodes.forEach(function (node) {
55539
- calculateNodeLine(node);
55499
+ _this12.needsCalculateNodes.forEach(function (node) {
55500
+ _this12.calculateNodeLine(node);
55540
55501
  });
55541
- _this10.needsCalculateNodes.splice(0);
55542
- _this10.nodes = freeze$1(_toConsumableArray(_this10.nodes));
55502
+ _this12.needsCalculateNodes.splice(0);
55543
55503
  }, 0);
55544
55504
  } else {
55545
55505
  this.calculateTimer = null;
55546
55506
  }
55547
55507
  },
55508
+ calculateNodeLine: function calculateNodeLine(node) {
55509
+ var children = node.children,
55510
+ isLeaf = node.isLeaf,
55511
+ expanded = node.expanded;
55512
+ if (isLeaf || !expanded) {
55513
+ node.line = 0;
55514
+ return;
55515
+ }
55516
+ var visibleChildren = children.filter(function (child) {
55517
+ return child.visible;
55518
+ });
55519
+ if (!visibleChildren.length) {
55520
+ node.line = 0;
55521
+ return;
55522
+ }
55523
+ var firstChild = visibleChildren[0];
55524
+ var firstChildElement = this.$el.querySelector("#".concat(firstChild.uid));
55525
+ var lastChild = visibleChildren[visibleChildren.length - 1];
55526
+ var lastChildElement = this.$el.querySelector("#".concat(lastChild.uid));
55527
+ node.line = lastChildElement.getBoundingClientRect().bottom - firstChildElement.getBoundingClientRect().top;
55528
+ },
55548
55529
  defaultFilterMethod: function defaultFilterMethod(keyword, node) {
55549
55530
  return String(node.name).toLowerCase().indexOf(keyword) > -1;
55550
55531
  },
55551
55532
  filter: function filter() {
55552
- var _this11 = this;
55533
+ var _this13 = this;
55553
55534
  var keyword = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
55554
- var lastNodes = _toConsumableArray(this.nodes);
55555
55535
  var matchedNodes = [];
55556
55536
  var filterMethod = this.filterMethod || this.defaultFilterMethod;
55557
55537
  if (keyword === '') {
55558
55538
  this.inSearch = false;
55559
- lastNodes.forEach(function (node) {
55539
+ this.nodes.forEach(function (node) {
55560
55540
  node.setState('matched', true);
55561
55541
  node.recalculateLinkLine();
55562
- if (_this11.checkOnlyAvailableStrictly) {
55542
+ if (_this13.checkOnlyAvailableStrictly) {
55563
55543
  node.setState('checked', false);
55564
55544
  }
55565
55545
  matchedNodes.push(node);
@@ -55567,10 +55547,10 @@
55567
55547
  } else {
55568
55548
  this.inSearch = true;
55569
55549
  var convertKeyword = this.filterMethod ? keyword : String(keyword).toLowerCase();
55570
- lastNodes.forEach(function (node) {
55550
+ this.nodes.forEach(function (node) {
55571
55551
  var matched = filterMethod(convertKeyword, node);
55572
55552
  node.setState('matched', matched);
55573
- if (_this11.checkOnlyAvailableStrictly) {
55553
+ if (_this13.checkOnlyAvailableStrictly) {
55574
55554
  node.setState('checked', false);
55575
55555
  }
55576
55556
  if (matched) {
@@ -55581,7 +55561,6 @@
55581
55561
  });
55582
55562
  }
55583
55563
  this.isSearchEmpty = matchedNodes.length === 0;
55584
- this.nodes = freeze$1(lastNodes);
55585
55564
  this.setVirtualScrollList();
55586
55565
  return matchedNodes;
55587
55566
  },
@@ -55624,14 +55603,14 @@
55624
55603
  });
55625
55604
  },
55626
55605
  setVirtualScrollList: function setVirtualScrollList() {
55627
- var _this12 = this;
55606
+ var _this14 = this;
55628
55607
  if (!this.height) return;
55629
55608
  if (!this.$refs.virtualScroll) {
55630
55609
  console.warn('virtual dom is not ready');
55631
55610
  return;
55632
55611
  }
55633
55612
  this.$nextTick(function () {
55634
- _this12.$refs.virtualScroll.setListData(_this12.visibleNodes);
55613
+ _this14.$refs.virtualScroll.setListData(_this14.visibleNodes);
55635
55614
  });
55636
55615
  },
55637
55616
  resize: function resize() {
@@ -55644,14 +55623,15 @@
55644
55623
  var __vue_script__$1j = script$1j;
55645
55624
  /* template */
55646
55625
  var __vue_render__$1l = function __vue_render__() {
55647
- var _obj;
55648
55626
  var _vm = this;
55649
55627
  var _h = _vm.$createElement;
55650
55628
  var _c = _vm._self._c || _h;
55651
55629
  return _c('div', {
55652
- class: (_obj = {
55653
- 'bk-big-tree': true
55654
- }, _obj[_vm.extCls] = true, _obj['with-virtual-scroll'] = !!_vm.height, _obj['bk-big-tree--small'] = _vm.size === 'small', _obj),
55630
+ class: ['bk-big-tree', _vm.extCls, {
55631
+ 'with-virtual-scroll': !!_vm.height
55632
+ }, {
55633
+ 'bk-big-tree--small': _vm.size === 'small'
55634
+ }],
55655
55635
  style: {
55656
55636
  height: _vm.treeHeight
55657
55637
  }
@@ -59708,6 +59688,17 @@
59708
59688
 
59709
59689
  setInstaller(__vue_component__$1B);
59710
59690
 
59691
+ var meta$1 = _meta.onFreeze;
59692
+ _objectSap('freeze', function ($freeze) {
59693
+ return function freeze(it) {
59694
+ return $freeze && _isObject(it) ? $freeze(meta$1(it)) : it;
59695
+ };
59696
+ });
59697
+
59698
+ var freeze = _core.Object.freeze;
59699
+
59700
+ var freeze$1 = freeze;
59701
+
59711
59702
  var script$1z = {
59712
59703
  name: 'bk-resize-layout',
59713
59704
  props: {