import{a5 as f,a6 as v,a7 as p,a8 as b,a9 as y,aa as C}from"./index.CN1lNsL-.js";import{a as r,f as D,aj as k,c as l,o,b as e,R as h,a9 as x,S as g,K as B,J as w,O as I,Q as c}from"./vue.YrNK8sx4.js";import{_ as j}from"./_plugin-vue_export-helper.DlAUqK2U.js";const L={class:"info-cards"},N={class:"card-grid"},O=["onClick"],S={class:"card-value"},V={class:"card-label"},q=r({name:"InfoCards"}),z=r({...q,props:{summaryData:{type:Object,required:!0}},setup(i){const a=i,d=D(()=>[{label:"设备总数",value:a.summaryData.total_devices,icon:f},{label:"在借数",value:a.summaryData.total_borrows,icon:v},{label:"在库数",value:a.summaryData.total_warehouses,icon:p},{label:"维修中",value:a.summaryData.total_maintenances,icon:b},{label:"用户数",value:a.summaryData.total_students,icon:y},{label:"借用件次数",value:a.summaryData.total_applications,icon:C}]);function u(n){console.log("点击信息卡片:",n.label)}return(n,s)=>{const _=k("el-icon");return o(),l("div",L,[s[0]||(s[0]=e("div",{class:"info-title"}," 数据简报 ",-1)),s[1]||(s[1]=e("div",{class:"custom-line"},null,-1)),e("div",N,[(o(!0),l(h,null,x(d.value,(t,m)=>(o(),l("div",{key:m,class:"card",onClick:E=>u(t)},[g(_,{size:40,class:"card-icon"},{default:B(()=>[(o(),w(I(t.icon)))]),_:2},1024),e("div",S,c(t.value),1),e("div",V,c(t.label),1)],8,O))),128))])])}}}),Q=j(z,[["__scopeId","data-v-6c874112"]]);export{Q as default};
