forked from Gitlink/forgeplus-react
优化搜索
This commit is contained in:
parent
c3ab059ccb
commit
895266f074
|
|
@ -180,6 +180,8 @@ const GlobalSearch = ({ location, showNotification, history, mygetHelmetapi }) =
|
|||
onSearch={searchFun}
|
||||
className={{ 'global-search': true, "required-search": !searchValue }}
|
||||
ref={(el) => setRef(el)}
|
||||
value={searchValue}
|
||||
onChange={(e) => { setSearchValue(e.target.value) }}
|
||||
/>
|
||||
{!searchValue && <span className="ant-form-explain">请输入搜索关键字</span>}
|
||||
</Col>
|
||||
|
|
|
|||
Loading…
Reference in New Issue