2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{_ as n}from"./_plugin-vue_export-helper.eefbdd86.js";import{f as c,i as a,j as o,P as i}from"./vendor-vue-ui.de3ab35f.js";const l={props:{scoreColor:String,score:{type:Number,required:!0},strokeWidth:{type:Number,default(){return 2}}},computed:{getClass(){let s="",e="";switch(!0){case 33>=this.score:s="fast",e="stroke-red";break;case 66>=this.score:s="medium",e="stroke-orange";break;default:s="slow",e="stroke-green"}return this.scoreColor!==void 0&&(e=`stroke-${this.scoreColor}`),`${s} ${e}`}}},u={class:"aioseo-seo-site-score",viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg"},_=["stroke-width","r"],d=["stroke-width","stroke-dasharray","r"];function f(s,e,r,h,k,t){return c(),a("svg",u,[o("circle",{class:"aioseo-seo-site-score__background","stroke-width":r.strokeWidth,fill:"none",cx:"17",cy:"17",r:17-r.strokeWidth/2},null,8,_),o("circle",{class:i(["aioseo-seo-site-score__circle",t.getClass]),"stroke-width":r.strokeWidth,"stroke-dasharray":`${r.score},100`,"stroke-linecap":"round",fill:"none",cx:"17",cy:"17",r:17-r.strokeWidth/2},null,10,d)])}const g=n(l,[["render",f]]);export{g as S};
|