直接给源代码:
<!-- HTML -->
<el-progress class="progress-warp" :show-text="false" :stroke-width="8" :percentage="percentage"></el-progress>
<!-- CSS -->
.progress-warp {
// 背景色
:deep(.el-progress-bar__outer) {
background: #D6EAE0;
}
// 渐变进度条色
:deep(.el-progress-bar__inner) {
background: var(---, linear-gradient(104deg, #5CE5AD 1.09%, #04C0DB 97.26%));
}
}