mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
e88589d9ef
* feat: Pagination support `disable` * update snapshot * update style * update style * update snapshot * update font color
32 lines
494 B
Markdown
32 lines
494 B
Markdown
---
|
|
order: 3
|
|
title:
|
|
zh-CN: 跳转
|
|
en-US: Jumper
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
快速跳转到某一页。
|
|
|
|
## en-US
|
|
|
|
Jump to a page directly.
|
|
|
|
```jsx
|
|
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,
|
|
);
|
|
```
|