bk-magic-vue 2.4.8 → 2.4.9
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/bkui-vue2-helper/attributes.json +1 -0
- package/bkui-vue2-helper/tags.json +1 -0
- package/dist/bk-magic-vue.css +81 -10
- package/dist/bk-magic-vue.js +245 -115
- 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/button.js +1 -1
- package/lib/date-picker.js +1 -22
- package/lib/dialog.js +30 -8
- package/lib/image-viewer.js +84 -8
- package/lib/image.js +94 -13
- package/lib/info-box.js +31 -8
- package/lib/loading.js +6 -2
- package/lib/pagination.js +871 -51
- package/lib/resize-layout.js +24 -22
- package/lib/select.js +7 -3
- package/lib/spin.js +1 -1
- package/lib/tab.js +241 -210
- package/lib/table-setting-content.js +1 -1
- package/lib/table.js +782 -66
- package/lib/tag-input.js +6 -2
- package/lib/time-picker.js +1 -22
- package/lib/ui/bk-magic-vue.css +81 -10
- 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 +14 -0
- package/lib/ui/pagination.min.css +1 -1
- package/lib/ui/pagination.min.css.map +1 -1
- package/lib/ui/select.css +4 -0
- package/lib/ui/select.min.css +1 -1
- package/lib/ui/select.min.css.map +1 -1
- package/lib/ui/spin.css +38 -5
- package/lib/ui/spin.min.css +1 -1
- package/lib/ui/spin.min.css.map +1 -1
- package/lib/ui/tab.css +41 -5
- package/lib/ui/tab.min.css +1 -1
- package/lib/ui/tab.min.css.map +1 -1
- package/lib/version-detail.js +36 -10
- package/lib/zoom-image.js +372 -176
- package/package.json +2 -2
package/lib/tag-input.js
CHANGED
|
@@ -2202,7 +2202,9 @@
|
|
|
2202
2202
|
el.$vm.isShow = false;
|
|
2203
2203
|
}, delay);
|
|
2204
2204
|
} else {
|
|
2205
|
-
|
|
2205
|
+
Vue.nextTick(function () {
|
|
2206
|
+
el.$vm.isShow = false;
|
|
2207
|
+
});
|
|
2206
2208
|
}
|
|
2207
2209
|
}
|
|
2208
2210
|
if (options.title) {
|
|
@@ -2236,7 +2238,9 @@
|
|
|
2236
2238
|
}
|
|
2237
2239
|
},
|
|
2238
2240
|
update: function update(el, binding) {
|
|
2239
|
-
|
|
2241
|
+
if (el.viewmodel) {
|
|
2242
|
+
toggle(el, binding.value);
|
|
2243
|
+
}
|
|
2240
2244
|
}
|
|
2241
2245
|
};
|
|
2242
2246
|
|
package/lib/time-picker.js
CHANGED
|
@@ -2978,23 +2978,6 @@
|
|
|
2978
2978
|
},
|
|
2979
2979
|
handleKeydown: function handleKeydown(e) {
|
|
2980
2980
|
var keyCode = e.keyCode;
|
|
2981
|
-
if (keyCode === 9) {
|
|
2982
|
-
if (this.visible) {
|
|
2983
|
-
e.stopPropagation();
|
|
2984
|
-
e.preventDefault();
|
|
2985
|
-
if (this.isConfirm) {
|
|
2986
|
-
var selector = '.bk-picker-confirm > *';
|
|
2987
|
-
var tabbable = this.$refs.drop.$el.querySelectorAll(selector);
|
|
2988
|
-
this.internalFocus = true;
|
|
2989
|
-
var element = _toConsumableArray(tabbable)[e.shiftKey ? 'pop' : 'shift']();
|
|
2990
|
-
element.focus();
|
|
2991
|
-
} else {
|
|
2992
|
-
this.handleClose();
|
|
2993
|
-
}
|
|
2994
|
-
} else {
|
|
2995
|
-
this.focused = false;
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
2981
|
var arrows = [37, 38, 39, 40];
|
|
2999
2982
|
if (!this.visible && arrows.includes(keyCode)) {
|
|
3000
2983
|
this.visible = true;
|
|
@@ -3006,7 +2989,7 @@
|
|
|
3006
2989
|
this.handleClose();
|
|
3007
2990
|
}
|
|
3008
2991
|
}
|
|
3009
|
-
if (keyCode === 13 && this.timeEnterMode) {
|
|
2992
|
+
if ((keyCode === 9 || keyCode === 13) && this.timeEnterMode) {
|
|
3010
2993
|
var _timePickers = findChildComponents(this, 'TimeSpinner');
|
|
3011
2994
|
if (_timePickers.length > 0) {
|
|
3012
2995
|
var columnsPerPicker = _timePickers[0].showSeconds ? 3 : 2;
|
|
@@ -3157,10 +3140,6 @@
|
|
|
3157
3140
|
}
|
|
3158
3141
|
},
|
|
3159
3142
|
handleInputMouseleave: function handleInputMouseleave(e) {
|
|
3160
|
-
if (e.toElement && e.toElement.classList.contains('clear-action')) {
|
|
3161
|
-
return;
|
|
3162
|
-
}
|
|
3163
|
-
this.showClose = false;
|
|
3164
3143
|
},
|
|
3165
3144
|
handleClear: function handleClear(e) {
|
|
3166
3145
|
var _this3 = this;
|
package/lib/ui/bk-magic-vue.css
CHANGED
|
@@ -7243,6 +7243,14 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
7243
7243
|
padding:0 2px;
|
|
7244
7244
|
font-weight:bold;
|
|
7245
7245
|
}
|
|
7246
|
+
.bk-page .bk-page-jumper{
|
|
7247
|
+
margin-left:18px;
|
|
7248
|
+
display:inline-block;
|
|
7249
|
+
}
|
|
7250
|
+
.bk-page .bk-page-jumper > span{
|
|
7251
|
+
font-size:14px;
|
|
7252
|
+
color:#63656e;
|
|
7253
|
+
}
|
|
7246
7254
|
.bk-page.bk-page-align-left{
|
|
7247
7255
|
text-align:left;
|
|
7248
7256
|
}
|
|
@@ -7260,6 +7268,9 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
7260
7268
|
height:32px;
|
|
7261
7269
|
line-height:30px;
|
|
7262
7270
|
}
|
|
7271
|
+
.bk-page.bk-page-small .bk-page-jumper{
|
|
7272
|
+
font-size:14px;
|
|
7273
|
+
}
|
|
7263
7274
|
.bk-page.bk-page-small .bk-page-total-count,
|
|
7264
7275
|
.bk-page.bk-page-small .bk-page-selection-count{
|
|
7265
7276
|
line-height:32px;
|
|
@@ -8568,6 +8579,9 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
8568
8579
|
cursor:not-allowed;
|
|
8569
8580
|
border-color:#dcdee5;
|
|
8570
8581
|
}
|
|
8582
|
+
.bk-select.is-disabled .bk-select-angle{
|
|
8583
|
+
color:#c4c6cc;
|
|
8584
|
+
}
|
|
8571
8585
|
.bk-select.is-readonly,
|
|
8572
8586
|
.bk-select.is-loading{
|
|
8573
8587
|
background-color:#fafafa;
|
|
@@ -9873,7 +9887,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
9873
9887
|
.bk-tab.bk-tab-card .bk-tab-scroll-controller.prev.disabled{
|
|
9874
9888
|
border-right:none;
|
|
9875
9889
|
}
|
|
9876
|
-
.bk-tab.bk-tab-card .bk-tab-add-controller{
|
|
9890
|
+
.bk-tab.bk-tab-card .bk-tab-extension-controller, .bk-tab.bk-tab-card .bk-tab-add-controller{
|
|
9877
9891
|
border-top:1px solid #dcdee5;
|
|
9878
9892
|
background-color:#fff;
|
|
9879
9893
|
}
|
|
@@ -9902,7 +9916,11 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
9902
9916
|
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-add-controller{
|
|
9903
9917
|
border-left:none;
|
|
9904
9918
|
}
|
|
9905
|
-
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper .bk-tab-
|
|
9919
|
+
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-extension-controller{
|
|
9920
|
+
border-left:none;
|
|
9921
|
+
}
|
|
9922
|
+
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper .bk-tab-extension-controller,
|
|
9923
|
+
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper .bk-tab-add-controller,
|
|
9906
9924
|
.bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper .bk-tab-scroll-controller{
|
|
9907
9925
|
border:none;
|
|
9908
9926
|
border-bottom:1px solid #dcdee5;
|
|
@@ -9985,6 +10003,9 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
9985
10003
|
.position-left .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-add-controller, .position-right .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-add-controller{
|
|
9986
10004
|
border-left:none;
|
|
9987
10005
|
}
|
|
10006
|
+
.position-left .bk-tab-label-wrapper.has-scroller.has-add ..bk-tab-extension-controller, .position-right .bk-tab-label-wrapper.has-scroller.has-add ..bk-tab-extension-controller{
|
|
10007
|
+
border-left:none;
|
|
10008
|
+
}
|
|
9988
10009
|
.position-left .bk-tab-label-wrapper .bk-tab-label-list, .position-right .bk-tab-label-wrapper .bk-tab-label-list{
|
|
9989
10010
|
display:-webkit-box;
|
|
9990
10011
|
display:-ms-flexbox;
|
|
@@ -10057,6 +10078,18 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
10057
10078
|
box-shadow:-10px 0 10px rgba(0, 0, 0, .05);
|
|
10058
10079
|
border-right:0;
|
|
10059
10080
|
}
|
|
10081
|
+
.bk-tab-label-wrapper.has-scroller.has-add.has-extension .bk-tab-extension-controller{
|
|
10082
|
+
position:absolute;
|
|
10083
|
+
top:0;
|
|
10084
|
+
right:42px;
|
|
10085
|
+
border-left:1px solid #dcdee5;
|
|
10086
|
+
}
|
|
10087
|
+
.bk-tab-label-wrapper.has-scroller.has-add.has-extension .bk-tab-add-controller{
|
|
10088
|
+
border-left-width:0;
|
|
10089
|
+
}
|
|
10090
|
+
.bk-tab-label-wrapper.has-scroller.has-add.has-extension .bk-tab-scroll-controller.next{
|
|
10091
|
+
right:84px !important;
|
|
10092
|
+
}
|
|
10060
10093
|
.bk-tab-label-wrapper.has-scroller.has-add .bk-tab-scroll-controller.next{
|
|
10061
10094
|
right:42px;
|
|
10062
10095
|
}
|
|
@@ -10072,7 +10105,17 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
10072
10105
|
-webkit-box-shadow:-10px 0 10px rgba(0, 0, 0, .05);
|
|
10073
10106
|
box-shadow:-10px 0 10px rgba(0, 0, 0, .05);
|
|
10074
10107
|
}
|
|
10075
|
-
.bk-tab-label-wrapper .bk-tab-
|
|
10108
|
+
.bk-tab-label-wrapper.has-scroller.has-extension:not(.has-add) .bk-tab-extension-controller{
|
|
10109
|
+
position:absolute;
|
|
10110
|
+
top:0;
|
|
10111
|
+
right:0;
|
|
10112
|
+
border-bottom:1px solid #dcdee5;
|
|
10113
|
+
border-left:1px solid #dcdee5;
|
|
10114
|
+
}
|
|
10115
|
+
.bk-tab-label-wrapper.has-scroller.has-extension:not(.has-add) .bk-tab-scroll-controller.next{
|
|
10116
|
+
right:42px;
|
|
10117
|
+
}
|
|
10118
|
+
.bk-tab-label-wrapper .bk-tab-extension-controller, .bk-tab-label-wrapper .bk-tab-add-controller{
|
|
10076
10119
|
display:inline-block;
|
|
10077
10120
|
vertical-align:middle;
|
|
10078
10121
|
width:42px;
|
|
@@ -10086,10 +10129,10 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
10086
10129
|
cursor:pointer;
|
|
10087
10130
|
z-index:2
|
|
10088
10131
|
}
|
|
10089
|
-
.bk-tab-label-wrapper .bk-tab-add-controller:hover{
|
|
10132
|
+
.bk-tab-label-wrapper .bk-tab-extension-controller:hover, .bk-tab-label-wrapper .bk-tab-add-controller:hover{
|
|
10090
10133
|
color:#3a84ff;
|
|
10091
10134
|
}
|
|
10092
|
-
.bk-tab-label-wrapper .bk-tab-add-controller.left-border{
|
|
10135
|
+
.bk-tab-label-wrapper .bk-tab-extension-controller.left-border, .bk-tab-label-wrapper .bk-tab-add-controller.left-border{
|
|
10093
10136
|
border-left:1px solid #dcdee5;
|
|
10094
10137
|
}
|
|
10095
10138
|
.bk-tab-label-wrapper .bk-tab-add-custom{
|
|
@@ -13498,6 +13541,10 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13498
13541
|
-webkit-animation-direction:normal;
|
|
13499
13542
|
animation-direction:normal;
|
|
13500
13543
|
}
|
|
13544
|
+
.bk-spin .bk-spin-rotation.bk-spin-rotation-default .rotate{
|
|
13545
|
+
-webkit-animation-name:fadeDefault;
|
|
13546
|
+
animation-name:fadeDefault;
|
|
13547
|
+
}
|
|
13501
13548
|
.bk-spin .bk-spin-rotation.bk-spin-rotation-primary .rotate{
|
|
13502
13549
|
-webkit-animation-name:fadePrimary;
|
|
13503
13550
|
animation-name:fadePrimary;
|
|
@@ -13518,6 +13565,9 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13518
13565
|
-webkit-animation-name:fadeInfo;
|
|
13519
13566
|
animation-name:fadeInfo;
|
|
13520
13567
|
}
|
|
13568
|
+
.bk-spin .bk-spin-rotation.bk-spin-rotation-default-wait .rotate{
|
|
13569
|
+
background-color:#c4c6cc;
|
|
13570
|
+
}
|
|
13521
13571
|
.bk-spin .bk-spin-rotation.bk-spin-rotation-primary-wait .rotate{
|
|
13522
13572
|
background-color:#3c96ff;
|
|
13523
13573
|
}
|
|
@@ -13642,19 +13692,22 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13642
13692
|
}
|
|
13643
13693
|
.bk-spin .bk-spin-icon-wait{
|
|
13644
13694
|
-webkit-animation:none;
|
|
13645
|
-
animation:none
|
|
13695
|
+
animation:none;
|
|
13696
|
+
}
|
|
13697
|
+
.bk-spin .bk-spin-icon-default{
|
|
13698
|
+
color:#c4c6cc;
|
|
13646
13699
|
}
|
|
13647
13700
|
.bk-spin .bk-spin-icon-primary{
|
|
13648
|
-
color:#3c96ff
|
|
13701
|
+
color:#3c96ff;
|
|
13649
13702
|
}
|
|
13650
13703
|
.bk-spin .bk-spin-icon-success{
|
|
13651
|
-
color:#2dcb56
|
|
13704
|
+
color:#2dcb56;
|
|
13652
13705
|
}
|
|
13653
13706
|
.bk-spin .bk-spin-icon-warning{
|
|
13654
|
-
color:#ffb848
|
|
13707
|
+
color:#ffb848;
|
|
13655
13708
|
}
|
|
13656
13709
|
.bk-spin .bk-spin-icon-danger{
|
|
13657
|
-
color:#ff5656
|
|
13710
|
+
color:#ff5656;
|
|
13658
13711
|
}
|
|
13659
13712
|
.bk-spin .bk-spin-icon-info{
|
|
13660
13713
|
color:#979ba5;
|
|
@@ -13706,6 +13759,24 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13706
13759
|
-ms-flex-align:center;
|
|
13707
13760
|
align-items:center;
|
|
13708
13761
|
}
|
|
13762
|
+
@-webkit-keyframes fadeDefault{
|
|
13763
|
+
0%{
|
|
13764
|
+
background-color:#c4c6cc;
|
|
13765
|
+
}
|
|
13766
|
+
|
|
13767
|
+
100%{
|
|
13768
|
+
background-color:none;
|
|
13769
|
+
}
|
|
13770
|
+
}
|
|
13771
|
+
@keyframes fadeDefault{
|
|
13772
|
+
0%{
|
|
13773
|
+
background-color:#c4c6cc;
|
|
13774
|
+
}
|
|
13775
|
+
|
|
13776
|
+
100%{
|
|
13777
|
+
background-color:none;
|
|
13778
|
+
}
|
|
13779
|
+
}
|
|
13709
13780
|
@keyframes fadePrimary{
|
|
13710
13781
|
0%{
|
|
13711
13782
|
background-color:#3c96ff;
|