feat: pagination show total

This commit is contained in:
chenos 2021-01-06 15:44:22 +08:00
parent 8274fbad21
commit 0b6d54b3fc
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ export function SimpleTable(props: SimpleTableProps) {
/>
{paginated && (
<div className={'table-pagination'}>
<Pagination {...pagination} showQuickJumper showSizeChanger size={'small'}/>
<Pagination {...pagination} showTotal={(total)=> `${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
</div>
)}
</Card>

View File

@ -170,7 +170,7 @@ export function Table(props: TableProps) {
/>
{paginated && (
<div className={'table-pagination'}>
<Pagination {...pagination} showQuickJumper showSizeChanger size={'small'}/>
<Pagination {...pagination} showTotal={(total)=> `${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
</div>
)}
</Card>