import{d as o,f as l,w as s,a2 as u,ad as d,af as m,a4 as c,ac as f,u as p}from"./vue-vendor-CxLCUzY4.js";import{J as h}from"./antd-vue-vendor-CahNzUUa.js";import{useECharts as g}from"./useECharts-B5iqLsJb.js";import"./useTimeout-KpZCXEcl.js";import"./index-CLZzJyTP.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./echarts-3CSrakfu.js";const k=o({__name:"SalesProductPie",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"}},setup(e){const a=e,t=l(null),{setOptions:r}=g(t);return s(()=>a.loading,()=>{a.loading||r({tooltip:{trigger:"item"},series:[{name:"访问来源",type:"pie",radius:"80%",center:["50%","50%"],color:["#5ab1ef","#b6a2de","#67e0e3","#2ec7c9"],data:[{value:500,name:"电子产品"},{value:310,name:"服装"},{value:274,name:"化妆品"},{value:400,name:"家居"}].sort(function(n,i){return n.value-i.value}),roseType:"radius",animationType:"scale",animationEasing:"exponentialInOut",animationDelay:function(){return Math.random()*400}}]})},{immediate:!0}),(n,i)=>(u(),d(p(h),{title:"成交占比",loading:e.loading},{default:m(()=>[c("div",{ref_key:"chartRef",ref:t,style:f({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"]))}});export{k as default};
