Browse Source

docs: pagination translation (#2533)

pull/2537/head
ddcat1115 8 years ago
committed by Benjy Cui
parent
commit
a242a4bdf3
  1. 10
      components/pagination/demo/basic.md
  2. 10
      components/pagination/demo/changer.md
  3. 10
      components/pagination/demo/controlled.md
  4. 10
      components/pagination/demo/jump.md
  5. 10
      components/pagination/demo/mini.md
  6. 10
      components/pagination/demo/more.md
  7. 12
      components/pagination/demo/simple.md
  8. 10
      components/pagination/demo/total.md
  9. 34
      components/pagination/index.en-US.md
  10. 14
      components/pagination/index.zh-CN.md

10
components/pagination/demo/basic.md

@ -1,10 +1,18 @@
--- ---
order: 0 order: 0
title: 基本 title:
zh-CN: 基本
en-US: Basic
--- ---
## zh-CN
基础分页。 基础分页。
## en-US
Basic pagination.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/changer.md

@ -1,10 +1,18 @@
--- ---
order: 2 order: 2
title: 改变 title:
zh-CN: 改变
en-US: Changer
--- ---
## zh-CN
改变每页显示条目数。 改变每页显示条目数。
## en-US
Change `pageSize`.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/controlled.md

@ -1,10 +1,18 @@
--- ---
order: 8 order: 8
title: 受控 title:
zh-CN: 受控
en-US: Controlled
--- ---
## zh-CN
受控制的页码。 受控制的页码。
## en-US
Controlled page number.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/jump.md

@ -1,10 +1,18 @@
--- ---
order: 3 order: 3
title: 跳转 title:
zh-CN: 跳转
en-US: Jumper
--- ---
## zh-CN
快速跳转到某一页。 快速跳转到某一页。
## en-US
Jump to a page directly.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/mini.md

@ -1,10 +1,18 @@
--- ---
order: 4 order: 4
title: 迷你 title:
zh-CN: 迷你
en-US: Mini size
--- ---
## zh-CN
迷你版本。 迷你版本。
## en-US
Mini size pagination.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/more.md

@ -1,10 +1,18 @@
--- ---
order: 1 order: 1
title: 更多 title:
zh-CN: 更多
en-US: More
--- ---
## zh-CN
更多分页。 更多分页。
## en-US
More pages.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

12
components/pagination/demo/simple.md

@ -1,9 +1,17 @@
--- ---
order: 6 order: 6
title: 简洁 title:
zh-CN: 简洁
en-US: Simple mode
--- ---
简单地翻页。 ## zh-CN
简单的翻页。
## en-US
Simple mode.
````jsx ````jsx
import { Pagination } from 'antd'; import { Pagination } from 'antd';

10
components/pagination/demo/total.md

@ -1,10 +1,18 @@
--- ---
order: 9 order: 9
title: 总数 title:
zh-CN: 总数
en-US: Total number
--- ---
## zh-CN
通过设置 `showTotal` 展示总共有多少数据。 通过设置 `showTotal` 展示总共有多少数据。
## en-US
You can show the total number of data by setting `showTotal`.
````jsx ````jsx
import { Pagination, Select } from 'antd'; import { Pagination, Select } from 'antd';

34
components/pagination/index.en-US.md

@ -0,0 +1,34 @@
---
category: Components
type: Navigation
title: Pagination
---
A long list can be divided into several pages by `Pagination`, and only one page will be loaded at a time.
## When to use
- When it will take a long time to load/render all items.
- If you want to browse the data by switching in the pages.
## API
```html
<Pagination onChange={onChange} total={50} />
```
Property | Description | Type | Default
-----|-----|-----|------
current | current page number | Number | -
defaultCurrent | default current page number | Number | 1
total | total number of data | Number | 0
defaultPageSize | default number of data per page | Number | 10
pageSize | number of data per page | Number | -
onChange | a callback function, can be executed when the page number is changing, and it takes the resulting page number as an argument | Function | noop
showSizeChanger | determine whether `pageSize` can be changed | Boolean | false
pageSizeOptions | specify the sizeChanger selections | Array | ['10', '20', '30', '40']
onShowSizeChange | a callback function, can be executed when `pageSize` is changing | Function | noop
showQuickJumper | determine whether you can jump to a page directly | Boolean | false
size | specify the size of `Pagination`, can be set to `small` | String | ""
simple | whether to use simple mode | Object | -
showTotal | to custom the total number display | Function | -

14
components/pagination/index.md → components/pagination/index.zh-CN.md

@ -20,16 +20,16 @@ english: Pagination
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 |
|------------------|------------------------------------|---------------|--------------------------| |------------------|------------------------------------|---------------|--------------------------|
| current | 当前页数 | Number | | | current | 当前页数 | Number | - |
| defaultCurrent | 默认的当前页数 | Number | 1 | | defaultCurrent | 默认的当前页数 | Number | 1 |
| total | 数据总数 | Number | 0 | | total | 数据总数 | Number | 0 |
| defaultPageSize | 初始的每页条数 | Number | 10 | | defaultPageSize | 默认的每页条数 | Number | 10 |
| pageSize | 每页条数 | Number | | | pageSize | 每页条数 | Number | - |
| onChange | 页码改变的回调,参数是改变后的页码 | Function | noop | | onChange | 页码改变的回调,参数是改变后的页码 | Function | noop |
| showSizeChanger | 是否可以改变 pageSize | Bool | false | | showSizeChanger | 是否可以改变 pageSize | Boolean | false |
| pageSizeOptions | 指定每页可以显示多少条 | Array<String> | ['10', '20', '30', '40'] | | pageSizeOptions | 指定每页可以显示多少条 | Array<String> | ['10', '20', '30', '40'] |
| onShowSizeChange | pageSize 变化的回调 | Function | noop | | onShowSizeChange | pageSize 变化的回调 | Function | noop |
| showQuickJumper | 是否可以快速跳转至某页 | Bool | false | | showQuickJumper | 是否可以快速跳转至某页 | Boolean | false |
| size | 当为「small」时,是小尺寸分页 | String | "" | | size | 当为「small」时,是小尺寸分页 | String | "" |
| simple | 当添加该属性时,显示为简单分页 | Object | | | simple | 当添加该属性时,显示为简单分页 | Object | - |
| showTotal | 用于显示总共有多少条数据 | Function | | | showTotal | 用于显示总共有多少条数据 | Function | - |
Loading…
Cancel
Save