|
@@ -111,7 +111,7 @@ class SearchOption extends React.Component {
|
|
|
this.setState({border:false,val:''})
|
|
|
}
|
|
|
render() {
|
|
|
- const { children,visible,searchType,showSym } = this.props;
|
|
|
+ const { children,visible,searchType,showSym,searchTop } = this.props;
|
|
|
const { show,showInsp,txt } = this.state;
|
|
|
return (
|
|
|
searchType == 1||searchType == 2?
|
|
@@ -153,10 +153,10 @@ class SearchOption extends React.Component {
|
|
|
<div className={styles.autoList}>
|
|
|
{children}
|
|
|
</div>
|
|
|
- </div>:<div id="searchOption" className={visible?`${styles.search} ${styles.show} ${showSym?styles.isSym:''} searchOption`:`${styles.search} ${styles.hide} searchOption`}>
|
|
|
+ </div>:<div id="searchOption" style={{top:searchTop||'20px'}} className={visible?`${styles.search} ${styles.show} ${showSym?styles.isSym:''} searchOption`:`${styles.search} ${styles.hide} searchOption`}>
|
|
|
<img className={styles.searchVal} src={search} alt="搜索" />
|
|
|
<img style={{display:show?'block':'none'}} className={styles.clearVal} src={clear} onClick={this.handleClearVal} alt="清空" />
|
|
|
- <input
|
|
|
+ <span>{searchType}</span><input
|
|
|
className={this.state.border ?`${styles.border}`:`${styles.borderNone}`}
|
|
|
type="text"
|
|
|
maxLength="30"
|