import{a as i,r,a1 as s,o as l,aR as n,p as m,i as d,bc as u,k as p}from"./index.0d073eaa.js";import{C as c}from"./index.abdcab42.js";import"./index.78efd931.js";/* empty css              */import{u as f}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 O=i({__name:"SaleRadar",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"400px"}},setup(e){const a=e,t=r(null),{setOptions:o}=f(t);return s(()=>a.loading,()=>{a.loading||o({legend:{bottom:0,data:["Visits","Sales"]},tooltip:{},radar:{radius:"60%",splitNumber:8,indicator:[{name:"2017"},{name:"2017"},{name:"2018"},{name:"2019"},{name:"2020"},{name:"2021"}]},series:[{type:"radar",symbolSize:0,areaStyle:{shadowBlur:0,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1},data:[{value:[90,50,86,40,50,20],name:"Visits",itemStyle:{color:"#b6a2de"}},{value:[70,75,70,76,20,85],name:"Sales",itemStyle:{color:"#67e0e3"}}]}]})},{immediate:!0}),(h,g)=>(l(),n(p(c),{title:"\u9500\u552E\u7EDF\u8BA1",loading:e.loading},{default:m(()=>[d("div",{ref_key:"chartRef",ref:t,style:u({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"]))}});export{O as default};
