mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
style: fix lint
This commit is contained in:
@@ -59,12 +59,12 @@ export default {
|
|||||||
return this.inactive ? '#cacaca' : this.color;
|
return this.inactive ? '#cacaca' : this.color;
|
||||||
},
|
},
|
||||||
pivotStyle() {
|
pivotStyle() {
|
||||||
let pivotStyle = {
|
const pivotStyle = {
|
||||||
backgroundColor: this.componentColor,
|
backgroundColor: this.componentColor,
|
||||||
color: this.textColor,
|
color: this.textColor,
|
||||||
left: this.percentage + '%',
|
left: this.percentage + '%',
|
||||||
marginLeft: '-14px'
|
marginLeft: '-14px'
|
||||||
}
|
};
|
||||||
console.log(this.percentage);
|
console.log(this.percentage);
|
||||||
if (this.percentage <= 5) {
|
if (this.percentage <= 5) {
|
||||||
pivotStyle.left = '0%';
|
pivotStyle.left = '0%';
|
||||||
|
Reference in New Issue
Block a user