2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 9
|
2016-07-29 10:15:31 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 总数
|
|
|
|
en-US: Total number
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-02-25 10:36:58 +08:00
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-02-25 10:36:58 +08:00
|
|
|
通过设置 `showTotal` 展示总共有多少数据。
|
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
You can show the total number of data by setting `showTotal`.
|
|
|
|
|
2016-02-25 10:36:58 +08:00
|
|
|
````jsx
|
|
|
|
import { Pagination, Select } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Pagination
|
|
|
|
selectComponentClass={Select}
|
|
|
|
total={80}
|
2016-10-08 11:45:39 +08:00
|
|
|
showTotal={total => `Total ${total} items`}
|
2016-06-06 13:54:10 +08:00
|
|
|
pageSize={20} defaultCurrent={1}
|
|
|
|
/>,
|
2016-02-25 10:36:58 +08:00
|
|
|
mountNode
|
|
|
|
);
|
|
|
|
````
|