import{useInjectSummary as e}from"../context/SummaryContext.mjs";import{useInjectTable as t}from"../context/TableContext.mjs";import n from"../Cell/index.mjs";import{getCellFixedInfo as r}from"../utils/fixUtil.mjs";import{createVNode as i,defineComponent as a}from"vue";var o=a({name:`ATableSummaryCell`,props:[`index`,`colSpan`,`rowSpan`,`align`],setup(a,{attrs:o,slots:s}){let c=t(),l=e();return()=>{let{index:e,colSpan:t=1,rowSpan:u,align:d}=a,{prefixCls:f,direction:p}=c,{scrollColumnIndex:m,stickyOffsets:h,flattenColumns:g}=l,_=e+t-1+1===m?t+1:t,v=r(e,e+_-1,g,h,p);return i(n,{class:o.class,index:e,component:`td`,prefixCls:f,record:null,dataIndex:null,align:d,colSpan:_,rowSpan:u,customRender:()=>s.default?.(),...v},null)}}});export{o as default};