html:
`<div class="bgc-d"><!-- 进度条背景色 --><div class="bgc" :style="{width: percent + '%'}"></div></div>`
js进度条:percent: 10,
css:
.bgc-d{
width: 100%;
height: 50px;
border-radius: 10px;
background-color: black;
position: relative;
}
.bgc{
position: absolute;
width: 0%;
height: 100%;
border-radius: 10px;
background-color: red;
}