From dea88ba37edfe563d9e4cea24c8a2a40b8eb02da Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 7 Mar 2016 11:57:51 +0800 Subject: [PATCH] Fix transfer searchPlaceholder --- components/transfer/index.jsx | 1 + components/transfer/list.jsx | 8 ++++++-- components/transfer/search.jsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) 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 ||
{ showSearch ?
- +
: null }