Authored by QC-L

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

@@ -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>
@@ -199,7 +199,7 @@ export default class Index extends Component { @@ -199,7 +199,7 @@ export default class Index extends Component {
199 onScrollToLower={this.onScrollToLower}> 199 onScrollToLower={this.onScrollToLower}>
200 200
201 <View className="header-nav" onClick={this.goToSearch}> 201 <View className="header-nav" onClick={this.goToSearch}>
202 - <SearchBar height={655} disabled={true}></SearchBar> 202 + <SearchBar disabled={true}></SearchBar>
203 </View> 203 </View>
204 204
205 <Resources code={contentCode.index}></Resources> 205 <Resources code={contentCode.index}></Resources>