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

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.
@@ -56947,6 +56947,10 @@
56947
56947
  },
56948
56948
  remoteMethod: {
56949
56949
  type: Function
56950
+ },
56951
+ allowDisabledExpand: {
56952
+ type: Boolean,
56953
+ default: false
56950
56954
  }
56951
56955
  },
56952
56956
  data: function data() {
@@ -57012,7 +57016,7 @@
57012
57016
  handleItem: function handleItem(item) {
57013
57017
  var _this2 = this;
57014
57018
  var fromInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
57015
- if (item.disabled) return;
57019
+ if (item.disabled && !this.allowDisabledExpand) return;
57016
57020
  if (this.isRemote) {
57017
57021
  new promise$1(function (resolve, reject) {
57018
57022
  _this2.remoteMethod(item, resolve);
@@ -57058,7 +57062,7 @@
57058
57062
  this.dispatch('bkCascade', 'on-id-change', {
57059
57063
  item: item,
57060
57064
  isLast: !(item.children && item.children.length),
57061
- checkAnyLevel: this.checkAnyLevel,
57065
+ checkAnyLevel: this.checkAnyLevel && !this.allowDisabledExpand,
57062
57066
  fromInit: fromInit
57063
57067
  });
57064
57068
  }
@@ -57323,6 +57327,10 @@
57323
57327
  maxWidth: {
57324
57328
  type: [String, Number],
57325
57329
  default: '100%'
57330
+ },
57331
+ allowDisabledExpand: {
57332
+ type: Boolean,
57333
+ default: false
57326
57334
  }
57327
57335
  },
57328
57336
  data: function data() {
@@ -58132,7 +58140,8 @@
58132
58140
  "filterable": _vm.filterable,
58133
58141
  "multiple": _vm.multiple,
58134
58142
  "is-remote": _vm.isRemote,
58135
- "remote-method": _vm.remoteMethod
58143
+ "remote-method": _vm.remoteMethod,
58144
+ "allow-disabled-expand": _vm.allowDisabledExpand
58136
58145
  },
58137
58146
  on: {
58138
58147
  "updateSelectedList": _vm.updateSelectedList
Binary file