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/dist/bk-magic-vue.css +2 -0
- package/dist/bk-magic-vue.js +20 -3
- package/dist/bk-magic-vue.min.css +1 -1
- package/dist/bk-magic-vue.min.css.gz +0 -0
- package/dist/bk-magic-vue.min.css.map +1 -1
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/affix.js +5 -2
- package/lib/big-tree.js +9 -1
- package/lib/card.js +2 -0
- package/lib/cascade.js +4 -0
- package/lib/input.js +2 -0
- package/lib/slider.js +2 -0
- package/lib/transfer.js +2 -0
- package/lib/ui/bk-magic-vue.css +2 -0
- package/lib/ui/bk-magic-vue.min.css +1 -1
- package/lib/ui/bk-magic-vue.min.css.gz +0 -0
- package/lib/ui/bk-magic-vue.min.css.map +1 -1
- package/lib/ui/pagination.css +1 -0
- package/lib/ui/pagination.min.css +1 -1
- package/lib/ui/pagination.min.css.map +1 -1
- package/lib/ui/table.css +1 -0
- package/lib/ui/table.min.css +1 -1
- package/lib/ui/table.min.css.map +1 -1
- package/package.json +1 -1
package/dist/bk-magic-vue.css
CHANGED
|
@@ -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;
|
package/dist/bk-magic-vue.js
CHANGED
|
@@ -1007,13 +1007,16 @@
|
|
|
1007
1007
|
},
|
|
1008
1008
|
methods: {
|
|
1009
1009
|
setTargetLoop: function setTargetLoop() {
|
|
1010
|
+
var rect = this.targetEl.getBoundingClientRect();
|
|
1010
1011
|
if (this.offsetType === 'top') {
|
|
1011
1012
|
this.styles = {
|
|
1012
|
-
top: "".concat(
|
|
1013
|
+
top: "".concat(rect.top + this.offsetTop, "px"),
|
|
1014
|
+
width: "".concat(rect.width, "px")
|
|
1013
1015
|
};
|
|
1014
1016
|
} else {
|
|
1015
1017
|
this.styles = {
|
|
1016
|
-
bottom: "".concat(window.innerHeight -
|
|
1018
|
+
bottom: "".concat(window.innerHeight - rect.bottom + this.offsetBottom, "px"),
|
|
1019
|
+
width: "".concat(rect.width, "px")
|
|
1017
1020
|
};
|
|
1018
1021
|
}
|
|
1019
1022
|
},
|
|
@@ -29676,6 +29679,7 @@
|
|
|
29676
29679
|
}
|
|
29677
29680
|
},
|
|
29678
29681
|
handleNumberDelete: function handleNumberDelete(event) {
|
|
29682
|
+
this.curValue === '' && (this.curValue = this.max);
|
|
29679
29683
|
var curNumberValue = Number(this.curValue);
|
|
29680
29684
|
if (curNumberValue - 1 >= this.min) {
|
|
29681
29685
|
var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
|
|
@@ -29690,6 +29694,7 @@
|
|
|
29690
29694
|
}
|
|
29691
29695
|
},
|
|
29692
29696
|
handleNumberAdd: function handleNumberAdd(event) {
|
|
29697
|
+
this.curValue === '' && (this.curValue = this.min);
|
|
29693
29698
|
var curNumberValue = Number(this.curValue);
|
|
29694
29699
|
if (curNumberValue <= this.max - 1) {
|
|
29695
29700
|
var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
|
|
@@ -51075,7 +51080,10 @@
|
|
|
51075
51080
|
}) : _vm._e(), _vm.props.node.nodeIcon ? _c('i', {
|
|
51076
51081
|
class: ['node-icon', _vm.props.node.nodeIcon]
|
|
51077
51082
|
}) : _vm._e()]), _c('div', {
|
|
51078
|
-
staticClass: "node-content"
|
|
51083
|
+
staticClass: "node-content",
|
|
51084
|
+
attrs: {
|
|
51085
|
+
"title": _vm.props.enableTitleTip ? _vm.props.node.name : false
|
|
51086
|
+
}
|
|
51079
51087
|
}, [_vm._t("default", [_vm._v("\n " + _vm._s(_vm.props.node.name) + "\n ")], {
|
|
51080
51088
|
node: _vm.props.node,
|
|
51081
51089
|
data: _vm.props.node.data
|
|
@@ -51212,6 +51220,10 @@
|
|
|
51212
51220
|
size: {
|
|
51213
51221
|
type: String,
|
|
51214
51222
|
default: 'normal'
|
|
51223
|
+
},
|
|
51224
|
+
enableTitleTip: {
|
|
51225
|
+
type: Boolean,
|
|
51226
|
+
default: false
|
|
51215
51227
|
}
|
|
51216
51228
|
},
|
|
51217
51229
|
data: function data() {
|
|
@@ -51835,6 +51847,7 @@
|
|
|
51835
51847
|
ref: node.id,
|
|
51836
51848
|
refInFor: true,
|
|
51837
51849
|
attrs: {
|
|
51850
|
+
"enable-title-tip": _vm.enableTitleTip,
|
|
51838
51851
|
"node": node
|
|
51839
51852
|
}
|
|
51840
51853
|
}, [_vm._t("default", null, {
|
|
@@ -53720,6 +53733,9 @@
|
|
|
53720
53733
|
},
|
|
53721
53734
|
watch: {
|
|
53722
53735
|
showCascade: function showCascade(val) {
|
|
53736
|
+
if (!val) {
|
|
53737
|
+
this.dispatch('bk-form-item', 'form-blur');
|
|
53738
|
+
}
|
|
53723
53739
|
this.$emit('toggle', val);
|
|
53724
53740
|
this.filterableStatus = this.searchContent !== '';
|
|
53725
53741
|
if (val) {
|
|
@@ -53958,6 +53974,7 @@
|
|
|
53958
53974
|
var selectedList = this.multiple ? this.multipleSelectedList : this.selectedList;
|
|
53959
53975
|
this.$emit('input', newId);
|
|
53960
53976
|
this.$emit('change', newId, oldId, JSON.parse(stringify$1(selectedList)));
|
|
53977
|
+
this.dispatch('bk-form-item', 'form-change');
|
|
53961
53978
|
}
|
|
53962
53979
|
},
|
|
53963
53980
|
exposeMultiple: function exposeMultiple(oldId) {
|