bk-magic-vue 2.4.8-beta.7 → 2.4.9-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 +33 -5
- package/dist/bk-magic-vue.js +60 -54
- 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 +2 -1
- package/lib/dialog.js +1 -1
- package/lib/info-box.js +3 -3
- package/lib/pagination.js +1 -1
- package/lib/select.js +1 -1
- package/lib/spin.js +1 -1
- package/lib/swiper.js +264 -221
- package/lib/table-setting-content.js +1 -1
- package/lib/table.js +1 -1
- package/lib/ui/bk-magic-vue.css +33 -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/spin.css +38 -5
- package/lib/ui/spin.min.css +1 -1
- package/lib/ui/spin.min.css.map +1 -1
- package/lib/version-detail.js +1 -1
- package/package.json +1 -1
package/dist/bk-magic-vue.css
CHANGED
|
@@ -13498,6 +13498,10 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13498
13498
|
-webkit-animation-direction:normal;
|
|
13499
13499
|
animation-direction:normal;
|
|
13500
13500
|
}
|
|
13501
|
+
.bk-spin .bk-spin-rotation.bk-spin-rotation-default .rotate{
|
|
13502
|
+
-webkit-animation-name:fadeDefault;
|
|
13503
|
+
animation-name:fadeDefault;
|
|
13504
|
+
}
|
|
13501
13505
|
.bk-spin .bk-spin-rotation.bk-spin-rotation-primary .rotate{
|
|
13502
13506
|
-webkit-animation-name:fadePrimary;
|
|
13503
13507
|
animation-name:fadePrimary;
|
|
@@ -13518,6 +13522,9 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13518
13522
|
-webkit-animation-name:fadeInfo;
|
|
13519
13523
|
animation-name:fadeInfo;
|
|
13520
13524
|
}
|
|
13525
|
+
.bk-spin .bk-spin-rotation.bk-spin-rotation-default-wait .rotate{
|
|
13526
|
+
background-color:#c4c6cc;
|
|
13527
|
+
}
|
|
13521
13528
|
.bk-spin .bk-spin-rotation.bk-spin-rotation-primary-wait .rotate{
|
|
13522
13529
|
background-color:#3c96ff;
|
|
13523
13530
|
}
|
|
@@ -13642,19 +13649,22 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13642
13649
|
}
|
|
13643
13650
|
.bk-spin .bk-spin-icon-wait{
|
|
13644
13651
|
-webkit-animation:none;
|
|
13645
|
-
animation:none
|
|
13652
|
+
animation:none;
|
|
13653
|
+
}
|
|
13654
|
+
.bk-spin .bk-spin-icon-default{
|
|
13655
|
+
color:#c4c6cc;
|
|
13646
13656
|
}
|
|
13647
13657
|
.bk-spin .bk-spin-icon-primary{
|
|
13648
|
-
color:#3c96ff
|
|
13658
|
+
color:#3c96ff;
|
|
13649
13659
|
}
|
|
13650
13660
|
.bk-spin .bk-spin-icon-success{
|
|
13651
|
-
color:#2dcb56
|
|
13661
|
+
color:#2dcb56;
|
|
13652
13662
|
}
|
|
13653
13663
|
.bk-spin .bk-spin-icon-warning{
|
|
13654
|
-
color:#ffb848
|
|
13664
|
+
color:#ffb848;
|
|
13655
13665
|
}
|
|
13656
13666
|
.bk-spin .bk-spin-icon-danger{
|
|
13657
|
-
color:#ff5656
|
|
13667
|
+
color:#ff5656;
|
|
13658
13668
|
}
|
|
13659
13669
|
.bk-spin .bk-spin-icon-info{
|
|
13660
13670
|
color:#979ba5;
|
|
@@ -13706,6 +13716,24 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
|
|
|
13706
13716
|
-ms-flex-align:center;
|
|
13707
13717
|
align-items:center;
|
|
13708
13718
|
}
|
|
13719
|
+
@-webkit-keyframes fadeDefault{
|
|
13720
|
+
0%{
|
|
13721
|
+
background-color:#c4c6cc;
|
|
13722
|
+
}
|
|
13723
|
+
|
|
13724
|
+
100%{
|
|
13725
|
+
background-color:none;
|
|
13726
|
+
}
|
|
13727
|
+
}
|
|
13728
|
+
@keyframes fadeDefault{
|
|
13729
|
+
0%{
|
|
13730
|
+
background-color:#c4c6cc;
|
|
13731
|
+
}
|
|
13732
|
+
|
|
13733
|
+
100%{
|
|
13734
|
+
background-color:none;
|
|
13735
|
+
}
|
|
13736
|
+
}
|
|
13709
13737
|
@keyframes fadePrimary{
|
|
13710
13738
|
0%{
|
|
13711
13739
|
background-color:#3c96ff;
|
package/dist/bk-magic-vue.js
CHANGED
|
@@ -2041,7 +2041,7 @@
|
|
|
2041
2041
|
type: String,
|
|
2042
2042
|
default: 'primary',
|
|
2043
2043
|
validator: function validator(value) {
|
|
2044
|
-
if (!['primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
|
|
2044
|
+
if (!['default', 'primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
|
|
2045
2045
|
console.error("theme property is not valid: '".concat(value, "'"));
|
|
2046
2046
|
return false;
|
|
2047
2047
|
}
|
|
@@ -12206,7 +12206,8 @@
|
|
|
12206
12206
|
"disabled-date": _vm.disabledDate,
|
|
12207
12207
|
"range-state": _vm.rangeState,
|
|
12208
12208
|
"value": _vm.preSelecting.left ? [_vm.dates[0]] : _vm.dates,
|
|
12209
|
-
"focused-date": _vm.focusedDate
|
|
12209
|
+
"focused-date": _vm.focusedDate,
|
|
12210
|
+
"cell-class": _vm.cellClass
|
|
12210
12211
|
},
|
|
12211
12212
|
on: {
|
|
12212
12213
|
"change-range": _vm.handleChangeRange,
|
|
@@ -29433,8 +29434,8 @@
|
|
|
29433
29434
|
instance.type = opts.type || '';
|
|
29434
29435
|
instance.showFooter = opts.showFooter !== false;
|
|
29435
29436
|
instance.closeIcon = opts.closeIcon !== false;
|
|
29436
|
-
instance.maskClose = opts.maskClose;
|
|
29437
|
-
instance.escClose = opts.escClose;
|
|
29437
|
+
instance.maskClose = opts.maskClose === undefined ? true : opts.maskClose;
|
|
29438
|
+
instance.escClose = opts.escClose === undefined ? true : opts.escClose;
|
|
29438
29439
|
instance.theme = opts.theme || 'primary';
|
|
29439
29440
|
instance.icon = opts.icon;
|
|
29440
29441
|
instance.extCls = opts.extCls;
|
|
@@ -48325,6 +48326,21 @@
|
|
|
48325
48326
|
|
|
48326
48327
|
setInstaller(__vue_component__$1e);
|
|
48327
48328
|
|
|
48329
|
+
var getElementSize = function getElementSize(node) {
|
|
48330
|
+
if (node === undefined) {
|
|
48331
|
+
return {
|
|
48332
|
+
height: 0,
|
|
48333
|
+
width: 0
|
|
48334
|
+
};
|
|
48335
|
+
}
|
|
48336
|
+
var computedStyle = getComputedStyle(node);
|
|
48337
|
+
var width = node.clientWidth - _parseFloat$2(computedStyle.paddingTop) - _parseFloat$2(computedStyle.paddingBottom);
|
|
48338
|
+
var height = node.clientHeight - _parseFloat$2(computedStyle.paddingLeft) - _parseFloat$2(computedStyle.paddingRight);
|
|
48339
|
+
return {
|
|
48340
|
+
height: height,
|
|
48341
|
+
width: width
|
|
48342
|
+
};
|
|
48343
|
+
};
|
|
48328
48344
|
var script$1e = {
|
|
48329
48345
|
name: 'bk-swiper',
|
|
48330
48346
|
props: {
|
|
@@ -48363,7 +48379,6 @@
|
|
|
48363
48379
|
},
|
|
48364
48380
|
data: function data() {
|
|
48365
48381
|
return {
|
|
48366
|
-
swiperMainWith: 0,
|
|
48367
48382
|
currentIndex: 1,
|
|
48368
48383
|
isStartMove: false,
|
|
48369
48384
|
isTransition: false,
|
|
@@ -48371,7 +48386,9 @@
|
|
|
48371
48386
|
mouseDistance: 0,
|
|
48372
48387
|
loopId: '',
|
|
48373
48388
|
isClick: false,
|
|
48374
|
-
realWidth: 0
|
|
48389
|
+
realWidth: 0,
|
|
48390
|
+
realHeight: 0,
|
|
48391
|
+
resizeObserver: {}
|
|
48375
48392
|
};
|
|
48376
48393
|
},
|
|
48377
48394
|
computed: {
|
|
@@ -48383,6 +48400,9 @@
|
|
|
48383
48400
|
var last = this.sourceList.slice(-1);
|
|
48384
48401
|
return [].concat(_toConsumableArray(last), _toConsumableArray(this.sourceList), [first]);
|
|
48385
48402
|
},
|
|
48403
|
+
swiperMainWith: function swiperMainWith() {
|
|
48404
|
+
return this.realWidth * this.dataList.length;
|
|
48405
|
+
},
|
|
48386
48406
|
imageTransfer: function imageTransfer() {
|
|
48387
48407
|
var indexMove = this.realWidth * this.currentIndex;
|
|
48388
48408
|
var imageMove = indexMove - this.mouseDistance;
|
|
@@ -48397,38 +48417,11 @@
|
|
|
48397
48417
|
},
|
|
48398
48418
|
immediate: true
|
|
48399
48419
|
},
|
|
48400
|
-
height: function height(
|
|
48401
|
-
|
|
48402
|
-
style: {
|
|
48403
|
-
width: 0,
|
|
48404
|
-
height: 0
|
|
48405
|
-
},
|
|
48406
|
-
offsetWidth: 0
|
|
48407
|
-
};
|
|
48408
|
-
if (+val > 0) ele.style.height = val + 'px';
|
|
48409
|
-
},
|
|
48410
|
-
width: function width(val) {
|
|
48411
|
-
var ele = this.$refs.swiper || {
|
|
48412
|
-
style: {
|
|
48413
|
-
width: 0,
|
|
48414
|
-
height: 0
|
|
48415
|
-
},
|
|
48416
|
-
offsetWidth: 0
|
|
48417
|
-
};
|
|
48418
|
-
this.realWidth = +val > 0 ? +val : ele.offsetWidth;
|
|
48419
|
-
ele.style.width = this.realWidth + 'px';
|
|
48420
|
-
},
|
|
48421
|
-
list: function list() {
|
|
48422
|
-
var _this = this;
|
|
48423
|
-
this.$nextTick(function () {
|
|
48424
|
-
_this.calcSize();
|
|
48425
|
-
});
|
|
48420
|
+
height: function height() {
|
|
48421
|
+
this.calcSize();
|
|
48426
48422
|
},
|
|
48427
|
-
|
|
48428
|
-
|
|
48429
|
-
this.$nextTick(function () {
|
|
48430
|
-
_this2.calcSize();
|
|
48431
|
-
});
|
|
48423
|
+
width: function width() {
|
|
48424
|
+
this.calcSize();
|
|
48432
48425
|
}
|
|
48433
48426
|
},
|
|
48434
48427
|
mounted: function mounted() {
|
|
@@ -48439,27 +48432,37 @@
|
|
|
48439
48432
|
},
|
|
48440
48433
|
methods: {
|
|
48441
48434
|
calcSize: function calcSize() {
|
|
48442
|
-
var
|
|
48443
|
-
|
|
48444
|
-
|
|
48445
|
-
height: 0
|
|
48446
|
-
},
|
|
48447
|
-
offsetWidth: 0
|
|
48448
|
-
};
|
|
48449
|
-
if (+this.height > 0) ele.style.height = this.height + 'px';
|
|
48450
|
-
this.realWidth = +this.width > 0 ? +this.width : ele.offsetWidth;
|
|
48451
|
-
ele.style.width = this.realWidth + 'px';
|
|
48452
|
-
this.swiperMainWith = this.realWidth * this.dataList.length;
|
|
48435
|
+
var swiperParentSize = getElementSize(this.$refs.swiper && this.$refs.swiper.parentElement);
|
|
48436
|
+
this.realWidth = +this.width > 0 ? this.width : swiperParentSize.width || 600;
|
|
48437
|
+
this.realHeight = +this.height > 0 ? this.height : swiperParentSize.height || 300;
|
|
48453
48438
|
},
|
|
48454
48439
|
initStatus: function initStatus() {
|
|
48455
48440
|
this.calcSize();
|
|
48456
48441
|
this.startLoop();
|
|
48442
|
+
this.watchParentSizeChange();
|
|
48457
48443
|
document.addEventListener('visibilitychange', this.visChange);
|
|
48458
48444
|
},
|
|
48459
48445
|
destoryStatus: function destoryStatus() {
|
|
48460
48446
|
this.endLoop();
|
|
48447
|
+
this.endWatchParentSizeChange();
|
|
48461
48448
|
document.removeEventListener('visibilitychange', this.visChange);
|
|
48462
48449
|
},
|
|
48450
|
+
watchParentSizeChange: function watchParentSizeChange() {
|
|
48451
|
+
var _this = this;
|
|
48452
|
+
var parentEle = this.$refs.swiper && this.$refs.swiper.parentElement;
|
|
48453
|
+
if (!parentEle || !window.ResizeObserver) {
|
|
48454
|
+
return;
|
|
48455
|
+
}
|
|
48456
|
+
this.resizeObserver = new ResizeObserver(function () {
|
|
48457
|
+
_this.calcSize();
|
|
48458
|
+
});
|
|
48459
|
+
this.resizeObserver.observe(parentEle);
|
|
48460
|
+
},
|
|
48461
|
+
endWatchParentSizeChange: function endWatchParentSizeChange() {
|
|
48462
|
+
if (this.resizeObserver && this.resizeObserver.disconnect) {
|
|
48463
|
+
this.resizeObserver.disconnect();
|
|
48464
|
+
}
|
|
48465
|
+
},
|
|
48463
48466
|
goToLink: function goToLink(link) {
|
|
48464
48467
|
if (this.isClick && link) window.open(link, '_blank');
|
|
48465
48468
|
},
|
|
@@ -48518,13 +48521,13 @@
|
|
|
48518
48521
|
}
|
|
48519
48522
|
},
|
|
48520
48523
|
startLoop: function startLoop() {
|
|
48521
|
-
var
|
|
48524
|
+
var _this2 = this;
|
|
48522
48525
|
if (!this.isLoop) return;
|
|
48523
48526
|
this.endLoop();
|
|
48524
48527
|
this.loopId = window.setTimeout(function () {
|
|
48525
|
-
|
|
48526
|
-
|
|
48527
|
-
|
|
48528
|
+
_this2.isTransition = true;
|
|
48529
|
+
_this2.changeCurrentIndex(_this2.currentIndex + 1);
|
|
48530
|
+
_this2.startLoop();
|
|
48528
48531
|
}, this.loopTime);
|
|
48529
48532
|
},
|
|
48530
48533
|
endLoop: function endLoop() {
|
|
@@ -48546,8 +48549,11 @@
|
|
|
48546
48549
|
|
|
48547
48550
|
return _vm.sourceList.length ? _c('section', {
|
|
48548
48551
|
ref: "swiper",
|
|
48549
|
-
|
|
48550
|
-
|
|
48552
|
+
class: ['bk-swiper-home', _vm.extCls],
|
|
48553
|
+
style: {
|
|
48554
|
+
width: _vm.realWidth + "px",
|
|
48555
|
+
height: _vm.realHeight + "px"
|
|
48556
|
+
}
|
|
48551
48557
|
}, [_c('hgroup', {
|
|
48552
48558
|
class: [{
|
|
48553
48559
|
'bk-transition': _vm.isTransition
|