bk-magic-vue 2.5.9-beta.13 → 2.5.9-beta.15

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.
@@ -16071,6 +16071,12 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
16071
16071
  -webkit-transform:rotate(180deg);
16072
16072
  transform:rotate(180deg);
16073
16073
  }
16074
+ .bk-resize-layout-collapsible.bk-resize-layout-collapsed > .bk-resize-layout-aside{
16075
+ border:none !important
16076
+ }
16077
+ .bk-resize-layout-collapsible.bk-resize-layout-collapsed > .bk-resize-layout-aside:after{
16078
+ display:none;
16079
+ }
16074
16080
  .bk-resize-layout-left{
16075
16081
  -webkit-box-orient:horizontal;
16076
16082
  -webkit-box-direction:normal;
@@ -29666,7 +29666,8 @@
29666
29666
  showOverflowTooltips: {
29667
29667
  type: Boolean,
29668
29668
  default: false
29669
- }
29669
+ },
29670
+ initialControlValue: Number
29670
29671
  },
29671
29672
  data: function data() {
29672
29673
  return {
@@ -29963,7 +29964,9 @@
29963
29964
  }
29964
29965
  },
29965
29966
  handleNumberDelete: function handleNumberDelete(event) {
29966
- this.curValue === '' && (this.curValue = this.max);
29967
+ if (this.curValue === '') {
29968
+ this.curValue = this.initialControlValue === undefined ? this.max : Math.min(this.initialControlValue, this.max);
29969
+ }
29967
29970
  var curNumberValue = Number(this.curValue);
29968
29971
  if (curNumberValue - 1 >= this.min) {
29969
29972
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -29978,7 +29981,9 @@
29978
29981
  }
29979
29982
  },
29980
29983
  handleNumberAdd: function handleNumberAdd(event) {
29981
- this.curValue === '' && (this.curValue = this.min);
29984
+ if (this.curValue === '') {
29985
+ this.curValue = this.initialControlValue === undefined ? this.min : Math.max(this.initialControlValue, this.min);
29986
+ }
29982
29987
  var curNumberValue = Number(this.curValue);
29983
29988
  if (curNumberValue <= this.max - 1) {
29984
29989
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -56947,6 +56952,10 @@
56947
56952
  },
56948
56953
  remoteMethod: {
56949
56954
  type: Function
56955
+ },
56956
+ allowDisabledExpand: {
56957
+ type: Boolean,
56958
+ default: false
56950
56959
  }
56951
56960
  },
56952
56961
  data: function data() {
@@ -57012,7 +57021,7 @@
57012
57021
  handleItem: function handleItem(item) {
57013
57022
  var _this2 = this;
57014
57023
  var fromInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
57015
- if (item.disabled) return;
57024
+ if (item.disabled && !this.allowDisabledExpand) return;
57016
57025
  if (this.isRemote) {
57017
57026
  new promise$1(function (resolve, reject) {
57018
57027
  _this2.remoteMethod(item, resolve);
@@ -57058,7 +57067,7 @@
57058
57067
  this.dispatch('bkCascade', 'on-id-change', {
57059
57068
  item: item,
57060
57069
  isLast: !(item.children && item.children.length),
57061
- checkAnyLevel: this.checkAnyLevel,
57070
+ checkAnyLevel: this.checkAnyLevel && (!this.allowDisabledExpand || this.allowDisabledExpand && !item.disabled),
57062
57071
  fromInit: fromInit
57063
57072
  });
57064
57073
  }
@@ -57178,6 +57187,7 @@
57178
57187
  "multiple": _vm.multiple,
57179
57188
  "check-any-level": _vm.checkAnyLevel,
57180
57189
  "is-remote": _vm.isRemote,
57190
+ "allow-disabled-expand": _vm.allowDisabledExpand,
57181
57191
  "remote-method": _vm.remoteMethod
57182
57192
  },
57183
57193
  on: {
@@ -57323,6 +57333,10 @@
57323
57333
  maxWidth: {
57324
57334
  type: [String, Number],
57325
57335
  default: '100%'
57336
+ },
57337
+ allowDisabledExpand: {
57338
+ type: Boolean,
57339
+ default: false
57326
57340
  }
57327
57341
  },
57328
57342
  data: function data() {
@@ -58132,7 +58146,8 @@
58132
58146
  "filterable": _vm.filterable,
58133
58147
  "multiple": _vm.multiple,
58134
58148
  "is-remote": _vm.isRemote,
58135
- "remote-method": _vm.remoteMethod
58149
+ "remote-method": _vm.remoteMethod,
58150
+ "allow-disabled-expand": _vm.allowDisabledExpand
58136
58151
  },
58137
58152
  on: {
58138
58153
  "updateSelectedList": _vm.updateSelectedList
@@ -59764,7 +59779,7 @@
59764
59779
  this.setupAsideListener(!this.collapsed);
59765
59780
  if (this.collapsed) {
59766
59781
  aside.setAttribute("data-".concat(this.computedStyleKey), previewStyleValue);
59767
- this.asideStyleValue = '5px';
59782
+ this.asideStyleValue = this.collapsible ? '0' : '5px';
59768
59783
  } else {
59769
59784
  this.asideContentVisible = true;
59770
59785
  this.asideStyleValue = aside.getAttribute("data-".concat(this.computedStyleKey));
@@ -59793,6 +59808,7 @@
59793
59808
  var _c = _vm._self._c || _h;
59794
59809
  return _c('div', {
59795
59810
  class: [_vm.extCls, 'bk-resize-layout', "bk-resize-layout-" + _vm.placement, {
59811
+ 'bk-resize-layout-collapsible': _vm.collapsible,
59796
59812
  'bk-resize-layout-collapsed': _vm.collapsed,
59797
59813
  'bk-resize-layout-border': _vm.border
59798
59814
  }]