style: fix lint

This commit is contained in:
jiangruowei 2017-03-13 21:16:24 +08:00
parent 5f7e98a547
commit c4d0ae07fa

View File

@ -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%';