You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
328 B

---
order: 9
title: 总数
---
通过设置 `showTotal` 展示总共有多少数据。
````jsx
import { Pagination, Select } from 'antd';
ReactDOM.render(
<Pagination
selectComponentClass={Select}
total={80}
showTotal={total => `共 ${total} 条`}
pageSize={20} defaultCurrent={1}
/>,
mountNode
);
````