Skip to content

Commit

Permalink
feat: show total record number of pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Sep 25, 2024
1 parent c4e8a30 commit 475a320
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/search-table-react/src/hooks/useRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 475a320

Please sign in to comment.