diff --git a/components/transfer/index.jsx b/components/transfer/index.jsx index 3a739f3af9..283ec9629f 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 e7e9625162..5f038eb0b9 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 ||