|
|
import Taro, {Component} from '@tarojs/taro';
|
|
|
import {View} from '@tarojs/components';
|
|
|
import searchIcon from '../../static/images/search.png';
|
|
|
import searchIcon from '../../static/images/gray_search@3x.png';
|
|
|
|
|
|
import './index.scss';
|
|
|
|
...
|
...
|
@@ -21,7 +21,7 @@ export default class SearchBar extends Component { |
|
|
return (
|
|
|
<View className={classname + ' search'}>
|
|
|
<Image src={searchIcon} className="search-icon"/>
|
|
|
<Input type='text' placeholder='search' value={value ? value : ''} onInput={this.props.onInputAction} onConfirm={this.props.onComplate}/>
|
|
|
<Input type='text' placeholder='Search' value={value ? value : ''} onInput={this.props.onInputAction} onConfirm={this.props.onComplate}/>
|
|
|
</View>
|
|
|
)
|
|
|
}
|
...
|
...
|
|