bk-magic-vue 2.5.4-beta.4 → 2.5.4-beta.6

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.
@@ -7743,14 +7743,18 @@
7743
7743
  var _this$$slots = this.$slots,
7744
7744
  headerSlots = _this$$slots.header,
7745
7745
  footerSlots = _this$$slots.footer;
7746
- for (var i = 0; i < headerSlots.length; i++) {
7747
- if (headerSlots[i].elm.contains(e.target)) {
7748
- return;
7746
+ if (headerSlots) {
7747
+ for (var i = 0; i < headerSlots.length; i++) {
7748
+ if (headerSlots[i].elm.contains(e.target)) {
7749
+ return;
7750
+ }
7749
7751
  }
7750
7752
  }
7751
- for (var _i = 0; _i < footerSlots.length; _i++) {
7752
- if (footerSlots[_i].elm.contains(e.target)) {
7753
- return;
7753
+ if (footerSlots) {
7754
+ for (var _i = 0; _i < footerSlots.length; _i++) {
7755
+ if (footerSlots[_i].elm.contains(e.target)) {
7756
+ return;
7757
+ }
7754
7758
  }
7755
7759
  }
7756
7760
  this.visible = false;
@@ -53754,7 +53758,6 @@
53754
53758
  if (matched) {
53755
53759
  node.parent && (node.parent.expanded = true);
53756
53760
  matchedNodes.push(node);
53757
- } else {
53758
53761
  node.recalculateLinkLine();
53759
53762
  }
53760
53763
  });