import{ai as t,o as a,c as l,R as o,a as m,T as u,J as V,M as c,O as s,U as i,S as g}from"./vue.adf17aba.js";const b={key:0},y=m("span",null,"合计",-1),k=[y],x={__name:"DataTableCellFooter",props:{totalValue:[Number,String],gapValue:Number,isCompare:Boolean,columnIndex:Number},setup(e){return(p,B)=>{const d=t("Top"),n=t("el-icon"),r=t("Bottom");return a(),l("div",null,[e.columnIndex===0?(a(),l("div",b,k)):o("",!0),m("div",null,u(e.totalValue===0||e.totalValue===null?"0":e.totalValue),1),e.isCompare?(a(),l("div",{key:1,style:V({color:e.gapValue>0?"#59b939":e.gapValue<0?"#ee7973":"black"})},[e.gapValue>0?(a(),c(n,{key:0},{default:s(()=>[i(d,{style:{position:"absolute",top:"2px"}})]),_:1})):e.gapValue<0?(a(),c(n,{key:1},{default:s(()=>[i(r,{style:{position:"absolute",top:"2px"}})]),_:1})):o("",!0),g(" "+u(e.gapValue===0||e.gapValue===null?"0%":e.gapValue!==void 0?e.gapValue+"%":""),1)],4)):o("",!0)])}}},N=x;export{N as default};
