mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
e88589d9ef
* feat: Pagination support `disable` * update snapshot * update style * update style * update snapshot * update font color
494 B
494 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
快速跳转到某一页。
en-US
Jump to a page directly.
import { Pagination } from 'antd';
function onChange(pageNumber) {
console.log('Page: ', pageNumber);
}
ReactDOM.render(
<div>
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />
<br />
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} disabled />
</div>,
mountNode,
);