You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
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,
|
|
|
|
);
|
|
|
|
```
|