import{av as r,a as i,s,a6 as n,a_ as l,o as d,j as m,y as p,m as u,bk as c}from"./index.97c70775.js";import{C as f}from"./index.54e2443d.js";import"./index.39c499d6.js";/* empty css */import{u as h}from"./useECharts.672a4632.js";import"./index.c947e1cd.js";import"./TabPane.c249e2af.js";import"./index.0e29685c.js";import"./Col.2079ddbc.js";import"./useFlexGapSupport.07d6e900.js";import"./useRefs.dcf26156.js";import"./PlusOutlined.e6869ca1.js";const g=i({components:{Card:f},props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"400px"}},setup(e){const a=s(null),{setOptions:t}=h(a);return n(()=>e.loading,()=>{e.loading||t({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:"#9f8ed7"}},{value:[70,75,70,76,20,85],name:"Sales",itemStyle:{color:"#1edec5"}}]}]})},{immediate:!0}),{chartRef:a}}});function y(e,a,t,S,w,C){const o=l("Card");return d(),m(o,{title:"\u9500\u552E\u7EDF\u8BA1",loading:e.loading},{default:p(()=>[u("div",{ref:"chartRef",style:c({width:e.width,height:e.height})},null,4)]),_:1},8,["loading"])}var N=r(g,[["render",y]]);export{N as default};