import{defineComponent as s,reactive as r,computed as m,toRef as o,createVNode as f}from"vue";import{useProvideSummary as u}from"../context/SummaryContext.mjs";import{useInjectTable as a}from"../context/TableContext.mjs";import"../context/StickyContext.mjs";import c from"./Summary.mjs";const b=s({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(t,{slots:n}){const l=a();return u(r({stickyOffsets:o(t,"stickyOffsets"),flattenColumns:o(t,"flattenColumns"),scrollColumnIndex:m(()=>{const e=t.flattenColumns.length-1;return t.flattenColumns[e]?.scrollbar?e:null})})),()=>{const{prefixCls:e}=l;return f("tfoot",{class:`${e}-summary`},[n.default?.()])}}}),k=c;export{k as FooterComponents,b as default};
