bk-magic-vue 2.4.5 → 2.4.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.
package/lib/affix.js CHANGED
@@ -118,13 +118,16 @@
118
118
  },
119
119
  methods: {
120
120
  setTargetLoop: function setTargetLoop() {
121
+ var rect = this.targetEl.getBoundingClientRect();
121
122
  if (this.offsetType === 'top') {
122
123
  this.styles = {
123
- top: "".concat(this.targetEl.getBoundingClientRect().top + this.offsetTop, "px")
124
+ top: "".concat(rect.top + this.offsetTop, "px"),
125
+ width: "".concat(rect.width, "px")
124
126
  };
125
127
  } else {
126
128
  this.styles = {
127
- bottom: "".concat(window.innerHeight - this.targetEl.getBoundingClientRect().bottom + this.offsetBottom, "px")
129
+ bottom: "".concat(window.innerHeight - rect.bottom + this.offsetBottom, "px"),
130
+ width: "".concat(rect.width, "px")
128
131
  };
129
132
  }
130
133
  },
package/lib/big-tree.js CHANGED
@@ -2029,7 +2029,10 @@
2029
2029
  }) : _vm._e(), _vm.props.node.nodeIcon ? _c('i', {
2030
2030
  class: ['node-icon', _vm.props.node.nodeIcon]
2031
2031
  }) : _vm._e()]), _c('div', {
2032
- staticClass: "node-content"
2032
+ staticClass: "node-content",
2033
+ attrs: {
2034
+ "title": _vm.props.enableTitleTip ? _vm.props.node.name : false
2035
+ }
2033
2036
  }, [_vm._t("default", [_vm._v("\n " + _vm._s(_vm.props.node.name) + "\n ")], {
2034
2037
  node: _vm.props.node,
2035
2038
  data: _vm.props.node.data
@@ -2166,6 +2169,10 @@
2166
2169
  size: {
2167
2170
  type: String,
2168
2171
  default: 'normal'
2172
+ },
2173
+ enableTitleTip: {
2174
+ type: Boolean,
2175
+ default: false
2169
2176
  }
2170
2177
  },
2171
2178
  data: function data() {
@@ -2789,6 +2796,7 @@
2789
2796
  ref: node.id,
2790
2797
  refInFor: true,
2791
2798
  attrs: {
2799
+ "enable-title-tip": _vm.enableTitleTip,
2792
2800
  "node": node
2793
2801
  }
2794
2802
  }, [_vm._t("default", null, {
package/lib/card.js CHANGED
@@ -739,6 +739,7 @@
739
739
  }
740
740
  },
741
741
  handleNumberDelete: function handleNumberDelete(event) {
742
+ this.curValue === '' && (this.curValue = this.max);
742
743
  var curNumberValue = Number(this.curValue);
743
744
  if (curNumberValue - 1 >= this.min) {
744
745
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -753,6 +754,7 @@
753
754
  }
754
755
  },
755
756
  handleNumberAdd: function handleNumberAdd(event) {
757
+ this.curValue === '' && (this.curValue = this.min);
756
758
  var curNumberValue = Number(this.curValue);
757
759
  if (curNumberValue <= this.max - 1) {
758
760
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
package/lib/cascade.js CHANGED
@@ -5858,6 +5858,9 @@
5858
5858
  },
5859
5859
  watch: {
5860
5860
  showCascade: function showCascade(val) {
5861
+ if (!val) {
5862
+ this.dispatch('bk-form-item', 'form-blur');
5863
+ }
5861
5864
  this.$emit('toggle', val);
5862
5865
  this.filterableStatus = this.searchContent !== '';
5863
5866
  if (val) {
@@ -6096,6 +6099,7 @@
6096
6099
  var selectedList = this.multiple ? this.multipleSelectedList : this.selectedList;
6097
6100
  this.$emit('input', newId);
6098
6101
  this.$emit('change', newId, oldId, JSON.parse(stringify$1(selectedList)));
6102
+ this.dispatch('bk-form-item', 'form-change');
6099
6103
  }
6100
6104
  },
6101
6105
  exposeMultiple: function exposeMultiple(oldId) {
package/lib/input.js CHANGED
@@ -739,6 +739,7 @@
739
739
  }
740
740
  },
741
741
  handleNumberDelete: function handleNumberDelete(event) {
742
+ this.curValue === '' && (this.curValue = this.max);
742
743
  var curNumberValue = Number(this.curValue);
743
744
  if (curNumberValue - 1 >= this.min) {
744
745
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -753,6 +754,7 @@
753
754
  }
754
755
  },
755
756
  handleNumberAdd: function handleNumberAdd(event) {
757
+ this.curValue === '' && (this.curValue = this.min);
756
758
  var curNumberValue = Number(this.curValue);
757
759
  if (curNumberValue <= this.max - 1) {
758
760
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
package/lib/slider.js CHANGED
@@ -931,6 +931,7 @@
931
931
  }
932
932
  },
933
933
  handleNumberDelete: function handleNumberDelete(event) {
934
+ this.curValue === '' && (this.curValue = this.max);
934
935
  var curNumberValue = Number(this.curValue);
935
936
  if (curNumberValue - 1 >= this.min) {
936
937
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -945,6 +946,7 @@
945
946
  }
946
947
  },
947
948
  handleNumberAdd: function handleNumberAdd(event) {
949
+ this.curValue === '' && (this.curValue = this.min);
948
950
  var curNumberValue = Number(this.curValue);
949
951
  if (curNumberValue <= this.max - 1) {
950
952
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
package/lib/transfer.js CHANGED
@@ -890,6 +890,7 @@
890
890
  }
891
891
  },
892
892
  handleNumberDelete: function handleNumberDelete(event) {
893
+ this.curValue === '' && (this.curValue = this.max);
893
894
  var curNumberValue = Number(this.curValue);
894
895
  if (curNumberValue - 1 >= this.min) {
895
896
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -904,6 +905,7 @@
904
905
  }
905
906
  },
906
907
  handleNumberAdd: function handleNumberAdd(event) {
908
+ this.curValue === '' && (this.curValue = this.min);
907
909
  var curNumberValue = Number(this.curValue);
908
910
  if (curNumberValue <= this.max - 1) {
909
911
  var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
@@ -7149,6 +7149,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
7149
7149
  }
7150
7150
  .bk-page{
7151
7151
  overflow:hidden;
7152
+ white-space:normal;
7152
7153
  }
7153
7154
  .bk-page .icon-angle-right, .bk-page .icon-angle-left{
7154
7155
  line-height:36px;
@@ -10237,6 +10238,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10237
10238
  border-radius:0 0 2px 2px;
10238
10239
  }
10239
10240
  .bk-table{
10241
+ white-space:normal;
10240
10242
  position:relative;
10241
10243
  overflow:hidden;
10242
10244
  -webkit-box-sizing:border-box;