import{d as o,f as n,w as r,a2 as l,ad as s,af as d,a4 as f,ac as m,u}from"./vue-vendor-CxLCUzY4.js";import{J as c}from"./antd-vue-vendor-CahNzUUa.js";import{useECharts as h}from"./useECharts-C5PCME_B.js";import"./useTimeout-gJpgadD6.js";import"./index-Cy4uayzW.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./echarts-3CSrakfu.js";const B=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(()=>[f("div",{ref_key:"chartRef",ref:t,style:m({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"]))}});export{B as default};
