Upgrade rc-pagination to 1.3.0.

This commit is contained in:
Yuwei Ba 2015-11-26 12:17:19 +08:00
parent e3f3594f33
commit 4cc69cdd3f
9 changed files with 24 additions and 9 deletions

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View 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'));
````

View File

@ -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",