Commit 4093d332 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

Merge branch 'v2-220418' of…

Merge branch 'v2-220418' of https://gitlab.shushangyun.com/linkseeks-design/pro-platform into fix-220418
parents 244f5512 85da2b56
...@@ -35,6 +35,7 @@ export default { ...@@ -35,6 +35,7 @@ export default {
// Layout // Layout
'@layout-header-height': '48px', '@layout-header-height': '48px',
'@border-radius-base': '4px',
// PageHeader // PageHeader
// '@page-header-padding': '8px 24px', // 这里替换会出现前边拼接了 '6px 8px 24px'这样,所以直接改成修改样式好了 // '@page-header-padding': '8px 24px', // 这里替换会出现前边拼接了 '6px 8px 24px'这样,所以直接改成修改样式好了
} }
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
"start:v2-220318": "cross-env PRO_ENV=v2-220318 yarn start", "start:v2-220318": "cross-env PRO_ENV=v2-220318 yarn start",
"start:v2-220418": "cross-env PRO_ENV=v2-220418 yarn start", "start:v2-220418": "cross-env PRO_ENV=v2-220418 yarn start",
"start-fast": "cross-env NODE_OPTIONS=--max_old_space_size=4096 UMI_ENV=local umi dev", "start-fast": "cross-env NODE_OPTIONS=--max_old_space_size=4096 UMI_ENV=local umi dev",
"start-fast:v2-220418": "cross-env PRO_ENV=v2-220418 yarn start-fast" "start-fast:v2-220418": "cross-env PRO_ENV=v2-220418 yarn start-fast",
"start:ali": "cross-env PRO_ENV=v2-ali-demo yarn start"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,less,md,json}": [ "*.{js,jsx,less,md,json}": [
......
...@@ -116,6 +116,8 @@ const AnchorPage = (props: IProps) => { ...@@ -116,6 +116,8 @@ const AnchorPage = (props: IProps) => {
targetOffset={rect.height} targetOffset={rect.height}
onChange={handleAnchorChange} onChange={handleAnchorChange}
onClick={handleAnchorClick} onClick={handleAnchorClick}
getContainer={() => document.querySelector('main.ant-pro-basicLayout-content') as HTMLElement}
// getContainer={() => document.getElementsByTagName('main')[0]}
> >
<div className={styles['anchor-page-header-main']}> <div className={styles['anchor-page-header-main']}>
<div className={styles['anchor-page-header-left']}> <div className={styles['anchor-page-header-left']}>
......
...@@ -401,3 +401,28 @@ ...@@ -401,3 +401,28 @@
font-size: 8px; font-size: 8px;
} }
} }
.ant-pro-basicLayout {
height: 100%;
}
.ant-layout-sider-children {
display: flex;
flex-direction: column;
}
main.ant-pro-basicLayout-content {
height: 100%;
margin: 0;
padding: 24px;
overflow-y: scroll;
}
main.ant-pro-basicLayout-content-disable-margin {
padding: 0;
}
.ant-layout-header+div {
overflow-y: hidden;
min-height: initial !important;
}
\ No newline at end of file
...@@ -4,7 +4,7 @@ import ProLayout, { ...@@ -4,7 +4,7 @@ import ProLayout, {
Settings, Settings,
DefaultFooter, DefaultFooter,
getMenuData, getMenuData,
getPageTitle getPageTitle,
} from '@ant-design/pro-layout'; } from '@ant-design/pro-layout';
import React, { useState, useEffect, useLayoutEffect, useMemo } from 'react'; import React, { useState, useEffect, useLayoutEffect, useMemo } from 'react';
import { Link, useIntl, Helmet } from 'umi'; import { Link, useIntl, Helmet } from 'umi';
...@@ -158,7 +158,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -158,7 +158,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
<ProLayout <ProLayout
pageTitleRender={() => currentRouter ? currentRouter.name : window.location.href} pageTitleRender={() => currentRouter ? currentRouter.name : window.location.href}
// contentStyle={{minWidth: '1280px'}} // contentStyle={{minWidth: '1280px'}}
style={prolayoutStyle} // style={prolayoutStyle}
logo={logo} logo={logo}
// formatMessage={formatMessage} // formatMessage={formatMessage}
menuHeaderRender={(logoDom, titleDom) => ( menuHeaderRender={(logoDom, titleDom) => (
...@@ -183,17 +183,17 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -183,17 +183,17 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
currentRouter={currentRouter} currentRouter={currentRouter}
changeOpenKeys={(keys: string[]) => setOpenKeys(keys)} changeOpenKeys={(keys: string[]) => setOpenKeys(keys)}
/>} />}
footerRender={() => defaultFooterDom} // footerRender={() => defaultFooterDom}
rightContentRender={() => <RightContent isHome={isHome} />} rightContentRender={() => <RightContent isHome={isHome} />}
{...props} {...props}
{...settings} {...settings}
> >
{children} {children}
</ProLayout> </ProLayout>
); );
}; };
export default BasicLayout export default BasicLayout
// export default connect(({ global, settings }: ConnectState) => ({ // export default connect(({ global, settings }: ConnectState) => ({
// collapsed: global.collapsed, // collapsed: global.collapsed,
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
max-width: 0 !important; max-width: 0 !important;
min-width: 0 !important; min-width: 0 !important;
width: 0 !important; width: 0 !important;
height: 100%;
overflow: hidden;
} }
} }
...@@ -138,12 +140,24 @@ ...@@ -138,12 +140,24 @@
.wrapperSilder { .wrapperSilder {
background-color: #38414A !important; background-color: #38414A !important;
min-height: 100vh; height: 100%;
overflow: hidden;
:global {
.ant-layout-sider-children {
display: flex;
flex-direction: column;
}
}
.menuBox { .menuBox {
padding: 0; flex: 1;
margin: 0;
padding: 24px 0 0 0;
box-sizing: border-box;
text-align: center; text-align: center;
padding-top: 24px; overflow-y: scroll;
list-style: none;
li { li {
padding: 8px 0; padding: 8px 0;
...@@ -224,6 +238,10 @@ ...@@ -224,6 +238,10 @@
} }
.menuSlider { .menuSlider {
flex: 1;
overflow-y: scroll;
overflow-x: hidden;
border-right: 1px solid #fff;
.ant-menu-submenu-title { .ant-menu-submenu-title {
height: 48px !important; height: 48px !important;
......
...@@ -7,8 +7,11 @@ ...@@ -7,8 +7,11 @@
<link rel="icon" type="image/x-icon" href="/static/imgs/Fav.jpg" /> <link rel="icon" type="image/x-icon" href="/static/imgs/Fav.jpg" />
</head> </head>
<body> <!-- <body >
<div id="root"></div> <div id="root"></div>
</body> -->
<body style="height: 100%; overflow: hidden;">
<div id="root" style="height: 100%; overflow: hidden;"></div>
</body> </body>
</html> </html>
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