"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../context/SummaryContext.js"),r=require("../context/TableContext.js");require("../context/StickyContext.js");const u=require("./Summary.js"),a=e.defineComponent({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(t,{slots:n}){const s=r.useInjectTable();return l.useProvideSummary(e.reactive({stickyOffsets:e.toRef(t,"stickyOffsets"),flattenColumns:e.toRef(t,"flattenColumns"),scrollColumnIndex:e.computed(()=>{const o=t.flattenColumns.length-1;return t.flattenColumns[o]?.scrollbar?o:null})})),()=>{const{prefixCls:o}=s;return e.createVNode("tfoot",{class:`${o}-summary`},[n.default?.()])}}}),c=u.default;exports.FooterComponents=c;exports.default=a;
