bk-magic-vue 2.5.5-beta.1 → 2.5.6-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.js
CHANGED
|
@@ -35507,7 +35507,7 @@
|
|
|
35507
35507
|
default: true
|
|
35508
35508
|
},
|
|
35509
35509
|
width: {
|
|
35510
|
-
type: Number,
|
|
35510
|
+
type: [String, Number],
|
|
35511
35511
|
default: 400
|
|
35512
35512
|
},
|
|
35513
35513
|
beforeClose: {
|
|
@@ -35552,6 +35552,12 @@
|
|
|
35552
35552
|
};
|
|
35553
35553
|
},
|
|
35554
35554
|
computed: {
|
|
35555
|
+
calcWidth: function calcWidth() {
|
|
35556
|
+
if (/^\d+$/.test(this.width)) {
|
|
35557
|
+
return "".concat(this.width, "px");
|
|
35558
|
+
}
|
|
35559
|
+
return this.width;
|
|
35560
|
+
},
|
|
35555
35561
|
calcDirection: function calcDirection() {
|
|
35556
35562
|
return this.direction === 'left' ? 'right' : 'left';
|
|
35557
35563
|
}
|
|
@@ -35705,7 +35711,7 @@
|
|
|
35705
35711
|
right: _vm.direction === 'right'
|
|
35706
35712
|
}],
|
|
35707
35713
|
style: {
|
|
35708
|
-
width: _vm.
|
|
35714
|
+
width: _vm.calcWidth
|
|
35709
35715
|
}
|
|
35710
35716
|
}, [_c('div', {
|
|
35711
35717
|
staticClass: "bk-sideslider-header"
|