效果图
标签中:
<el-progress class="yellow" type="circle"
:percentage="(value.peopleNumber / workPeopleData.allNumber).toFixed(2) * 100" :stroke-width="9"
color="#5C79E8" stroke-linecap="round" define-back-color="transparent" text-color=""></el-progress>
<template>
<svg width="100%" height="100%">
<defs>
<linearGradient id="yellow" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color: #5C79E8" stop-opacity="0.7"></stop>
<stop offset="100%" style="stop-color: #C2D7FE " stop-opacity="0.4"></stop>
</linearGradient>
</defs>
</svg>
</template>
css:
.yellow /deep/ svg>path:nth-child(2) {
stroke: url(#yellow);
}
完结!