bk-magic-vue 2.5.9-beta.18 → 2.5.9-beta.19

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.
@@ -57018,8 +57018,15 @@
57018
57018
  this.dispatch('bkCascade', 'on-cascade-click');
57019
57019
  },
57020
57020
  cascadeHover: function cascadeHover(item) {
57021
- if (this.trigger === 'hover' && item.children && item.children.length) {
57021
+ if (this.trigger !== 'hover') {
57022
+ return;
57023
+ }
57024
+ if (item.children && item.children.length) {
57022
57025
  this.handleItem(item, false);
57026
+ } else {
57027
+ this.childrenList = item.children || [];
57028
+ this.emitUpdate([item]);
57029
+ this.dispatch('bkCascade', 'on-popover-width', item);
57023
57030
  }
57024
57031
  },
57025
57032
  handleItem: function handleItem(item) {
@@ -59611,7 +59618,6 @@
59611
59618
  asideContentVisible: true,
59612
59619
  minimized: false,
59613
59620
  limitMax: null,
59614
- asideStyleValue: null,
59615
59621
  state: {}
59616
59622
  };
59617
59623
  },
@@ -59623,8 +59629,11 @@
59623
59629
  return this.vertical ? 'width' : 'height';
59624
59630
  },
59625
59631
  computedAsideStyle: function computedAsideStyle() {
59626
- var asideStyleValue = typeof this.asideStyleValue === 'number' ? "".concat(this.asideStyleValue, "px") : this.asideStyleValue;
59627
- return _defineProperty({}, this.computedStyleKey, asideStyleValue);
59632
+ var divide = this.initialDivide;
59633
+ if (typeof divide === 'number') {
59634
+ divide = "".concat(divide, "px");
59635
+ }
59636
+ return _defineProperty({}, this.computedStyleKey, divide);
59628
59637
  },
59629
59638
  computedTriggerStyle: function computedTriggerStyle() {
59630
59639
  var _style;
@@ -59638,9 +59647,6 @@
59638
59647
  return 0;
59639
59648
  }
59640
59649
  },
59641
- created: function created() {
59642
- this.asideStyleValue = this.initialDivide;
59643
- },
59644
59650
  mounted: function mounted() {
59645
59651
  this.setupLimit();
59646
59652
  addResizeListener(this.$el, this.setupLimit);
@@ -59754,6 +59760,7 @@
59754
59760
  return false;
59755
59761
  }
59756
59762
  aside.style[_this.computedStyleKey] = resizeProxy.style[placement];
59763
+ console.error('mouseup', aside.style[_this.computedStyleKey]);
59757
59764
  };
59758
59765
  document.addEventListener('mousemove', handleMouseMove);
59759
59766
  document.addEventListener('mouseup', handleMouseUp);
@@ -59782,14 +59789,14 @@
59782
59789
  },
59783
59790
  setupAsideAnimation: function setupAsideAnimation() {
59784
59791
  var aside = this.$refs.aside;
59785
- var previewStyleValue = aside.style[this.computedStyleKey];
59792
+ var asideRect = aside.getBoundingClientRect();
59786
59793
  this.setupAsideListener(!this.collapsed);
59787
59794
  if (this.collapsed) {
59788
- aside.setAttribute("data-".concat(this.computedStyleKey), previewStyleValue);
59789
- this.asideStyleValue = this.collapsible ? '0' : '5px';
59795
+ aside.setAttribute("data-".concat(this.computedStyleKey), asideRect[this.computedStyleKey] + 'px');
59796
+ aside.style[this.computedStyleKey] = this.collapsible ? '0' : '5px';
59790
59797
  } else {
59791
59798
  this.asideContentVisible = true;
59792
- this.asideStyleValue = aside.getAttribute("data-".concat(this.computedStyleKey));
59799
+ aside.style[this.computedStyleKey] = aside.getAttribute("data-".concat(this.computedStyleKey));
59793
59800
  }
59794
59801
  },
59795
59802
  setupAsideListener: function setupAsideListener(asideContentVisible) {