mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +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
|
||||
import { Pagination } from 'antd';
|
||||
|
||||
function onChange(pageNumber) {
|
||||
console.log('Page: ', pageNumber);
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination showQuickJumper defaultCurrent={2} total={500} />
|
||||
, mountNode);
|
||||
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />,
|
||||
mountNode
|
||||
);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user