最终效果图
<el-progress
class="circle0"
:width="140"
type="circle"
:stroke-width="20"
percentage="测试"
></el-progress>
<svg width="100%" height="0">
<defs>
<linearGradient id="write" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color: #86e79f" stop-opacity="0.8"></stop>
<stop offset="100%" style="stop-color: #fbdd97" stop-opacity="1"></stop>
</linearGradient>
</defs>
</svg>
.circle0 /deep/ {
.el-progress__text {
background-image: -webkit-linear-gradient(bottom, #d3fbfb, #fbdd97);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 900;
}
svg > path:nth-child(2) {
stroke: url(#write);
}
.el-progress-circle__track {
stroke: rgba(251, 221, 151, 0.2);
}
}