Skip to content

Commit

Permalink
fix(Search): onSearch ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed Aug 6, 2019
1 parent 23c88ba commit 35d33dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class Search extends React.Component {
onChange: PropTypes.func,
/**
* 点击搜索按钮触发的回调
* @param {Object} value 输入值
* @param {String} value 输入值
* @param {String} filterValue 选项值
*/
onSearch: PropTypes.func,
/**
Expand Down
2 changes: 1 addition & 1 deletion types/search/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export interface SearchProps extends HTMLAttributesWeak {
/**
* 点击搜索按钮触发的回调
*/
onSearch?: (value: {}) => void;
onSearch?: (value: string, filterValue?: any) => void;

/**
* 选择器默认值
Expand Down

0 comments on commit 35d33dc

Please sign in to comment.