mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:38:13 +00:00
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