refactor: advance collapse
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import IconFont from '@/components/icon-font';
|
||||
import SimpleOverlay from '@/components/simple-overlay';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Button, Empty, Spin } from 'antd';
|
||||
@@ -121,7 +120,7 @@ const SearchResult: React.FC<SearchResultProps> = (props) => {
|
||||
}, [networkError, source, intl]);
|
||||
|
||||
return (
|
||||
<SimpleOverlay style={{ height: 'calc(100vh - 224px)' }}>
|
||||
<>
|
||||
<div style={{ ...props.style }} className="search-result-wrap">
|
||||
<Spin spinning={props.loading}>
|
||||
<div style={{ minHeight: 200 }}>
|
||||
@@ -167,7 +166,7 @@ const SearchResult: React.FC<SearchResultProps> = (props) => {
|
||||
</div>
|
||||
</Spin>
|
||||
</div>
|
||||
</SimpleOverlay>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user