标签:box ons 屏幕高度 his 添加 bar stroke dde 括号
div{
width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
<div class="progress-bar-box">
<div class="progress-bar-box-div">
<div :class="[xiaoyu ? ‘isyaoshenglue‘: ‘‘]">人脸签到</div>
<el-progress
:text-inside="true"
:stroke-width="10"
:percentage="70"
style="width:160px"
class="progress-bar"
></el-progress>
</div>
<div class="progress-bar-box-dec">35/35</div>
</div>
在data中定义一个
data:{
}
mounted() {
this.pingWidth = document.documentElement.clientWidth;
console.log("pingkuan", this.pingWidth);
if (this.pingWidth <= 1400) {
console.log("1");
this.xiaoyu = true;
}
},
.isyaoshenglue {
width: 55px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
标签:box ons 屏幕高度 his 添加 bar stroke dde 括号
原文地址:https://www.cnblogs.com/IwishIcould/p/11839226.html