Skip to content

Commit

Permalink
fix(Transfer): fix some wrong prop-types of transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchanz authored and lakerswgq committed Feb 24, 2022
1 parent 66ee0cb commit a4c95dd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/transfer/view/transfer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ class Transfer extends Component {
* @return {ReactNode} 列表项内容
*/
itemRender: PropTypes.func,
/**
* 左右面板是否显示搜索框
*/
showSearch: PropTypes.bool | PropTypes.arrayOf(PropTypes.bool),
/**
* 左右面板搜索框配置项,同 Search 组件 props
*/
searchProps: PropTypes.object | PropTypes.arrayOf(PropTypes.object),
/**
* 自定义搜索函数
* @param {String} searchedValue 搜索的内容
Expand All @@ -135,10 +127,18 @@ class Transfer extends Component {
* 搜索框占位符
*/
searchPlaceholder: PropTypes.string,
/**
* 左右面板是否显示搜索框
*/
showSearch: PropTypes.oneOfType([PropTypes.bool, PropTypes.arrayOf(PropTypes.bool)]),
/**
* 左右面板搜索框配置项,同 Search 组件 props
*/
searchProps: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
/**
* 列表为空显示内容
*/
notFoundContent: PropTypes.node | PropTypes.arrayOf(PropTypes.node),
notFoundContent: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
/**
* 左右面板标题
*/
Expand Down

0 comments on commit a4c95dd

Please sign in to comment.