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