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