(小坑)el-progress 圆形进度条中formatter换行符’\n’失效
添加样式 style=“white-space: pre;” 识别 ‘\n’
<el-progress
type="circle"
...
...
...
:format="format”
style="white-space: pre;"
/>
...
methods: {
format(percentage) {
return '正确率' + '\n\n' + percentage.toFixed(2) + '%'
}
}
...