diff --git a/components/transfer/index.jsx b/components/transfer/index.jsx index 3a739f3af97ec51830d7ba263d896ca49e31cfff..283ec9629f4be8fcb9b1544faaf313e42aca90ba 100644 --- a/components/transfer/index.jsx +++ b/components/transfer/index.jsx @@ -222,6 +222,7 @@ Transfer.defaultProps = { operations: [], showSearch: false, searchPlaceholder: '请输入搜索内容', + notFoundContent: '请输入搜索内容', body: noop, footer: noop, }; diff --git a/components/transfer/list.jsx b/components/transfer/list.jsx index e7e962516267b381b798e484d77b177d6468d002..5f038eb0b9b2d1bb9da4f3f4cd9481917a47aba2 100644 --- a/components/transfer/list.jsx +++ b/components/transfer/list.jsx @@ -70,7 +70,7 @@ class TransferList extends Component { render() { const { prefixCls, dataSource, titleText, filter, checkedKeys, - checkStatus, body, footer, showSearch } = this.props; + checkStatus, body, footer, showSearch, searchPlaceholder } = this.props; // Custom Layout const footerDom = footer({ ...this.props }); @@ -109,7 +109,11 @@ class TransferList extends Component { { bodyDom ||
{ showSearch ?
- +
: null }