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

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