feat: pagination show total
This commit is contained in:
parent
8274fbad21
commit
0b6d54b3fc
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user