美文网首页
在Vue里面\n\r换行符失效问题处理方法-boldiy

在Vue里面\n\r换行符失效问题处理方法-boldiy

作者: boldiy | 来源:发表于2023-03-14 10:57 被阅读0次

<div class="demo-progress" style="white-space: pre-wrap">
<el-progress
showText
:width="108"
type="circle"
:format="
r => {
return r + '%\r\n
在线率';
}
"
:percentage="OnlineRate"
/>
</div>

只需加上white-space: pre-wrap即可。

相关文章

网友评论

      本文标题:在Vue里面\n\r换行符失效问题处理方法-boldiy

      本文链接:https://www.haomeiwen.com/subject/syohrdtx.html