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