"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),S=require("../Cell/index.js"),I=require("../context/SummaryContext.js"),g=require("../context/TableContext.js"),y=require("../utils/fixUtil.js"),b=o.defineComponent({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(l,{attrs:r,slots:s}){const a=g.useInjectTable(),u=I.useInjectSummary();return()=>{const{index:e,colSpan:n=1,rowSpan:c,align:i}=l,{prefixCls:d,direction:m}=a,{scrollColumnIndex:x,stickyOffsets:p,flattenColumns:f}=u,t=e+n-1+1===x?n+1:n,C=y.getCellFixedInfo(e,e+t-1,f,p,m);return o.createVNode(S.default,{class:r.class,index:e,component:"td",prefixCls:d,record:null,dataIndex:null,align:i,colSpan:t,rowSpan:c,customRender:()=>s.default?.(),...C},null)}}});exports.default=b;
