fixed #4334
This commit is contained in:
parent
847c0d4302
commit
b778e4ff4f
1 changed files with 11 additions and 2 deletions
|
@ -52,6 +52,9 @@
|
||||||
vertical: {
|
vertical: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
strokeColor: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
@ -77,13 +80,19 @@
|
||||||
return type;
|
return type;
|
||||||
},
|
},
|
||||||
bgStyle () {
|
bgStyle () {
|
||||||
return this.vertical ? {
|
const style = this.vertical ? {
|
||||||
height: `${this.percent}%`,
|
height: `${this.percent}%`,
|
||||||
width: `${this.strokeWidth}px`
|
width: `${this.strokeWidth}px`,
|
||||||
} : {
|
} : {
|
||||||
width: `${this.percent}%`,
|
width: `${this.percent}%`,
|
||||||
height: `${this.strokeWidth}px`
|
height: `${this.strokeWidth}px`
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (this.strokeColor) {
|
||||||
|
style['background-color'] = this.strokeColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
return style;
|
||||||
},
|
},
|
||||||
successBgStyle () {
|
successBgStyle () {
|
||||||
return this.vertical ? {
|
return this.vertical ? {
|
||||||
|
|
Loading…
Add table
Reference in a new issue