mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
328 B
328 B
order | title |
---|---|
9 | 总数 |
通过设置 showTotal
展示总共有多少数据。
import { Pagination, Select } from 'antd';
ReactDOM.render(
<Pagination
selectComponentClass={Select}
total={80}
showTotal={total => `共 ${total} 条`}
pageSize={20} defaultCurrent={1}
/>,
mountNode
);