mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Upgrade rc-pagination to 1.3.0.
This commit is contained in:
parent
e3f3594f33
commit
4cc69cdd3f
@ -14,6 +14,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination onChange={onChange} total={50} />,
|
||||
<Pagination current={1} onChange={onChange} total={50} />,
|
||||
document.getElementById('components-pagination-demo-basic'));
|
||||
````
|
||||
|
@ -18,6 +18,6 @@ function onShowSizeChange(current, pageSize) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination showSizeChanger onShowSizeChange={onShowSizeChange} onChange={onChange} total={500} />,
|
||||
<Pagination showSizeChanger onShowSizeChange={onShowSizeChange} current={1} onChange={onChange} total={500} />,
|
||||
document.getElementById('components-pagination-demo-changer'));
|
||||
````
|
||||
|
@ -14,6 +14,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination showQuickJumper onChange={onChange} total={500} />,
|
||||
<Pagination showQuickJumper current={2} onChange={onChange} total={500} />,
|
||||
document.getElementById('components-pagination-demo-jump'));
|
||||
````
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 国际化
|
||||
|
||||
- order: 6
|
||||
- order: 7
|
||||
|
||||
通过 `locale` 配置时区、语言等, 默认支持 en_US, zh_CN
|
||||
|
||||
@ -15,6 +15,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination onChange={onChange} total={50} locale={enUS} />,
|
||||
<Pagination current={1} onChange={onChange} total={50} locale={enUS} />,
|
||||
document.getElementById('components-pagination-demo-locale'));
|
||||
````
|
||||
|
@ -14,6 +14,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination size="small" onChange={onChange} total={50} />,
|
||||
<Pagination size="small" current={1} onChange={onChange} total={50} />,
|
||||
document.getElementById('components-pagination-demo-mini'));
|
||||
````
|
||||
|
@ -14,6 +14,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination onChange={onChange} total={500} />,
|
||||
<Pagination current={1} onChange={onChange} total={500} />,
|
||||
document.getElementById('components-pagination-demo-more'));
|
||||
````
|
||||
|
@ -14,6 +14,6 @@ function onChange(page) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination simple onChange={onChange} total={50} />,
|
||||
<Pagination simple current={1} onChange={onChange} total={50} />,
|
||||
document.getElementById('components-pagination-demo-simple'));
|
||||
````
|
||||
|
15
components/pagination/demo/uncontrolled.md
Normal file
15
components/pagination/demo/uncontrolled.md
Normal file
@ -0,0 +1,15 @@
|
||||
# 简洁
|
||||
|
||||
- order: 8
|
||||
|
||||
不受控制的页码。
|
||||
|
||||
---
|
||||
|
||||
````jsx
|
||||
import { Pagination } from 'antd';
|
||||
|
||||
ReactDOM.render(
|
||||
<Pagination defaultCurrent={3} total={50} />,
|
||||
document.getElementById('components-pagination-demo-uncontrolled'));
|
||||
````
|
@ -48,7 +48,7 @@
|
||||
"rc-input-number": "~2.4.1",
|
||||
"rc-menu": "~4.8.1",
|
||||
"rc-notification": "~1.3.0",
|
||||
"rc-pagination": "~1.2.1",
|
||||
"rc-pagination": "~1.3.0",
|
||||
"rc-progress": "~1.0.4",
|
||||
"rc-queue-anim": "~0.11.2",
|
||||
"rc-radio": "~2.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user