update pagination demo

This commit is contained in:
afc163 2016-04-11 15:07:14 +08:00
parent 5ee64fe105
commit be700df612

View File

@ -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
);