From d3b828ae4ca9b0356dc7ffcae7c137a9f9298bfe Mon Sep 17 00:00:00 2001 From: hengkx Date: Fri, 7 Dec 2018 23:22:53 +0800 Subject: [PATCH] fix Transfer operations doc --- components/transfer/index.en-US.md | 2 +- components/transfer/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/transfer/index.en-US.md b/components/transfer/index.en-US.md index cd455455a5..c9ac0b1a07 100644 --- a/components/transfer/index.en-US.md +++ b/components/transfer/index.en-US.md @@ -28,7 +28,7 @@ One or more elements can be selected from either column, one click on the proper | lazy | property of [react-lazy-load](https://github.com/loktar00/react-lazy-load) for lazy rendering items. Turn off it by set to `false`. | object\|boolean | `{ height: 32, offset: 32 }` | | listStyle | A custom CSS style used for rendering the transfer columns. | object | | | locale | i18n text including filter, empty text, item unit, etc | object | `{ itemUnit: 'item', itemsUnit: 'items', notFoundContent: 'The list is empty', searchPlaceholder: 'Search here' }` | -| operations | A set of operations that are sorted from bottom to top. | string\[] | ['>', '<'] | +| operations | A set of operations that are sorted from top to bottom. | string\[] | ['>', '<'] | | operationStyle | A custom CSS style used for rendering the operations column. | object | | | render | The function to generate the item shown on a column. Based on an record (element of the dataSource array), this function should return a React element which is generated from that record. Also, it can return a plain object with `value` and `label`, `label` is a React element and `value` is for title | Function(record) | | | selectedKeys | A set of keys of selected items. | string\[] | \[] | diff --git a/components/transfer/index.zh-CN.md b/components/transfer/index.zh-CN.md index 4a7be47f91..a5bc210cbb 100644 --- a/components/transfer/index.zh-CN.md +++ b/components/transfer/index.zh-CN.md @@ -30,7 +30,7 @@ title: Transfer | lazy | Transfer 使用了 [react-lazy-load](https://github.com/loktar00/react-lazy-load) 优化性能,这里可以设置相关参数。设为 `false` 可以关闭懒加载。 | object\|boolean | `{ height: 32, offset: 32 }` | | listStyle | 两个穿梭框的自定义样式 | object | | | locale | 各种语言 | object | `{ itemUnit: '项', itemsUnit: '项', notFoundContent: '列表为空', searchPlaceholder: '请输入搜索内容' }` | -| operations | 操作文案集合,顺序从下至上 | string\[] | ['>', '<'] | +| operations | 操作文案集合,顺序从上至下 | string\[] | ['>', '<'] | | render | 每行数据渲染函数,该函数的入参为 `dataSource` 中的项,返回值为 ReactElement。或者返回一个普通对象,其中 `label` 字段为 ReactElement,`value` 字段为 title | Function(record) | | | selectedKeys | 设置哪些项应该被选中 | string\[] | \[] | | showSearch | 是否显示搜索框 | boolean | false |