Authored by QC-L

更新首页搜索框宽度 review by 黄敬囿

... ... @@ -17,10 +17,10 @@ export default class SearchBar extends Component {
}
render() {
let { classname, value, height, disabled} = this.props;
let { classname, value, disabled} = this.props;
return (
<View style= { height ? `width: ${height}rpx` : ''} className={classname + ' search'}>
<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 } disabled={disabled} />
</View>
... ...
... ... @@ -199,7 +199,7 @@ export default class Index extends Component {
onScrollToLower={this.onScrollToLower}>
<View className="header-nav" onClick={this.goToSearch}>
<SearchBar height={655} disabled={true}></SearchBar>
<SearchBar disabled={true}></SearchBar>
</View>
<Resources code={contentCode.index}></Resources>
... ...