diff --git a/frontend/src/components/pure/ms-table/useTable.ts b/frontend/src/components/pure/ms-table/useTable.ts index cb4ffe4a52..cee13ce47e 100644 --- a/frontend/src/components/pure/ms-table/useTable.ts +++ b/frontend/src/components/pure/ms-table/useTable.ts @@ -381,13 +381,17 @@ export default function useTableProps( watchEffect(() => { const { heightUsed, showPagination, selectedKeys, msPagination } = propsRes.value; - const { pageSize, total } = msPagination as Pagination; - /* - * 是否有底部操作栏 包括 批量操作 和 分页器 - * 1. 有分页器,且总条数大于每页条数 - * 2. 有选中项 - */ - const hasFooterAction = (showPagination && total > pageSize) || selectedKeys.size > 0; + let hasFooterAction = false; + if (showPagination) { + const { pageSize, total } = msPagination as Pagination; + /* + * 是否有底部操作栏 包括 批量操作 和 分页器 + * 1. 有分页器,且总条数大于每页条数 + * 2. 有选中项 + */ + hasFooterAction = total > pageSize || selectedKeys.size > 0; + } + const currentY = appStore.innerHeight - (heightUsed || defaultHeightUsed) + (hasFooterAction ? 0 : footerActionWrapHeight); propsRes.value.showFooterActionWrap = hasFooterAction;