|
@@ -17,10 +17,10 @@ export default class SearchBar extends Component { |
|
@@ -17,10 +17,10 @@ export default class SearchBar extends Component { |
17
|
}
|
17
|
}
|
18
|
|
18
|
|
19
|
render() {
|
19
|
render() {
|
20
|
- let { classname, value, height, disabled} = this.props;
|
20
|
+ let { classname, value, disabled} = this.props;
|
21
|
|
21
|
|
22
|
return (
|
22
|
return (
|
23
|
- <View style= { height ? `width: ${height}rpx` : ''} className={classname + ' search'}>
|
23
|
+ <View className={classname + ' search'}>
|
24
|
<Image src={searchIcon} className="search-icon"/>
|
24
|
<Image src={searchIcon} className="search-icon"/>
|
25
|
<Input type='text' placeholder = 'Search' value = { value? value : ''} onInput = { this.props.onInputAction } onConfirm = { this.props.onComplate } disabled={disabled} />
|
25
|
<Input type='text' placeholder = 'Search' value = { value? value : ''} onInput = { this.props.onInputAction } onConfirm = { this.props.onComplate } disabled={disabled} />
|
26
|
</View>
|
26
|
</View>
|