Skip to content

Commit

Permalink
Merge branch '3.0' of github.com:zuiidea/antd-admin into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiidea committed Jan 12, 2017
2 parents 78eab2b + bcf9307 commit f41f4bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Search extends React.Component {
{select && <Select ref='searchSelect' onChange={this.handeleSelectChange} size={size} {...selectProps}>
{selectOptions && selectOptions.map((item, key) => <Select.Option value={item.value} key={key}>{item.name || item.value}</Select.Option>)}
</Select>}
<Input ref='searchInput' size={size} onChange={this.handleInputChange} />
<Input ref='searchInput' size={size} onChange={this.handleInputChange} onPressEnter={this.handleSearch}/>
<Button size={size} type='primary' onClick={this.handleSearch}>搜索</Button>
{clearVisible && <Icon type='cross' onClick={this.handleClearInput} />}
</Input.Group>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/ui/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const SearchPage = () => <div className='content-inner'>
},
{
props: 'onSearch',
desciption: '点击搜索按钮或者点击清除时的回调',
desciption: '点击搜索按钮, 按Enter键或者点击清除时的回调',
type: 'Function({keyword:string,field:string})',
default: '-'
}]} />
Expand Down

0 comments on commit f41f4bc

Please sign in to comment.