import{a as o,r as u,a1 as l,o as s,aR as m,p as c,i as d,bc as p,k as f}from"./index.0d073eaa.js";import{C as h}from"./index.abdcab42.js";import"./index.78efd931.js";/* empty css              */import{u as g}from"./useECharts.2ee81223.js";import"./index.aa6b7013.js";import"./index.1d29734e.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./useRefs.e81831e2.js";import"./PlusOutlined.64d8e001.js";const R=o({__name:"SalesProductPie",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"}},setup(e){const t=e,a=u(null),{setOptions:r}=g(a);return l(()=>t.loading,()=>{t.loading||r({tooltip:{trigger:"item"},series:[{name:"\u8BBF\u95EE\u6765\u6E90",type:"pie",radius:"80%",center:["50%","50%"],color:["#5ab1ef","#b6a2de","#67e0e3","#2ec7c9"],data:[{value:500,name:"\u7535\u5B50\u4EA7\u54C1"},{value:310,name:"\u670D\u88C5"},{value:274,name:"\u5316\u5986\u54C1"},{value:400,name:"\u5BB6\u5C45"}].sort(function(i,n){return i.value-n.value}),roseType:"radius",animationType:"scale",animationEasing:"exponentialInOut",animationDelay:function(){return Math.random()*400}}]})},{immediate:!0}),(i,n)=>(s(),m(f(h),{title:"\u6210\u4EA4\u5360\u6BD4",loading:e.loading},{default:c(()=>[d("div",{ref_key:"chartRef",ref:a,style:p({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"]))}});export{R as default};
