diff --git a/components/locale-provider/en_US.tsx b/components/locale-provider/en_US.tsx index 03166bc0b..7381ebe7a 100644 --- a/components/locale-provider/en_US.tsx +++ b/components/locale-provider/en_US.tsx @@ -27,7 +27,6 @@ export default { cancelText: 'Cancel', }, Transfer: { - titles: ['Source', 'Target'], notFoundContent: 'Not Found', searchPlaceholder: 'Search here', itemUnit: 'item', diff --git a/components/transfer/demo/basic.md b/components/transfer/demo/basic.md index 67f496d66..6eb9d1824 100644 --- a/components/transfer/demo/basic.md +++ b/components/transfer/demo/basic.md @@ -55,6 +55,7 @@ const App = React.createClass({ return ( { // For high-level customized Transfer @dqaria static List = List; diff --git a/components/transfer/index.zh-CN.md b/components/transfer/index.zh-CN.md index 4165be073..c5ad21ac7 100644 --- a/components/transfer/index.zh-CN.md +++ b/components/transfer/index.zh-CN.md @@ -26,7 +26,7 @@ title: Transfer | onSelectChange | 选中项发生改变时的回调函数 | (sourceSelectedKeys, targetSelectedKeys): void | | | listStyle | 两个穿梭框的自定义样式 | Object | | | className | 自定义类 | String | | -| titles | 标题集合,顺序从左至右 | Array | ['源列表', '目的列表'] | +| titles | 标题集合,顺序从左至右 | Array | ['', ''] | | operations | 操作文案集合,顺序从上至下 | Array | [] | | showSearch | 是否显示搜索框 | Boolean | false | | filterOption | 接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 `true`,反之则返回 `false`。| (inputValue, option): boolean | | diff --git a/components/transfer/list.tsx b/components/transfer/list.tsx index ef02077c9..186b12675 100644 --- a/components/transfer/list.tsx +++ b/components/transfer/list.tsx @@ -159,7 +159,7 @@ export default class TransferList extends React.Component : null} @@ -209,7 +209,7 @@ export default class TransferList extends React.Component {showItems.length > 0 ? showItems - :
{notFoundContent || '列表为空'}
} + :
{notFoundContent || 'Not Found'}
} } {footerDom ?