Commit 102b70bb by zhaochengxiang

资产搜索框调整

parent 028dbe6b
...@@ -344,6 +344,20 @@ svg { ...@@ -344,6 +344,20 @@ svg {
} }
} }
.yy-input-search {
.anticon-search {
svg {
fill: #fff !important;
}
&:hover {
svg {
fill: #fff !important;
}
}
}
}
.primary-bg-container { .primary-bg-container {
background-color: #196AD2; background-color: #196AD2;
} }
......
...@@ -14,13 +14,11 @@ import { dispatch, dispatchLatestHomepage } from '../../../../model'; ...@@ -14,13 +14,11 @@ import { dispatch, dispatchLatestHomepage } from '../../../../model';
import { showMessage, showNotifaction, getQueryParam, inputWidth, isSzseEnv } from '../../../../util'; import { showMessage, showNotifaction, getQueryParam, inputWidth, isSzseEnv } from '../../../../util';
import { AnchorId, AnchorTimestamp, AssetBrowseReference, AssetManageReference, AssetRecycleReference, ResourceBrowseReference } from '../../../../util/constant'; import { AnchorId, AnchorTimestamp, AssetBrowseReference, AssetManageReference, AssetRecycleReference, ResourceBrowseReference } from '../../../../util/constant';
import { FullScreenSvg, CancelFullScreenSvg } from './AssetSvg'; import { FullScreenSvg, CancelFullScreenSvg } from './AssetSvg';
import DebounceInput from '../../Model/Component/DebounceInput';
import "./AssetTable.less"; import "./AssetTable.less";
const { Text } = Typography; const { Text } = Typography;
const { Search } = Input;
const InputDebounce = DebounceInput(300)(Input);
//资产项 //资产项
const AssetItem = (props) => { const AssetItem = (props) => {
...@@ -145,7 +143,6 @@ const AssetTable = (props) => { ...@@ -145,7 +143,6 @@ const AssetTable = (props) => {
useEffect(() => { useEffect(() => {
if ((nodeId||'') !== '' ) { if ((nodeId||'') !== '' ) {
setKeyword('');
setSelectItem({}); setSelectItem({});
setCheckedKeys([]); setCheckedKeys([]);
...@@ -616,11 +613,11 @@ const AssetTable = (props) => { ...@@ -616,11 +613,11 @@ const AssetTable = (props) => {
{ {
(reference!==AssetRecycleReference) && <Checkbox onChange={onFullSearchChange} checked={fullSearch}>全部数据</Checkbox> (reference!==AssetRecycleReference) && <Checkbox onChange={onFullSearchChange} checked={fullSearch}>全部数据</Checkbox>
} }
<InputDebounce <Search
placeholder="请输入资产要素值" placeholder="请输入资产要素值"
allowClear allowClear
value={keyword} onSearch={onSearchInputChange}
onChange={onSearchInputChange} enterButton
style={{ width: inputWidth }} style={{ width: inputWidth }}
/> />
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment