1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| import React from 'react';
| import { Pagination } from 'antd';
|
| const PaginationBar = ({ page, pageSize, total, onChange }) => {
| return (
| <div style={{ marginTop: 16, textAlign: 'right' }}>
| <Pagination
| current={page}
| pageSize={pageSize}
| total={total}
| onChange={onChange}
| showSizeChanger
| showTotal={(t) => `共 ${t} 条`}
| />
| </div>
| );
| };
|
| export default PaginationBar;
|
|