ant-design/components/pagination/demo/total.md
2016-07-29 10:15:31 +08:00

442 B

order title
9
zh-CN en-US
总数 Total number

zh-CN

通过设置 showTotal 展示总共有多少数据。

en-US

You can show the total number of data by setting showTotal.

import { Pagination, Select } from 'antd';

ReactDOM.render(
  <Pagination
    selectComponentClass={Select}
    total={80}
    showTotal={total => `共 ${total} 条`}
    pageSize={20} defaultCurrent={1}
  />,
  mountNode
);