From 475a320f261c2bf194e5a437f7387261057294c1 Mon Sep 17 00:00:00 2001 From: Barrior Date: Wed, 25 Sep 2024 11:14:02 +0800 Subject: [PATCH] feat: show total record number of pagination --- packages/search-table-react/src/hooks/useRequest.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/search-table-react/src/hooks/useRequest.tsx b/packages/search-table-react/src/hooks/useRequest.tsx index c0f8edb..8aa01bc 100644 --- a/packages/search-table-react/src/hooks/useRequest.tsx +++ b/packages/search-table-react/src/hooks/useRequest.tsx @@ -137,6 +137,7 @@ export default function useRequest({ style: { marginBottom: 0 }, showQuickJumper: true, showSizeChanger: true, + showTotal: (total: number) => `共 ${total} 条数据`, ...table.pagination, ...paginationRef.current, onChange: (current: number, pageSize: number) => {