Search
搜索/关键词匹配组件
Props
属性
类型
说明
source
[array]
搜索列表
getResultId
[function]
返回搜索结果中触发事件的数组内容
hide
[Boolean]
显示/隐藏搜索结果
inputIsEmpty
[function]
输入框为空的回调
specialFlag
[Number || String]
用来设置搜索列表中元素的状态
<Search
source={this.List}
getResultId={this.getResultId}
hide={state.isSearchHide}
inputIsEmpty={this.changeProsehide}
specialFlag={state.custFollowPrdIns}
/>
Last updated
Was this helpful?