bk-magic-vue 2.5.9-beta.6 → 2.5.9-beta.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.
@@ -37041,8 +37041,7 @@
37041
37041
  default: ''
37042
37042
  },
37043
37043
  zIndex: {
37044
- type: [Number, String],
37045
- default: 'default'
37044
+ type: [Number, String]
37046
37045
  },
37047
37046
  multiInstance: {
37048
37047
  type: Boolean,
@@ -37051,10 +37050,6 @@
37051
37050
  transfer: {
37052
37051
  type: Boolean,
37053
37052
  default: false
37054
- },
37055
- appendToBody: {
37056
- type: Boolean,
37057
- default: false
37058
37053
  }
37059
37054
  },
37060
37055
  data: function data() {
@@ -37119,8 +37114,6 @@
37119
37114
  this.$el.parentNode.removeChild(this.$el);
37120
37115
  }
37121
37116
  },
37122
- beforeDestroy: function beforeDestroy() {
37123
- },
37124
37117
  methods: {
37125
37118
  isScrollY: function isScrollY() {
37126
37119
  return document.documentElement.offsetHeight > document.documentElement.clientHeight;
@@ -57646,17 +57639,23 @@
57646
57639
  },
57647
57640
  recursiveList: function recursiveList(arr, valueList, type) {
57648
57641
  var _this7 = this;
57642
+ var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
57649
57643
  arr.forEach(function (arrItem) {
57650
57644
  if (type === 'init') {
57651
57645
  _this7.$set(arrItem, 'isSelected', false);
57652
57646
  _this7.$set(arrItem, 'isIndeterminate', false);
57653
57647
  }
57648
+ var newPath = path.concat(arrItem.id);
57654
57649
  valueList.forEach(function (item) {
57655
57650
  if (isArray$1(item)) {
57656
- if (item[item.length - 1] === arrItem.id) {
57651
+ if (item.length === newPath.length && item.every(function (child, index) {
57652
+ return child === newPath[index];
57653
+ })) {
57657
57654
  arrItem.isSelected = true;
57658
57655
  }
57659
- if (!_this7.checkAnyLevel) {
57656
+ if (!_this7.checkAnyLevel && item.length > newPath.length && item.slice(0, newPath.length).every(function (child, index) {
57657
+ return child === newPath[index];
57658
+ })) {
57660
57659
  item.forEach(function (child) {
57661
57660
  if (child === arrItem.id) {
57662
57661
  arrItem.isIndeterminate = true;
@@ -57666,7 +57665,7 @@
57666
57665
  }
57667
57666
  });
57668
57667
  if (arrItem.children && arrItem.children.length) {
57669
- _this7.recursiveList(arrItem.children, valueList, type);
57668
+ _this7.recursiveList(arrItem.children, valueList, type, newPath);
57670
57669
  }
57671
57670
  });
57672
57671
  },