iview The precent value of the [Bug Report] process component exceeds 100, which can cause style confusion

eoigrqb6  于 2022-11-19  发布在  其他
关注(0)|答案(1)|浏览(178)

Environment

vue 2.6 iview 3.0

https://jsfiddle.net/yyrzhm46/

Steps to reproduce

What is expected?

应当设定进度条的max-width: 100%

What is actually happening?

bgStyle () {
return this.vertical ? {
height: ${this.percent}% ,
width: ${this.strokeWidth}px
} : {
width: ${this.percent}% ,
height: ${this.strokeWidth}px
};
},

ezykj2lf

ezykj2lf1#

Translation of this issue:

Environment

Vue 2.6 iView 3.0

https://jsfiddle.net/yyrzhm46/

Steps to reproduce

What is expected?

The max-width of the progress bar should be set: 100%

What is actually happening?

BgStyle (){
Return this. vertical?{
Height: ${this.percentage}%', Width: ${this. strokeWidth} px }: { Width: ${this.percentage}%',
Height: ${this. strokeWidth} px
}
}

相关问题