feat: pagination show total
This commit is contained in:
parent
8274fbad21
commit
0b6d54b3fc
@ -171,7 +171,7 @@ export function SimpleTable(props: SimpleTableProps) {
|
|||||||
/>
|
/>
|
||||||
{paginated && (
|
{paginated && (
|
||||||
<div className={'table-pagination'}>
|
<div className={'table-pagination'}>
|
||||||
<Pagination {...pagination} showQuickJumper showSizeChanger size={'small'}/>
|
<Pagination {...pagination} showTotal={(total)=> `共 ${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -170,7 +170,7 @@ export function Table(props: TableProps) {
|
|||||||
/>
|
/>
|
||||||
{paginated && (
|
{paginated && (
|
||||||
<div className={'table-pagination'}>
|
<div className={'table-pagination'}>
|
||||||
<Pagination {...pagination} showQuickJumper showSizeChanger size={'small'}/>
|
<Pagination {...pagination} showTotal={(total)=> `共 ${total} 条记录`} showQuickJumper showSizeChanger size={'small'}/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
Loading…
Reference in New Issue
Block a user