From 0b6d54b3fc04525423a7de0d9618e0c0e3861ff5 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 6 Jan 2021 15:44:22 +0800 Subject: [PATCH] feat: pagination show total --- packages/app/src/components/views/SimpleTable.tsx | 2 +- packages/app/src/components/views/Table.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/views/SimpleTable.tsx b/packages/app/src/components/views/SimpleTable.tsx index 7dd54432c..2a11bc450 100644 --- a/packages/app/src/components/views/SimpleTable.tsx +++ b/packages/app/src/components/views/SimpleTable.tsx @@ -171,7 +171,7 @@ export function SimpleTable(props: SimpleTableProps) { /> {paginated && (
- + `共 ${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
)} diff --git a/packages/app/src/components/views/Table.tsx b/packages/app/src/components/views/Table.tsx index f48f0ead5..f25ef790f 100644 --- a/packages/app/src/components/views/Table.tsx +++ b/packages/app/src/components/views/Table.tsx @@ -170,7 +170,7 @@ export function Table(props: TableProps) { /> {paginated && (
- + `共 ${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
)}