SVG 进度条绘制
<svg width="150px" height="150px" class="svg">
<circle cx="75" cy="75" r="70" stroke="#EAEFF4" stroke-width="8" fill="none" />
<circle cx="75" cy="75" r="70" stroke="#AE40FB" stroke-width="8" fill="none" stroke-dasharray="439.8" :stroke-dashoffset="439.8-item.useEff*439.8" />
</svg>
stroke-dasharray:可以认为圆环的周长
stroke-dashoffset:可以认为需要画的比例长度
还没有评论,来说两句吧...