import{d as o,f as n,w as r,a2 as l,ad as s,af as d,a4 as m,ac as f,u}from"./vue-vendor-CxLCUzY4.js";import{J as c}from"./antd-vue-vendor-CDWW6V_M.js";import{useECharts as h}from"./useECharts-DCjNtWia.js";import"./useTimeout-CB9F1PLu.js";import"./index-B_2CoVdl.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./echarts-DjaBQeb6.js";import"./renderers-qdWQN0CG.js";const k=o({__name:"VisitSource",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"}},setup(e){const a=e,t=n(null),{setOptions:i}=h(t);return r(()=>a.loading,()=>{a.loading||i({tooltip:{trigger:"item"},legend:{bottom:"1%",left:"center"},series:[{color:["#5ab1ef","#b6a2de","#67e0e3","#2ec7c9"],name:"访问来源",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"12",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:1048,name:"搜索引擎"},{value:735,name:"直接访问"},{value:580,name:"邮件营销"},{value:484,name:"联盟广告"}],animationType:"scale",animationEasing:"exponentialInOut",animationDelay:function(){return Math.random()*100}}]})},{immediate:!0}),(p,g)=>(l(),s(u(c),{title:"访问来源",loading:e.loading},{default:d(()=>[m("div",{ref_key:"chartRef",ref:t,style:f({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"]))}});export{k as default};
