import{d as w,U as L,a2 as e,ad as a,af as c,a4 as o,a5 as i,ai as _,f as k,e as D,a3 as h,F as G,ae as x,aj as z,G as $,V as s,u as y,k as B,a6 as A}from"./vue-vendor-CxLCUzY4.js";import{_ as F,B as j,o as E}from"./index-CLZzJyTP.js";import{ah as S}from"./antd-vue-vendor-CahNzUUa.js";import{T as m,S as g}from"./SingleLine-CxBSeUvI.js";import{B as b}from"./Bar-DseHDyy6.js";import{b as I,c as P}from"./data-BpJ37qIE.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useECharts-B5iqLsJb.js";import"./useTimeout-KpZCXEcl.js";import"./echarts-3CSrakfu.js";const R={class:"chart-card-header"},U={class:"meta"},q={class:"chart-card-title"},H={class:"chart-card-action"},J={class:"total"},K={class:"chart-card-content"},M={class:"content-fix"},O={class:"chart-card-footer"},Q={class:"field"},W=w({__name:"ChartCard",props:{title:{type:String,default:""},total:{type:[Number,String],default:""},loading:{type:Boolean,default:!1}},setup(r){return(u,C)=>{const n=L("a-card");return e(),a(n,{loading:r.loading,"body-style":{padding:"20px 24px 8px"},bordered:!1},{default:c(()=>[o("div",R,[o("div",U,[o("span",q,i(r.title),1),o("span",H,[_(u.$slots,"action",{},void 0,!0)])]),o("div",J,[o("span",null,i(r.total),1)])]),o("div",K,[o("div",M,[_(u.$slots,"default",{},void 0,!0)])]),o("div",O,[o("div",Q,[_(u.$slots,"footer",{},void 0,!0)])])]),_:3},8,["loading"])}}}),X=F(W,[["__scopeId","data-v-c815188e"]]),Y={class:"md:flex"},Z={key:0},ee={key:1},te={key:0},pe=w({__name:"ChartGroupCard",props:{loading:{type:Boolean},type:{type:String,default:"chart"}},setup(r){const{getThemeColor:u}=j(),C=r,n=k({xAxis:{show:!1,boundaryGap:!1},yAxis:{show:!1,boundaryGap:!1,max:220}}),d=k([{name:"1月",value:50},{name:"2月",value:100},{name:"3月",value:150},{name:"4月",value:40},{name:"5月",value:110},{name:"6月",value:120}]),p=D(()=>u.value),N=D(()=>C.type==="dbc"?I:P);function T(f,v){return v===0?`￥${f}`:v===3?`${f}%`:f}return(f,v)=>{const V=L("a-tooltip");return e(),h("div",Y,[(e(!0),h(G,null,x(N.value,(l,t)=>(e(),a(X,{key:l.title,loading:r.loading,title:l.title,total:T(l.total,t),class:A(["md:w-1/4 w-full !md:mt-0 !mt-4",[t+1<4&&"!md:mr-4"]])},z({action:c(()=>[B(V,{title:"指标说明"},{default:c(()=>[B(y(E),{icon:l.icon,size:20},null,8,["icon"])]),_:2},1024)]),default:c(()=>[r.type==="chart"?(e(),h("div",Z,[t===0?(e(),a(m,{key:0,term:"周同比",percentage:12})):s("",!0),t===0?(e(),a(m,{key:1,term:"日同比",percentage:11,type:!1})):s("",!0),t===1?(e(),a(g,{key:2,option:n.value,chartData:d.value,seriesColor:p.value,height:"50px"},null,8,["option","chartData","seriesColor"])):s("",!0),t===2?(e(),a(b,{key:3,option:n.value,chartData:d.value,seriesColor:p.value,height:"50px"},null,8,["option","chartData","seriesColor"])):s("",!0),t===3?(e(),a(y(S),{key:4,percent:78,"show-info":!1})):s("",!0)])):(e(),h("div",ee,[t===0?(e(),a(g,{key:0,seriesColor:p.value,option:n.value,chartData:d.value,height:"50px"},null,8,["seriesColor","option","chartData"])):s("",!0),t===1?(e(),a(g,{key:1,seriesColor:p.value,option:n.value,chartData:d.value,height:"50px"},null,8,["seriesColor","option","chartData"])):s("",!0),t===2?(e(),a(b,{key:2,seriesColor:p.value,option:n.value,chartData:d.value,height:"50px"},null,8,["seriesColor","option","chartData"])):s("",!0),t===3?(e(),a(y(S),{key:3,percent:78,"show-info":!1})):s("",!0)]))]),_:2},[r.type==="chart"?{name:"footer",fn:c(()=>[t!==3?(e(),h("span",te,[$(i(l.footer),1),o("span",null,i(l.value),1)])):s("",!0),t===3?(e(),a(m,{key:1,term:"周同比",percentage:12})):s("",!0),t===3?(e(),a(m,{key:2,term:"日同比",percentage:11,type:!1})):s("",!0)]),key:"0"}:{name:"footer",fn:c(()=>[o("span",null,[$(i(l.footer),1),o("span",null,i(l.value),1)])]),key:"1"}]),1032,["loading","title","total","class"]))),128))])}}});export{pe as default};
