mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
cc6946b714
* Pagination - Total - English correction * Update total.md
29 lines
446 B
Markdown
29 lines
446 B
Markdown
---
|
|
order: 9
|
|
title:
|
|
zh-CN: 总数
|
|
en-US: Total number
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
通过设置 `showTotal` 展示总共有多少数据。
|
|
|
|
## en-US
|
|
|
|
You can show the total number of data by setting `showTotal`.
|
|
|
|
````jsx
|
|
import { Pagination, Select } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Pagination
|
|
selectComponentClass={Select}
|
|
total={80}
|
|
showTotal={total => `Total ${total} items`}
|
|
pageSize={20} defaultCurrent={1}
|
|
/>,
|
|
mountNode
|
|
);
|
|
````
|