Commit de9e0433 by zhaochengxiang

全文检索资产详情调整样式

parent 7a6932d8
...@@ -83,6 +83,7 @@ export class App extends React.Component { ...@@ -83,6 +83,7 @@ export class App extends React.Component {
onGlobalStateChange onGlobalStateChange
}}> }}>
<AssetDetail <AssetDetail
reference='full-search'
id={id} id={id}
terms={terms} terms={terms}
/> />
......
...@@ -7,7 +7,7 @@ import { dispatch } from '../../../../model'; ...@@ -7,7 +7,7 @@ import { dispatch } from '../../../../model';
const AssetDetail = (props)=>{ const AssetDetail = (props)=>{
const { id, dirId, terms } = props; const { id, dirId, terms, reference = '' } = props;
const [ asset, setAsset ] = useState(''); const [ asset, setAsset ] = useState('');
const [ types, setTypes ] = useState([]); const [ types, setTypes ] = useState([]);
const [ loading, setLoading ] = useState(false); const [ loading, setLoading ] = useState(false);
...@@ -89,7 +89,7 @@ const AssetDetail = (props)=>{ ...@@ -89,7 +89,7 @@ const AssetDetail = (props)=>{
return ( return (
<div key={index}> <div key={index}>
<div className='flex' style={{ alignItems: 'center', padding: '15px 0' }}> <div className='flex' style={{ alignItems: 'center', padding: (reference==='full-search'&&index===0)?'0 0 15px':'15px 0' }}>
<div style={{ width: 3, height: 14, backgroundColor: '#0069AC', marginRight: 5 }} /> <div style={{ width: 3, height: 14, backgroundColor: '#0069AC', marginRight: 5 }} />
<span style={{ fontWeight: 'bold', color: '#464646' }}>{type||''}</span> <span style={{ fontWeight: 'bold', color: '#464646' }}>{type||''}</span>
</div> </div>
......
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