mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-18 08:00:53 +08:00
docs: update demo for Pagination, close: #3944
This commit is contained in:
parent
9febc9e71e
commit
1c26bca8fe
@ -16,7 +16,12 @@ Jump to a page directly.
|
|||||||
````jsx
|
````jsx
|
||||||
import { Pagination } from 'antd';
|
import { Pagination } from 'antd';
|
||||||
|
|
||||||
|
function onChange(pageNumber) {
|
||||||
|
console.log('Page: ', pageNumber);
|
||||||
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Pagination showQuickJumper defaultCurrent={2} total={500} />
|
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />,
|
||||||
, mountNode);
|
mountNode
|
||||||
|
);
|
||||||
````
|
````
|
||||||
|
Loading…
Reference in New Issue
Block a user