import{x as r,r as n,h as s,y as c,z as p,Q as d,u as f}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{E as m}from"./index-244de723-1783405707921v=1.0.0.js";import{_}from"./index-71d7b18c-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const h={class:"echarts"},g=r({name:"pie"}),E=r({...g,props:{pieData:{type:null,required:!0}},setup(a){const u=a,t=n([]),i={plannedNum:"\u8BA1\u5212\u9879\u76EE\u6570\u91CF",underingNum:"\u5728\u5EFA\u9879\u76EE\u6570\u91CF",completedNum:"\u5EFA\u6210\u9879\u76EE\u6570\u91CF"};s(()=>u.pieData,e=>{e&&(t.value=Object.keys(e).map(o=>({name:i[o],value:e[o]})),t.value)},{deep:!0});const l=n({tooltip:{trigger:"item"},legend:{type:"scroll",icon:"circle",textStyle:{color:"#373737",fontSize:"14px",rich:{}},top:"top",left:"15%",itemGap:14,itemHeight:12,itemWidth:12,data:t,formatter:function(e){return e&&t.value.find(o=>o.name===e),`{name|${e.length>4?e.slice(0,4)+"...":e}}`}},series:[{name:"",type:"pie",radius:["40%","55%"],center:["50%","60%"],startAngle:180,data:t,itemStyle:{borderColor:"#fff",borderWidth:6,normal:{label:{show:!0,position:"outside",formatter:function(e){return e.name!==""?e.name+"\uFF1A"+e.value+"\u4E2A":""}},labelLine:{length:30,length2:70,show:!0,color:"#00ffff"}}},labelLine:{length:8,length2:16,lineStyle:{width:1}}}]});return(e,o)=>(c(),p("div",h,[d(m,{option:f(l)},null,8,["option"])]))}});const x=_(E,[["__scopeId","data-v-577a6cf6"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/workbenchManage/workbench/components/Pie.vue"]]);export{x as default};
