2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 3
|
2016-07-29 10:15:31 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 跳转
|
|
|
|
en-US: Jumper
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-07-21 11:13:32 +08:00
|
|
|
快速跳转到某一页。
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Jump to a page directly.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Pagination } from 'antd';
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2016-11-22 09:49:25 +08:00
|
|
|
function onChange(pageNumber) {
|
|
|
|
console.log('Page: ', pageNumber);
|
|
|
|
}
|
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2020-07-07 21:33:07 +08:00
|
|
|
<>
|
2019-05-10 15:38:35 +08:00
|
|
|
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />
|
|
|
|
<br />
|
|
|
|
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} disabled />
|
2020-07-07 21:33:07 +08:00
|
|
|
</>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2016-11-22 09:49:25 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|