bk-magic-vue 2.4.0-beta.3 → 2.4.1-beta.1
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 +17 -7
- package/dist/bk-magic-vue.js +65 -25
- 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/big-tree.js +1 -1
- package/lib/breadcrumb.js +28 -1
- package/lib/cascade.js +14 -4
- package/lib/date-picker.js +13 -8
- package/lib/dialog.js +3 -4
- package/lib/directives/overflow-tips.js +1 -1
- package/lib/directives/tooltips.js +1 -1
- package/lib/form-item.js +1 -1
- package/lib/image-viewer.js +1 -1
- package/lib/image.js +1 -1
- package/lib/info-box.js +3 -4
- package/lib/pagination.js +1 -1
- package/lib/row.js +1 -1
- package/lib/search-select.js +1 -1
- package/lib/select.js +1 -1
- package/lib/slider.js +1 -1
- package/lib/table-column.js +4 -2
- package/lib/table.js +6 -9
- package/lib/tag-input.js +1 -1
- package/lib/time-picker.js +9 -4
- package/lib/transfer.js +1 -1
- package/lib/ui/bk-magic-vue.css +17 -7
- 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/breadcrumb.css +10 -0
- package/lib/ui/breadcrumb.min.css +1 -1
- package/lib/ui/breadcrumb.min.css.map +1 -1
- package/lib/ui/cascade.css +2 -2
- package/lib/ui/cascade.min.css +1 -1
- package/lib/ui/cascade.min.css.map +1 -1
- package/lib/ui/table.css +8 -5
- package/lib/ui/table.min.css +1 -1
- package/lib/ui/table.min.css.map +1 -1
- package/lib/upload.js +1 -1
- package/lib/version-detail.js +3 -4
- package/lib/virtual-render.js +1 -1
- package/package.json +1 -1
package/dist/bk-magic-vue.css
CHANGED
|
@@ -10344,9 +10344,11 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
10344
10344
|
cursor:pointer;
|
|
10345
10345
|
color:#C4C6CC
|
|
10346
10346
|
}
|
|
10347
|
-
.bk-table th .bk-table-column-filter-trigger.is-open
|
|
10348
|
-
|
|
10349
|
-
|
|
10347
|
+
.bk-table th .bk-table-column-filter-trigger.is-open{
|
|
10348
|
+
color:#63656e;
|
|
10349
|
+
}
|
|
10350
|
+
.bk-table th .bk-table-column-filter-trigger.is-filtered{
|
|
10351
|
+
color:#3a84ff;
|
|
10350
10352
|
}
|
|
10351
10353
|
.bk-table th .bk-table-caret-wrapper{
|
|
10352
10354
|
display:-webkit-inline-box;
|
|
@@ -10384,10 +10386,10 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
|
|
|
10384
10386
|
bottom:-1px;
|
|
10385
10387
|
}
|
|
10386
10388
|
.bk-table th.ascending .bk-table-sort-caret.ascending{
|
|
10387
|
-
border-bottom-color:#
|
|
10389
|
+
border-bottom-color:#3a84ff;
|
|
10388
10390
|
}
|
|
10389
10391
|
.bk-table th.descending .bk-table-sort-caret.descending{
|
|
10390
|
-
border-top-color:#
|
|
10392
|
+
border-top-color:#3a84ff;
|
|
10391
10393
|
}
|
|
10392
10394
|
.bk-table td.gutter{
|
|
10393
10395
|
width:0;
|
|
@@ -14507,14 +14509,14 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
14507
14509
|
min-height:21px;
|
|
14508
14510
|
line-height:19px;
|
|
14509
14511
|
word-break:break-all;
|
|
14510
|
-
max-width:
|
|
14512
|
+
max-width:150px;
|
|
14511
14513
|
overflow:hidden;
|
|
14512
14514
|
display:inline-block;
|
|
14513
14515
|
text-overflow:ellipsis;
|
|
14514
14516
|
white-space:nowrap;
|
|
14515
14517
|
}
|
|
14516
14518
|
.bk-cascade-tag-list .remove-key{
|
|
14517
|
-
position:
|
|
14519
|
+
position:absolute;
|
|
14518
14520
|
width:18px;
|
|
14519
14521
|
height:16px;
|
|
14520
14522
|
top:3px;
|
|
@@ -15148,6 +15150,14 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
15148
15150
|
.bk-breadcrumb-item:last-child .bk-breadcrumb-separator{
|
|
15149
15151
|
display:none;
|
|
15150
15152
|
}
|
|
15153
|
+
.bk-breadcrumb-goback{
|
|
15154
|
+
color:#699df4;
|
|
15155
|
+
margin-right:12px;
|
|
15156
|
+
cursor:pointer
|
|
15157
|
+
}
|
|
15158
|
+
.bk-breadcrumb-goback .icon-default{
|
|
15159
|
+
font-size:26px;
|
|
15160
|
+
}
|
|
15151
15161
|
.bk-divider{
|
|
15152
15162
|
position:relative
|
|
15153
15163
|
}
|
package/dist/bk-magic-vue.js
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
var ownKeys = Object.keys(source);
|
|
121
121
|
|
|
122
122
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
123
|
-
ownKeys
|
|
123
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
124
124
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
125
125
|
}));
|
|
126
126
|
}
|
|
@@ -7853,10 +7853,10 @@
|
|
|
7853
7853
|
return !this.editable || this.readonly;
|
|
7854
7854
|
},
|
|
7855
7855
|
hasFooter: function hasFooter() {
|
|
7856
|
-
return !!this.$slots.footer;
|
|
7856
|
+
return !!this.$slots.footer || !!this.$scopedSlots.footer;
|
|
7857
7857
|
},
|
|
7858
7858
|
hasHeader: function hasHeader() {
|
|
7859
|
-
return !!this.$slots.header;
|
|
7859
|
+
return !!this.$slots.header || !!this.$scopedSlots.header;
|
|
7860
7860
|
},
|
|
7861
7861
|
allowCrossDayProp: function allowCrossDayProp() {
|
|
7862
7862
|
return this.panel === 'RangeTimePickerPanel' ? this.allowCrossDay : false;
|
|
@@ -8488,7 +8488,12 @@
|
|
|
8488
8488
|
},
|
|
8489
8489
|
"selection-mode-change": _vm.onSelectionModeChange
|
|
8490
8490
|
}
|
|
8491
|
-
}, 'component', _vm.ownPickerProps, false)
|
|
8491
|
+
}, 'component', _vm.ownPickerProps, false), [_vm.$slots.shortcuts || _vm.$scopedSlots.shortcuts ? _c('div', {
|
|
8492
|
+
attrs: {
|
|
8493
|
+
"slot": "shortcuts"
|
|
8494
|
+
},
|
|
8495
|
+
slot: "shortcuts"
|
|
8496
|
+
}, [_vm._t("shortcuts")], 2) : _vm._e()]), _vm.hasFooter ? [_c('div', {
|
|
8492
8497
|
staticClass: "bk-date-picker-footer-wrapper",
|
|
8493
8498
|
class: _vm.footerSlotCls
|
|
8494
8499
|
}, [_vm._t("footer")], 2)] : _vm._e()], 2)], 1)], 1);
|
|
@@ -11879,7 +11884,7 @@
|
|
|
11879
11884
|
|
|
11880
11885
|
return _c('div', {
|
|
11881
11886
|
staticClass: "bk-picker-panel-body-wrapper bk-date-picker-with-range",
|
|
11882
|
-
class: [_vm.shortcuts.length ? 'bk-picker-panel-with-sidebar' : ''],
|
|
11887
|
+
class: [_vm.shortcuts.length || _vm.$slots.shortcuts ? 'bk-picker-panel-with-sidebar' : ''],
|
|
11883
11888
|
on: {
|
|
11884
11889
|
"mousedown": function mousedown($event) {
|
|
11885
11890
|
$event.preventDefault();
|
|
@@ -12113,9 +12118,9 @@
|
|
|
12113
12118
|
"pick-clear": _vm.handlePickClear,
|
|
12114
12119
|
"pick-success": _vm.handlePickSuccess
|
|
12115
12120
|
}
|
|
12116
|
-
}) : _vm._e()], 1), _vm.shortcuts.length ? _c('div', {
|
|
12121
|
+
}) : _vm._e()], 1), _vm.shortcuts.length || _vm.$slots.shortcuts ? _c('div', {
|
|
12117
12122
|
staticClass: "bk-picker-panel-sidebar"
|
|
12118
|
-
}, _vm._l(_vm.shortcuts, function (shortcut, index) {
|
|
12123
|
+
}, [_vm.$slots.shortcuts ? _vm._t("shortcuts") : _vm._l(_vm.shortcuts, function (shortcut, index) {
|
|
12119
12124
|
return _c('div', {
|
|
12120
12125
|
key: index,
|
|
12121
12126
|
staticClass: "bk-picker-panel-shortcut",
|
|
@@ -12125,7 +12130,7 @@
|
|
|
12125
12130
|
}
|
|
12126
12131
|
}
|
|
12127
12132
|
}, [_vm._v(_vm._s(shortcut.text))]);
|
|
12128
|
-
}),
|
|
12133
|
+
})], 2) : _vm._e()]);
|
|
12129
12134
|
};
|
|
12130
12135
|
|
|
12131
12136
|
var __vue_staticRenderFns__$t = [];
|
|
@@ -12736,8 +12741,7 @@
|
|
|
12736
12741
|
default: false
|
|
12737
12742
|
},
|
|
12738
12743
|
zIndex: {
|
|
12739
|
-
type: Number
|
|
12740
|
-
default: 1000
|
|
12744
|
+
type: Number
|
|
12741
12745
|
},
|
|
12742
12746
|
confirmFn: {
|
|
12743
12747
|
type: Function,
|
|
@@ -12946,7 +12950,7 @@
|
|
|
12946
12950
|
}
|
|
12947
12951
|
}, 0);
|
|
12948
12952
|
}
|
|
12949
|
-
_this.dialogIndex = _this.getLocalZIndex();
|
|
12953
|
+
_this.dialogIndex = _this.zIndex !== undefined ? _this.zIndex : _this.getLocalZIndex();
|
|
12950
12954
|
if (_this.showMask) {
|
|
12951
12955
|
var options = {
|
|
12952
12956
|
tplAction: 'keepAll',
|
|
@@ -38898,12 +38902,11 @@
|
|
|
38898
38902
|
_createClass(TableLayout, [{
|
|
38899
38903
|
key: "updateScrollY",
|
|
38900
38904
|
value: function updateScrollY() {
|
|
38901
|
-
|
|
38902
|
-
if (typeof height !== 'string' && typeof height !== 'number') return;
|
|
38905
|
+
if (!this.bodyHeight) return;
|
|
38903
38906
|
var bodyWrapper = this.table.bodyWrapper;
|
|
38904
38907
|
if (this.table.$el && bodyWrapper) {
|
|
38905
38908
|
if (this.table.isVirtualRender) {
|
|
38906
|
-
var body = bodyWrapper.querySelector('.bk-virtual-
|
|
38909
|
+
var body = bodyWrapper.querySelector('.bk-virtual-section');
|
|
38907
38910
|
this.scrollY = body.offsetHeight > this.bodyHeight;
|
|
38908
38911
|
} else {
|
|
38909
38912
|
var _body = bodyWrapper.querySelector('.bk-table-body');
|
|
@@ -38963,10 +38966,8 @@
|
|
|
38963
38966
|
});
|
|
38964
38967
|
}
|
|
38965
38968
|
var tableHeight = this.tableHeight = this.table.$el.offsetHeight - this.paginationHeight;
|
|
38966
|
-
|
|
38967
|
-
|
|
38968
|
-
this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
38969
|
-
}
|
|
38969
|
+
var footerHeight = this.footerHeight = footerWrapper ? footerWrapper.offsetHeight : 0;
|
|
38970
|
+
this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
38970
38971
|
this.fixedBodyHeight = this.scrollX ? this.bodyHeight - this.gutterWidth : this.bodyHeight;
|
|
38971
38972
|
var noData = !this.table.data || this.table.data.length === 0;
|
|
38972
38973
|
this.viewportHeight = this.scrollX ? tableHeight - (noData ? 0 : this.gutterWidth) : tableHeight;
|
|
@@ -41499,10 +41500,10 @@
|
|
|
41499
41500
|
},
|
|
41500
41501
|
doLayout: function doLayout() {
|
|
41501
41502
|
if (this.$destroyed) return;
|
|
41502
|
-
this.layout.updateColumnsWidth();
|
|
41503
41503
|
if (this.shouldUpdateHeight) {
|
|
41504
41504
|
this.layout.updateElsHeight();
|
|
41505
41505
|
}
|
|
41506
|
+
this.layout.updateColumnsWidth();
|
|
41506
41507
|
},
|
|
41507
41508
|
sort: function sort(prop, order) {
|
|
41508
41509
|
this.store.commit('sort', {
|
|
@@ -42295,7 +42296,9 @@
|
|
|
42295
42296
|
renderCell = DEFAULT_RENDER_CELL;
|
|
42296
42297
|
}
|
|
42297
42298
|
if (_self.showOverflowTooltip) {
|
|
42298
|
-
var config = _typeof(_self.showOverflowTooltip) === 'object' ? _self.showOverflowTooltip : {
|
|
42299
|
+
var config = _typeof(_self.showOverflowTooltip) === 'object' ? _self.showOverflowTooltip : {
|
|
42300
|
+
interactive: false
|
|
42301
|
+
};
|
|
42299
42302
|
return h("div", {
|
|
42300
42303
|
"class": "cell",
|
|
42301
42304
|
"directives": [{
|
|
@@ -53013,7 +53016,11 @@
|
|
|
53013
53016
|
return selections;
|
|
53014
53017
|
},
|
|
53015
53018
|
changeValueList: function changeValueList() {
|
|
53016
|
-
|
|
53019
|
+
if (this.isRemote) {
|
|
53020
|
+
this.recursiveList(this.cascadeList, this.value, 'search');
|
|
53021
|
+
} else {
|
|
53022
|
+
this.recursiveList(this.cascadeList, this.value, 'init');
|
|
53023
|
+
}
|
|
53017
53024
|
this.checkListStatus(this.value);
|
|
53018
53025
|
var newList = this.changeList();
|
|
53019
53026
|
this.multipleSelectedList = newList.filter(function (item) {
|
|
@@ -53132,7 +53139,7 @@
|
|
|
53132
53139
|
var itemId = item.id[item.id.length - 1];
|
|
53133
53140
|
var changeCheckStatus = function changeCheckStatus(arr) {
|
|
53134
53141
|
arr.forEach(function (item) {
|
|
53135
|
-
if (itemId === item.id) {
|
|
53142
|
+
if ("".concat(itemId) === "".concat(item.id)) {
|
|
53136
53143
|
item.isSelected = false;
|
|
53137
53144
|
item.isIndeterminate = false;
|
|
53138
53145
|
}
|
|
@@ -53236,9 +53243,15 @@
|
|
|
53236
53243
|
}, _vm._l(_vm.multipleSelectedList, function (item, index) {
|
|
53237
53244
|
return _c('span', {
|
|
53238
53245
|
key: index,
|
|
53239
|
-
staticClass: "bk-cascade-tag-item"
|
|
53246
|
+
staticClass: "bk-cascade-tag-item",
|
|
53247
|
+
staticStyle: {
|
|
53248
|
+
"padding-right": "18px"
|
|
53249
|
+
}
|
|
53240
53250
|
}, [_c('span', {
|
|
53241
|
-
staticClass: "bk-cascade-item-name"
|
|
53251
|
+
staticClass: "bk-cascade-item-name",
|
|
53252
|
+
attrs: {
|
|
53253
|
+
"title": item.name
|
|
53254
|
+
}
|
|
53242
53255
|
}, [_vm._v(_vm._s(item.name))]), _c('a', {
|
|
53243
53256
|
staticClass: "remove-key",
|
|
53244
53257
|
attrs: {
|
|
@@ -54342,6 +54355,16 @@
|
|
|
54342
54355
|
separatorClass: {
|
|
54343
54356
|
type: String,
|
|
54344
54357
|
default: ''
|
|
54358
|
+
},
|
|
54359
|
+
backRouter: {
|
|
54360
|
+
type: [Object, String],
|
|
54361
|
+
default: function _default() {
|
|
54362
|
+
return null;
|
|
54363
|
+
}
|
|
54364
|
+
},
|
|
54365
|
+
replace: {
|
|
54366
|
+
type: Boolean,
|
|
54367
|
+
default: false
|
|
54345
54368
|
}
|
|
54346
54369
|
},
|
|
54347
54370
|
provide: function provide() {
|
|
@@ -54354,6 +54377,14 @@
|
|
|
54354
54377
|
if (items.length) {
|
|
54355
54378
|
items[items.length - 1].setAttribute('aria-current', 'page');
|
|
54356
54379
|
}
|
|
54380
|
+
},
|
|
54381
|
+
methods: {
|
|
54382
|
+
goBack: function goBack() {
|
|
54383
|
+
var backRouter = this.backRouter,
|
|
54384
|
+
$router = this.$router;
|
|
54385
|
+
if (!backRouter || !$router) return;
|
|
54386
|
+
this.replace ? $router.replace(backRouter) : $router.push(backRouter);
|
|
54387
|
+
}
|
|
54357
54388
|
}
|
|
54358
54389
|
};
|
|
54359
54390
|
|
|
@@ -54374,7 +54405,16 @@
|
|
|
54374
54405
|
"aria-label": "Breadcrumb",
|
|
54375
54406
|
"role": "navigation"
|
|
54376
54407
|
}
|
|
54377
|
-
}, [_vm.
|
|
54408
|
+
}, [!_vm.$slots.prefix && _vm.backRouter ? _c('div', {
|
|
54409
|
+
staticClass: "bk-breadcrumb-goback"
|
|
54410
|
+
}, [_c('i', {
|
|
54411
|
+
staticClass: "bk-icon icon-arrows-left icon-default",
|
|
54412
|
+
on: {
|
|
54413
|
+
"click": _vm.goBack
|
|
54414
|
+
}
|
|
54415
|
+
})]) : _vm._e(), _vm.$slots.prefix ? _c('div', {
|
|
54416
|
+
staticClass: "bk-breadcrumb-goback"
|
|
54417
|
+
}, [_vm._t("prefix")], 2) : _vm._e(), _vm._t("default")], 2);
|
|
54378
54418
|
};
|
|
54379
54419
|
|
|
54380
54420
|
var __vue_staticRenderFns__$1u = [];
|