mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
update pagination demo
This commit is contained in:
parent
5ee64fe105
commit
be700df612
@ -8,15 +8,11 @@ title: 总数
|
||||
````jsx
|
||||
import { Pagination, Select } from 'antd';
|
||||
|
||||
function showTotal(total) {
|
||||
return `共 ${total} 条`;
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination
|
||||
selectComponentClass={Select}
|
||||
total={80}
|
||||
showTotal={showTotal}
|
||||
showTotal={total => `共 ${total} 条`}
|
||||
pageSize={20} defaultCurrent={1} />,
|
||||
mountNode
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user