bk-magic-vue 2.4.9-beta.2 → 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 +48 -5
- package/dist/bk-magic-vue.js +220 -92
- 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/date-picker.js +1 -22
- package/lib/dialog.js +29 -7
- package/lib/image-viewer.js +84 -8
- package/lib/image.js +94 -13
- package/lib/info-box.js +30 -7
- package/lib/loading.js +6 -2
- package/lib/pagination.js +870 -50
- package/lib/select.js +6 -2
- package/lib/tab.js +241 -210
- package/lib/table.js +781 -65
- package/lib/tag-input.js +6 -2
- package/lib/time-picker.js +1 -22
- package/lib/ui/bk-magic-vue.css +48 -5
- 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/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 +35 -9
- package/lib/zoom-image.js +372 -176
- package/package.json +2 -2
package/dist/bk-magic-vue.js
CHANGED
|
@@ -8175,23 +8175,6 @@
|
|
|
8175
8175
|
},
|
|
8176
8176
|
handleKeydown: function handleKeydown(e) {
|
|
8177
8177
|
var keyCode = e.keyCode;
|
|
8178
|
-
if (keyCode === 9) {
|
|
8179
|
-
if (this.visible) {
|
|
8180
|
-
e.stopPropagation();
|
|
8181
|
-
e.preventDefault();
|
|
8182
|
-
if (this.isConfirm) {
|
|
8183
|
-
var selector = '.bk-picker-confirm > *';
|
|
8184
|
-
var tabbable = this.$refs.drop.$el.querySelectorAll(selector);
|
|
8185
|
-
this.internalFocus = true;
|
|
8186
|
-
var element = _toConsumableArray(tabbable)[e.shiftKey ? 'pop' : 'shift']();
|
|
8187
|
-
element.focus();
|
|
8188
|
-
} else {
|
|
8189
|
-
this.handleClose();
|
|
8190
|
-
}
|
|
8191
|
-
} else {
|
|
8192
|
-
this.focused = false;
|
|
8193
|
-
}
|
|
8194
|
-
}
|
|
8195
8178
|
var arrows = [37, 38, 39, 40];
|
|
8196
8179
|
if (!this.visible && arrows.includes(keyCode)) {
|
|
8197
8180
|
this.visible = true;
|
|
@@ -8203,7 +8186,7 @@
|
|
|
8203
8186
|
this.handleClose();
|
|
8204
8187
|
}
|
|
8205
8188
|
}
|
|
8206
|
-
if (keyCode === 13 && this.timeEnterMode) {
|
|
8189
|
+
if ((keyCode === 9 || keyCode === 13) && this.timeEnterMode) {
|
|
8207
8190
|
var _timePickers = findChildComponents(this, 'TimeSpinner');
|
|
8208
8191
|
if (_timePickers.length > 0) {
|
|
8209
8192
|
var columnsPerPicker = _timePickers[0].showSeconds ? 3 : 2;
|
|
@@ -8354,10 +8337,6 @@
|
|
|
8354
8337
|
}
|
|
8355
8338
|
},
|
|
8356
8339
|
handleInputMouseleave: function handleInputMouseleave(e) {
|
|
8357
|
-
if (e.toElement && e.toElement.classList.contains('clear-action')) {
|
|
8358
|
-
return;
|
|
8359
|
-
}
|
|
8360
|
-
this.showClose = false;
|
|
8361
8340
|
},
|
|
8362
8341
|
handleClear: function handleClear(e) {
|
|
8363
8342
|
var _this3 = this;
|
|
@@ -12980,6 +12959,10 @@
|
|
|
12980
12959
|
type: Function,
|
|
12981
12960
|
default: null
|
|
12982
12961
|
},
|
|
12962
|
+
closeFn: {
|
|
12963
|
+
type: Function,
|
|
12964
|
+
default: null
|
|
12965
|
+
},
|
|
12983
12966
|
onClose: {
|
|
12984
12967
|
type: Function,
|
|
12985
12968
|
default: function _default() {}
|
|
@@ -13326,6 +13309,7 @@
|
|
|
13326
13309
|
},
|
|
13327
13310
|
close: function close() {
|
|
13328
13311
|
var _this2 = this;
|
|
13312
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
|
|
13329
13313
|
return _asyncToGenerator( regenerator.mark(function _callee() {
|
|
13330
13314
|
var shouldClose;
|
|
13331
13315
|
return regenerator.wrap(function _callee$(_context) {
|
|
@@ -13342,14 +13326,28 @@
|
|
|
13342
13326
|
case 4:
|
|
13343
13327
|
shouldClose = _context.sent;
|
|
13344
13328
|
case 5:
|
|
13345
|
-
if (shouldClose) {
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13349
|
-
|
|
13329
|
+
if (!shouldClose) {
|
|
13330
|
+
_context.next = 17;
|
|
13331
|
+
break;
|
|
13332
|
+
}
|
|
13333
|
+
_this2.visible = false;
|
|
13334
|
+
typeof _this2.onClose === 'function' && _this2.onClose();
|
|
13335
|
+
_this2.$emit('input', false);
|
|
13336
|
+
_this2.$emit('cancel');
|
|
13337
|
+
_context.t0 = type;
|
|
13338
|
+
_context.next = _context.t0 === 'cancel' ? 13 : _context.t0 === 'close' ? 15 : 17;
|
|
13339
|
+
break;
|
|
13340
|
+
case 13:
|
|
13341
|
+
typeof _this2.cancelFn === 'function' && _this2.cancelFn(_this2);
|
|
13342
|
+
return _context.abrupt("break", 17);
|
|
13343
|
+
case 15:
|
|
13344
|
+
if (_this2.closeFn) {
|
|
13345
|
+
typeof _this2.closeFn === 'function' && _this2.closeFn(_this2);
|
|
13346
|
+
} else {
|
|
13350
13347
|
typeof _this2.cancelFn === 'function' && _this2.cancelFn(_this2);
|
|
13351
13348
|
}
|
|
13352
|
-
|
|
13349
|
+
return _context.abrupt("break", 17);
|
|
13350
|
+
case 17:
|
|
13353
13351
|
case "end":
|
|
13354
13352
|
return _context.stop();
|
|
13355
13353
|
}
|
|
@@ -13361,6 +13359,9 @@
|
|
|
13361
13359
|
this.$emit('after-leave');
|
|
13362
13360
|
typeof this.afterLeaveFn === 'function' && this.afterLeaveFn(this);
|
|
13363
13361
|
},
|
|
13362
|
+
closeHandler: function closeHandler() {
|
|
13363
|
+
this.close('close');
|
|
13364
|
+
},
|
|
13364
13365
|
cancelHandler: function cancelHandler(e) {
|
|
13365
13366
|
this.close();
|
|
13366
13367
|
},
|
|
@@ -13592,7 +13593,7 @@
|
|
|
13592
13593
|
on: {
|
|
13593
13594
|
"click": function click($event) {
|
|
13594
13595
|
$event.stopPropagation();
|
|
13595
|
-
return _vm.
|
|
13596
|
+
return _vm.closeHandler($event);
|
|
13596
13597
|
}
|
|
13597
13598
|
}
|
|
13598
13599
|
}) : _vm._e()], 2)])] : [_vm.shouldRender || _vm.visible ? _c('div', {
|
|
@@ -29477,6 +29478,7 @@
|
|
|
29477
29478
|
Info.close(id);
|
|
29478
29479
|
};
|
|
29479
29480
|
instance.cancelFn = opts.cancelFn && typeof opts.cancelFn === 'function' ? opts.cancelFn : function () {};
|
|
29481
|
+
instance.closeFn = opts.closeFn && typeof opts.closeFn === 'function' ? opts.closeFn : null;
|
|
29480
29482
|
instance.afterLeaveFn = opts.afterLeaveFn && typeof opts.afterLeaveFn === 'function' ? opts.afterLeaveFn : function () {};
|
|
29481
29483
|
instance.stateChangeFn = opts.stateChangeFn && typeof opts.stateChangeFn === 'function' ? opts.stateChangeFn : function () {};
|
|
29482
29484
|
instance.onClose = function () {
|
|
@@ -30554,7 +30556,9 @@
|
|
|
30554
30556
|
el.$vm.isShow = false;
|
|
30555
30557
|
}, delay);
|
|
30556
30558
|
} else {
|
|
30557
|
-
|
|
30559
|
+
Vue.nextTick(function () {
|
|
30560
|
+
el.$vm.isShow = false;
|
|
30561
|
+
});
|
|
30558
30562
|
}
|
|
30559
30563
|
}
|
|
30560
30564
|
if (options.title) {
|
|
@@ -30588,7 +30592,9 @@
|
|
|
30588
30592
|
}
|
|
30589
30593
|
},
|
|
30590
30594
|
update: function update(el, binding) {
|
|
30591
|
-
|
|
30595
|
+
if (el.viewmodel) {
|
|
30596
|
+
toggle(el, binding.value);
|
|
30597
|
+
}
|
|
30592
30598
|
}
|
|
30593
30599
|
};
|
|
30594
30600
|
|
|
@@ -33821,6 +33827,7 @@
|
|
|
33821
33827
|
name: 'bk-pagination',
|
|
33822
33828
|
components: {
|
|
33823
33829
|
bkSelect: __vue_component__$L,
|
|
33830
|
+
bkInput: __vue_component__$B,
|
|
33824
33831
|
bkOption: __vue_component__$F,
|
|
33825
33832
|
paginationSelectionCount: __vue_component__$M,
|
|
33826
33833
|
paginationTotalCount: __vue_component__$N,
|
|
@@ -33845,6 +33852,10 @@
|
|
|
33845
33852
|
type: Boolean,
|
|
33846
33853
|
default: false
|
|
33847
33854
|
},
|
|
33855
|
+
showQuickJumper: {
|
|
33856
|
+
type: Boolean,
|
|
33857
|
+
default: false
|
|
33858
|
+
},
|
|
33848
33859
|
size: {
|
|
33849
33860
|
type: String,
|
|
33850
33861
|
default: 'default',
|
|
@@ -33908,6 +33919,7 @@
|
|
|
33908
33919
|
data: function data() {
|
|
33909
33920
|
return {
|
|
33910
33921
|
pageSize: 5,
|
|
33922
|
+
jumpPage: 1,
|
|
33911
33923
|
renderList: [],
|
|
33912
33924
|
curGroup: 1,
|
|
33913
33925
|
limitListTmp: [],
|
|
@@ -33942,6 +33954,7 @@
|
|
|
33942
33954
|
this.$emit('limit-change', val, oldVal);
|
|
33943
33955
|
},
|
|
33944
33956
|
current: function current(newVal) {
|
|
33957
|
+
this.jumpPage = newVal;
|
|
33945
33958
|
this.calcPageList(newVal);
|
|
33946
33959
|
},
|
|
33947
33960
|
total: function total(newVal) {
|
|
@@ -34029,6 +34042,20 @@
|
|
|
34029
34042
|
this.jumpToPage(this.current + 1);
|
|
34030
34043
|
}
|
|
34031
34044
|
},
|
|
34045
|
+
handleJump: function handleJump() {
|
|
34046
|
+
var _this = this;
|
|
34047
|
+
this.$nextTick(function () {
|
|
34048
|
+
var pageNum = Number(_this.jumpPage);
|
|
34049
|
+
if (pageNum < 1) {
|
|
34050
|
+
pageNum = 1;
|
|
34051
|
+
}
|
|
34052
|
+
if (pageNum > _this.total) {
|
|
34053
|
+
pageNum = _this.total;
|
|
34054
|
+
}
|
|
34055
|
+
_this.jumpPage = pageNum;
|
|
34056
|
+
_this.jumpToPage(pageNum);
|
|
34057
|
+
});
|
|
34058
|
+
},
|
|
34032
34059
|
jumpToPage: function jumpToPage(page) {
|
|
34033
34060
|
this.$emit('update:current', page);
|
|
34034
34061
|
this.$emit('change', page);
|
|
@@ -34104,7 +34131,9 @@
|
|
|
34104
34131
|
"name": p.count + "/page"
|
|
34105
34132
|
}
|
|
34106
34133
|
});
|
|
34107
|
-
}), 1)]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('
|
|
34134
|
+
}), 1)]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('div', {
|
|
34135
|
+
staticClass: "bk-page-list-wrapper"
|
|
34136
|
+
}, [_c('ul', {
|
|
34108
34137
|
staticClass: "bk-page-list"
|
|
34109
34138
|
}, [_c('li', {
|
|
34110
34139
|
staticClass: "page-item",
|
|
@@ -34209,7 +34238,33 @@
|
|
|
34209
34238
|
on: {
|
|
34210
34239
|
"click": _vm.nextPage
|
|
34211
34240
|
}
|
|
34212
|
-
}, [_vm._m(1)])], 2)
|
|
34241
|
+
}, [_vm._m(1)])], 2), _vm.showQuickJumper ? _c('div', {
|
|
34242
|
+
staticClass: "bk-page-jumper"
|
|
34243
|
+
}, [_c('span', [_vm._v("前往")]), _c('bk-input', {
|
|
34244
|
+
staticStyle: {
|
|
34245
|
+
"width": "60px",
|
|
34246
|
+
"margin": "0 4px"
|
|
34247
|
+
},
|
|
34248
|
+
attrs: {
|
|
34249
|
+
"type": "number",
|
|
34250
|
+
"placeholder": "分页",
|
|
34251
|
+
"size": _vm.small || _vm.size === 'small' ? 'small' : '',
|
|
34252
|
+
"min": 1,
|
|
34253
|
+
"max": _vm.total,
|
|
34254
|
+
"show-controls": false
|
|
34255
|
+
},
|
|
34256
|
+
on: {
|
|
34257
|
+
"blur": _vm.handleJump,
|
|
34258
|
+
"enter": _vm.handleJump
|
|
34259
|
+
},
|
|
34260
|
+
model: {
|
|
34261
|
+
value: _vm.jumpPage,
|
|
34262
|
+
callback: function callback($$v) {
|
|
34263
|
+
_vm.jumpPage = $$v;
|
|
34264
|
+
},
|
|
34265
|
+
expression: "jumpPage"
|
|
34266
|
+
}
|
|
34267
|
+
}), _c('span', [_vm._v("页")])], 1) : _vm._e()]) : _c('small-jump', {
|
|
34213
34268
|
attrs: {
|
|
34214
34269
|
"current": _vm.current,
|
|
34215
34270
|
"total": _vm.total
|
|
@@ -37519,6 +37574,9 @@
|
|
|
37519
37574
|
},
|
|
37520
37575
|
hasAddBtnSlot: function hasAddBtnSlot() {
|
|
37521
37576
|
return !!this.$slots && !!this.$slots.add;
|
|
37577
|
+
},
|
|
37578
|
+
hasExtensionSlot: function hasExtensionSlot() {
|
|
37579
|
+
return !!this.$slots && !!this.$slots.extension;
|
|
37522
37580
|
}
|
|
37523
37581
|
},
|
|
37524
37582
|
watch: {
|
|
@@ -37702,16 +37760,20 @@
|
|
|
37702
37760
|
var _this4$$refs = _this4.$refs,
|
|
37703
37761
|
labelWrapper = _this4$$refs.labelWrapper,
|
|
37704
37762
|
labelList = _this4$$refs.labelList,
|
|
37705
|
-
addController = _this4$$refs.addController
|
|
37763
|
+
addController = _this4$$refs.addController,
|
|
37764
|
+
extensionController = _this4$$refs.extensionController;
|
|
37706
37765
|
var labelWrapperRect = labelWrapper.getBoundingClientRect();
|
|
37707
37766
|
var labelListRect = labelList.getBoundingClientRect();
|
|
37708
37767
|
var addControllerRect = addController ? addController.getBoundingClientRect() : {
|
|
37709
37768
|
width: 0
|
|
37710
37769
|
};
|
|
37770
|
+
var extensionControllerReact = extensionController ? extensionController.getBoundingClientRect() : {
|
|
37771
|
+
width: 0
|
|
37772
|
+
};
|
|
37711
37773
|
_this4.addCustomRect = _this4.hasAddBtnSlot ? _this4.$refs.addCustom.getBoundingClientRect() : {
|
|
37712
37774
|
width: 0
|
|
37713
37775
|
};
|
|
37714
|
-
_this4.scrollState.show = labelListRect.width + addControllerRect.width + _this4.addCustomRect.width > labelWrapperRect.width;
|
|
37776
|
+
_this4.scrollState.show = labelListRect.width + addControllerRect.width + _this4.addCustomRect.width + extensionControllerReact.width > labelWrapperRect.width;
|
|
37715
37777
|
if (!_this4.scrollState.show) {
|
|
37716
37778
|
_this4.scrollState.offset = 0;
|
|
37717
37779
|
_this4.scrollState.position = 'left';
|
|
@@ -37751,8 +37813,9 @@
|
|
|
37751
37813
|
getRightControllerWidth: function getRightControllerWidth() {
|
|
37752
37814
|
var _this$$refs = this.$refs,
|
|
37753
37815
|
nextController = _this$$refs.nextController,
|
|
37754
|
-
addController = _this$$refs.addController
|
|
37755
|
-
|
|
37816
|
+
addController = _this$$refs.addController,
|
|
37817
|
+
extensionController = _this$$refs.extensionController;
|
|
37818
|
+
var controllers = [nextController, addController, extensionController];
|
|
37756
37819
|
var width = 0;
|
|
37757
37820
|
controllers.forEach(function (controller) {
|
|
37758
37821
|
width += controller ? controller.offsetWidth : 0;
|
|
@@ -37771,45 +37834,47 @@
|
|
|
37771
37834
|
return false;
|
|
37772
37835
|
}
|
|
37773
37836
|
this.$nextTick(function () {
|
|
37774
|
-
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
});
|
|
37780
|
-
if (panel) {
|
|
37781
|
-
var tabLabel = panel.$el;
|
|
37782
|
-
var tabLabelRect = tabLabel.getBoundingClientRect();
|
|
37783
|
-
if (!_this5.isSidePosition) {
|
|
37784
|
-
if (tabLabelRect.width === 0 && tabLabelRect.height === 0) {
|
|
37785
|
-
tabLabel.classList.add('simulate-border-bottom');
|
|
37786
|
-
} else {
|
|
37787
|
-
tabLabel.classList.remove('simulate-border-bottom');
|
|
37788
|
-
}
|
|
37789
|
-
_this5.activeBarStyle.width = "".concat(tabLabelRect.width - 24, "px");
|
|
37790
|
-
_this5.activeBarStyle.height = _this5.activeBar.height;
|
|
37791
|
-
_this5.activeBarStyle.transform = "translateX(".concat(tabLabel.offsetLeft + 12, "px)");
|
|
37792
|
-
_this5.activeBarStyle.left = 0;
|
|
37793
|
-
if (_this5.activeBar.position === 'top') {
|
|
37794
|
-
_this5.activeBarStyle.top = '0px';
|
|
37795
|
-
_this5.activeBarStyle.bottom = 'auto';
|
|
37796
|
-
} else {
|
|
37797
|
-
_this5.activeBarStyle.top = 'auto';
|
|
37798
|
-
_this5.activeBarStyle.bottom = '0px';
|
|
37799
|
-
}
|
|
37800
|
-
} else {
|
|
37801
|
-
if (tabLabelRect.width === 0 && tabLabelRect.height === 0) {
|
|
37802
|
-
tabLabel.classList.add('simulate-border-right');
|
|
37803
|
-
} else {
|
|
37804
|
-
tabLabel.classList.remove('simulate-border-right');
|
|
37837
|
+
if (isArray$1(_this5.$refs.tabLabel)) {
|
|
37838
|
+
var panel = _this5.$refs.tabLabel.find(function (item) {
|
|
37839
|
+
if (item && item.$el) {
|
|
37840
|
+
var newActive = Object.prototype.toString.call(active) === '[object Number]' ? active + '' : active;
|
|
37841
|
+
return item.$el.dataset.name === newActive;
|
|
37805
37842
|
}
|
|
37806
|
-
|
|
37807
|
-
|
|
37808
|
-
|
|
37809
|
-
|
|
37843
|
+
});
|
|
37844
|
+
if (panel) {
|
|
37845
|
+
var tabLabel = panel.$el;
|
|
37846
|
+
var tabLabelRect = tabLabel.getBoundingClientRect();
|
|
37847
|
+
if (!_this5.isSidePosition) {
|
|
37848
|
+
if (tabLabelRect.width === 0 && tabLabelRect.height === 0) {
|
|
37849
|
+
tabLabel.classList.add('simulate-border-bottom');
|
|
37850
|
+
} else {
|
|
37851
|
+
tabLabel.classList.remove('simulate-border-bottom');
|
|
37852
|
+
}
|
|
37853
|
+
_this5.activeBarStyle.width = "".concat(tabLabelRect.width - 24, "px");
|
|
37854
|
+
_this5.activeBarStyle.height = _this5.activeBar.height;
|
|
37855
|
+
_this5.activeBarStyle.transform = "translateX(".concat(tabLabel.offsetLeft + 12, "px)");
|
|
37810
37856
|
_this5.activeBarStyle.left = 0;
|
|
37857
|
+
if (_this5.activeBar.position === 'top') {
|
|
37858
|
+
_this5.activeBarStyle.top = '0px';
|
|
37859
|
+
_this5.activeBarStyle.bottom = 'auto';
|
|
37860
|
+
} else {
|
|
37861
|
+
_this5.activeBarStyle.top = 'auto';
|
|
37862
|
+
_this5.activeBarStyle.bottom = '0px';
|
|
37863
|
+
}
|
|
37811
37864
|
} else {
|
|
37812
|
-
|
|
37865
|
+
if (tabLabelRect.width === 0 && tabLabelRect.height === 0) {
|
|
37866
|
+
tabLabel.classList.add('simulate-border-right');
|
|
37867
|
+
} else {
|
|
37868
|
+
tabLabel.classList.remove('simulate-border-right');
|
|
37869
|
+
}
|
|
37870
|
+
_this5.activeBarStyle.width = _this5.activeBar.height;
|
|
37871
|
+
_this5.activeBarStyle.height = "".concat(tabLabelRect.height || 50, "px");
|
|
37872
|
+
_this5.activeBarStyle.transform = "translateY(".concat(tabLabel.offsetTop, "px)");
|
|
37873
|
+
if (_this5.tabPosition === 'right') {
|
|
37874
|
+
_this5.activeBarStyle.left = 0;
|
|
37875
|
+
} else {
|
|
37876
|
+
_this5.activeBarStyle.left = "".concat(tabLabelRect.width - 2, "px");
|
|
37877
|
+
}
|
|
37813
37878
|
}
|
|
37814
37879
|
}
|
|
37815
37880
|
}
|
|
@@ -37993,7 +38058,8 @@
|
|
|
37993
38058
|
staticClass: "bk-tab-label-wrapper",
|
|
37994
38059
|
class: {
|
|
37995
38060
|
'has-scroller': _vm.scrollState.show && !_vm.isSidePosition,
|
|
37996
|
-
'has-add': (_vm.addable || _vm.hasAddBtnSlot) && !_vm.isSidePosition
|
|
38061
|
+
'has-add': (_vm.addable || _vm.hasAddBtnSlot) && !_vm.isSidePosition,
|
|
38062
|
+
'has-extension': _vm.hasExtensionSlot
|
|
37997
38063
|
},
|
|
37998
38064
|
style: {
|
|
37999
38065
|
padding: _vm.scrollState.show && !_vm.isSidePosition ? "0 " + (_vm.addCustomRect.width + 24) + "px 0 24px" : undefined
|
|
@@ -38064,11 +38130,21 @@
|
|
|
38064
38130
|
}
|
|
38065
38131
|
}
|
|
38066
38132
|
});
|
|
38067
|
-
}), 1), _vm.
|
|
38133
|
+
}), 1), _vm.hasExtensionSlot ? _c('div', {
|
|
38134
|
+
ref: "extensionController",
|
|
38135
|
+
class: {
|
|
38136
|
+
'bk-tab-extension-controller': true,
|
|
38137
|
+
'has-setting': _vm.$slots.extension
|
|
38138
|
+
},
|
|
38139
|
+
style: {
|
|
38140
|
+
height: _vm.labelHeight + "px",
|
|
38141
|
+
lineHeight: _vm.labelHeight + "px"
|
|
38142
|
+
}
|
|
38143
|
+
}, [_vm._t("extension")], 2) : _vm._e(), _vm.addable && !_vm.isSidePosition && !_vm.hasAddBtnSlot ? _c('i', {
|
|
38068
38144
|
ref: "addController",
|
|
38069
38145
|
staticClass: "bk-tab-add-controller bk-icon icon-plus",
|
|
38070
38146
|
class: {
|
|
38071
|
-
'left-border': !_vm.visiblePanels.length,
|
|
38147
|
+
'left-border': !_vm.visiblePanels.length && !_vm.hasExtensionSlot,
|
|
38072
38148
|
'next-right': _vm.addShowNextRight
|
|
38073
38149
|
},
|
|
38074
38150
|
style: {
|
|
@@ -41880,7 +41956,7 @@
|
|
|
41880
41956
|
},
|
|
41881
41957
|
handlePageChange: function handlePageChange(page) {
|
|
41882
41958
|
this.autoScrollToTop && this.scrollToTop();
|
|
41883
|
-
this.$emit('page-change', page);
|
|
41959
|
+
this.$emit('page-change', page, this.pagination.limit);
|
|
41884
41960
|
},
|
|
41885
41961
|
handlePageLimitChange: function handlePageLimitChange(currentLimit, prevLimit) {
|
|
41886
41962
|
this.autoScrollToTop && this.scrollToTop();
|
|
@@ -48655,9 +48731,21 @@
|
|
|
48655
48731
|
|
|
48656
48732
|
var script$1f = {
|
|
48657
48733
|
name: 'bk-zoom-image',
|
|
48734
|
+
directives: {
|
|
48735
|
+
transferDom: transferDom
|
|
48736
|
+
},
|
|
48737
|
+
mixins: [zIndex$1],
|
|
48658
48738
|
props: {
|
|
48659
48739
|
src: String,
|
|
48660
|
-
extCls: String
|
|
48740
|
+
extCls: String,
|
|
48741
|
+
zIndex: {
|
|
48742
|
+
type: Number,
|
|
48743
|
+
default: 2000
|
|
48744
|
+
},
|
|
48745
|
+
transfer: {
|
|
48746
|
+
type: Boolean,
|
|
48747
|
+
default: true
|
|
48748
|
+
}
|
|
48661
48749
|
},
|
|
48662
48750
|
data: function data() {
|
|
48663
48751
|
return {
|
|
@@ -48670,7 +48758,8 @@
|
|
|
48670
48758
|
width: 0,
|
|
48671
48759
|
height: 0,
|
|
48672
48760
|
top: 0,
|
|
48673
|
-
left: 0
|
|
48761
|
+
left: 0,
|
|
48762
|
+
popIndex: 0
|
|
48674
48763
|
};
|
|
48675
48764
|
},
|
|
48676
48765
|
watch: {
|
|
@@ -48685,6 +48774,10 @@
|
|
|
48685
48774
|
}
|
|
48686
48775
|
},
|
|
48687
48776
|
methods: {
|
|
48777
|
+
showImg: function showImg() {
|
|
48778
|
+
this.imgSrc = this.src;
|
|
48779
|
+
this.popIndex = this.transfer ? this.getLocalZIndex() : this.zIndex;
|
|
48780
|
+
},
|
|
48688
48781
|
startChange: function startChange(event) {
|
|
48689
48782
|
if (!this.isInit) return;
|
|
48690
48783
|
this.top = event.clientY - event.offsetY;
|
|
@@ -48747,16 +48840,31 @@
|
|
|
48747
48840
|
"src": _vm.src
|
|
48748
48841
|
},
|
|
48749
48842
|
on: {
|
|
48750
|
-
"click":
|
|
48751
|
-
_vm.imgSrc = _vm.src;
|
|
48752
|
-
}
|
|
48843
|
+
"click": _vm.showImg
|
|
48753
48844
|
}
|
|
48754
48845
|
}), _c('transition', {
|
|
48755
48846
|
attrs: {
|
|
48756
48847
|
"name": "fade"
|
|
48757
48848
|
}
|
|
48849
|
+
}, [_c('div', {
|
|
48850
|
+
directives: [{
|
|
48851
|
+
name: "transfer-dom",
|
|
48852
|
+
rawName: "v-transfer-dom"
|
|
48853
|
+
}],
|
|
48854
|
+
staticClass: "bk-zoom-image",
|
|
48855
|
+
staticStyle: {
|
|
48856
|
+
"position": "absolute",
|
|
48857
|
+
"top": "-100000px",
|
|
48858
|
+
"left": "-100000px"
|
|
48859
|
+
},
|
|
48860
|
+
attrs: {
|
|
48861
|
+
"data-transfer": _vm.transfer
|
|
48862
|
+
}
|
|
48758
48863
|
}, [_vm.imgSrc ? _c('section', {
|
|
48759
48864
|
staticClass: "bk-full-screen",
|
|
48865
|
+
style: {
|
|
48866
|
+
zIndex: _vm.popIndex
|
|
48867
|
+
},
|
|
48760
48868
|
on: {
|
|
48761
48869
|
"mousemove": _vm.mouseMove,
|
|
48762
48870
|
"mouseup": _vm.mouseUp
|
|
@@ -48786,7 +48894,7 @@
|
|
|
48786
48894
|
},
|
|
48787
48895
|
"mousedown": _vm.mouseDown
|
|
48788
48896
|
}
|
|
48789
|
-
})]) : _vm._e()])], 1);
|
|
48897
|
+
})]) : _vm._e()])])], 1);
|
|
48790
48898
|
};
|
|
48791
48899
|
|
|
48792
48900
|
var __vue_staticRenderFns__$1h = [];
|
|
@@ -54810,7 +54918,7 @@
|
|
|
54810
54918
|
}
|
|
54811
54919
|
var script$1t = {
|
|
54812
54920
|
name: 'bk-image-viewer',
|
|
54813
|
-
mixins: [locale.mixin],
|
|
54921
|
+
mixins: [locale.mixin, zIndex$1],
|
|
54814
54922
|
props: {
|
|
54815
54923
|
urlList: {
|
|
54816
54924
|
type: Array,
|
|
@@ -54841,6 +54949,10 @@
|
|
|
54841
54949
|
maskClose: {
|
|
54842
54950
|
type: Boolean,
|
|
54843
54951
|
default: true
|
|
54952
|
+
},
|
|
54953
|
+
transfer: {
|
|
54954
|
+
type: Boolean,
|
|
54955
|
+
default: true
|
|
54844
54956
|
}
|
|
54845
54957
|
},
|
|
54846
54958
|
data: function data() {
|
|
@@ -54878,6 +54990,11 @@
|
|
|
54878
54990
|
var arr = this.currentImg.split('/');
|
|
54879
54991
|
return arr[arr.length - 1];
|
|
54880
54992
|
},
|
|
54993
|
+
wrapStyles: function wrapStyles() {
|
|
54994
|
+
return {
|
|
54995
|
+
zIndex: this.transfer ? this.getLocalZIndex() : this.zIndex
|
|
54996
|
+
};
|
|
54997
|
+
},
|
|
54881
54998
|
imgStyle: function imgStyle() {
|
|
54882
54999
|
var _this$transform = this.transform,
|
|
54883
55000
|
scale = _this$transform.scale,
|
|
@@ -54916,9 +55033,17 @@
|
|
|
54916
55033
|
}
|
|
54917
55034
|
},
|
|
54918
55035
|
mounted: function mounted() {
|
|
55036
|
+
if (this.transfer) {
|
|
55037
|
+
document.body.appendChild(this.$el);
|
|
55038
|
+
}
|
|
54919
55039
|
this.deviceSupportInstall();
|
|
54920
55040
|
this.$refs['bk-image-viewer-wrapper'].focus();
|
|
54921
55041
|
},
|
|
55042
|
+
destroyed: function destroyed() {
|
|
55043
|
+
if (this.transfer && this.$el && this.$el.parentNode) {
|
|
55044
|
+
this.$el.parentNode.removeChild(this.$el);
|
|
55045
|
+
}
|
|
55046
|
+
},
|
|
54922
55047
|
methods: {
|
|
54923
55048
|
hide: function hide() {
|
|
54924
55049
|
this.deviceSupportUninstall();
|
|
@@ -55075,9 +55200,7 @@
|
|
|
55075
55200
|
}, [_c('div', {
|
|
55076
55201
|
ref: "bk-image-viewer-wrapper",
|
|
55077
55202
|
staticClass: "bk-image-viewer-wrapper",
|
|
55078
|
-
style:
|
|
55079
|
-
'z-index': _vm.zIndex
|
|
55080
|
-
},
|
|
55203
|
+
style: _vm.wrapStyles,
|
|
55081
55204
|
attrs: {
|
|
55082
55205
|
"tabindex": "-1"
|
|
55083
55206
|
}
|
|
@@ -55293,7 +55416,6 @@
|
|
|
55293
55416
|
FILL: 'fill',
|
|
55294
55417
|
SCALE_DOWN: 'scale-down'
|
|
55295
55418
|
};
|
|
55296
|
-
var prevOverflow = '';
|
|
55297
55419
|
var script$1u = {
|
|
55298
55420
|
name: 'bk-image',
|
|
55299
55421
|
components: {
|
|
@@ -55321,11 +55443,15 @@
|
|
|
55321
55443
|
type: Boolean,
|
|
55322
55444
|
default: true
|
|
55323
55445
|
},
|
|
55446
|
+
maskClose: {
|
|
55447
|
+
type: Boolean,
|
|
55448
|
+
default: true
|
|
55449
|
+
},
|
|
55324
55450
|
zIndex: {
|
|
55325
55451
|
type: Number,
|
|
55326
55452
|
default: 2000
|
|
55327
55453
|
},
|
|
55328
|
-
|
|
55454
|
+
transfer: {
|
|
55329
55455
|
type: Boolean,
|
|
55330
55456
|
default: true
|
|
55331
55457
|
}
|
|
@@ -55337,7 +55463,8 @@
|
|
|
55337
55463
|
show: !this.lazy,
|
|
55338
55464
|
imageWidth: 0,
|
|
55339
55465
|
imageHeight: 0,
|
|
55340
|
-
showViewer: false
|
|
55466
|
+
showViewer: false,
|
|
55467
|
+
prevOverflow: ''
|
|
55341
55468
|
};
|
|
55342
55469
|
},
|
|
55343
55470
|
computed: {
|
|
@@ -55486,12 +55613,12 @@
|
|
|
55486
55613
|
if (!this.preview) {
|
|
55487
55614
|
return;
|
|
55488
55615
|
}
|
|
55489
|
-
prevOverflow = document.body.style.overflow;
|
|
55616
|
+
this.prevOverflow = document.body.style.overflow;
|
|
55490
55617
|
document.body.style.overflow = 'hidden';
|
|
55491
55618
|
this.showViewer = true;
|
|
55492
55619
|
},
|
|
55493
55620
|
closeViewer: function closeViewer() {
|
|
55494
|
-
document.body.style.overflow = prevOverflow;
|
|
55621
|
+
document.body.style.overflow = this.prevOverflow;
|
|
55495
55622
|
this.showViewer = false;
|
|
55496
55623
|
}
|
|
55497
55624
|
}
|
|
@@ -55538,6 +55665,7 @@
|
|
|
55538
55665
|
"initial-index": _vm.imageIndex,
|
|
55539
55666
|
"url-list": _vm.previewSrcList,
|
|
55540
55667
|
"on-close": _vm.closeViewer,
|
|
55668
|
+
"transfer": _vm.transfer,
|
|
55541
55669
|
"mask-close": _vm.maskClose
|
|
55542
55670
|
}
|
|
55543
55671
|
}) : _vm._e()] : _vm._e()], 2);
|