|
@@ -15,6 +15,10 @@ const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
|
|
|
children,
|
|
|
...others
|
|
|
}) => {
|
|
|
+ const headerHeight = document.querySelector('.ant-page-header-heading')?.clientHeight + 8 || 0
|
|
|
+ const breadcrumbHeight = disableBreadcrumb ? 0 : 50
|
|
|
+ console.log(headerHeight + breadcrumbHeight)
|
|
|
+
|
|
|
return (
|
|
|
<div className={styles.pageContainer}>
|
|
|
<Drawer
|
|
@@ -25,9 +29,9 @@ const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
|
|
|
onClose={() => onVisibleChange(false)}
|
|
|
mask={false}
|
|
|
width="calc(100vw - 256px)"
|
|
|
- style={{ right: '24px', top: `${!disableBreadcrumb ? 72 + 50 : 72}px` }}
|
|
|
+ style={{ right: '24px', top: `${72 + headerHeight + breadcrumbHeight}px` }}
|
|
|
contentWrapperStyle={{
|
|
|
- height: `calc(100vh - 96px ${!disableBreadcrumb ? '- 50px' : ''})`
|
|
|
+ height: `calc(100vh - 96px - ${headerHeight + breadcrumbHeight}px)`
|
|
|
}}
|
|
|
// closeIcon={<Button onClick={() => onVisibleChange(false)}>返回</Button>}>
|
|
|
>
|