bk-magic-vue 2.5.9-beta.37 → 2.5.9-beta.39

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.
@@ -36330,7 +36330,7 @@
36330
36330
  },
36331
36331
  size: {
36332
36332
  type: String,
36333
- default: 'normal',
36333
+ default: 'small',
36334
36334
  validator: function validator(value) {
36335
36335
  if (['small', 'normal', 'large'].indexOf(value) < 0) {
36336
36336
  console.error("size property is not valid: '".concat(value, "'"));
@@ -55342,12 +55342,13 @@
55342
55342
  nodes.push(node);
55343
55343
  }
55344
55344
  });
55345
+ var lastNodes = _toConsumableArray(this.nodes);
55345
55346
  nodes.sort(function (M, N) {
55346
55347
  return N.index - M.index;
55347
55348
  });
55348
55349
  nodes.forEach(function (node) {
55349
55350
  var removeNodes = [node].concat(_toConsumableArray(node.descendants));
55350
- _this5.nodes.splice(node.index, removeNodes.length);
55351
+ lastNodes.splice(node.index, removeNodes.length);
55351
55352
  if (node.parent) {
55352
55353
  node.parent.removeChild(node);
55353
55354
  }
@@ -55355,7 +55356,6 @@
55355
55356
  var minChangedIndex = Math.min.apply(Math, _toConsumableArray(nodes.map(function (node) {
55356
55357
  return node.index;
55357
55358
  })));
55358
- var lastNodes = _toConsumableArray(this.nodes);
55359
55359
  lastNodes.slice(minChangedIndex).forEach(function (node, index) {
55360
55360
  node.index = minChangedIndex + index;
55361
55361
  });