-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: antdp-base 菜单为topleft时,组件页和列表页跳转异常
- Loading branch information
1 parent
b1f9a2f
commit 720edd5
Showing
5 changed files
with
27 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,18 +98,16 @@ export default function User() { | |
url: serviceProject, | ||
}); | ||
return ( | ||
<div> | ||
<Card bordered={false}> | ||
<PageHeaderContent | ||
currentUser={{ | ||
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png', | ||
name: 'xxx', | ||
userid: '00000001', | ||
email: '[email protected]', | ||
signature: '海纳百川,有容乃大', | ||
}} | ||
/> | ||
</Card> | ||
</div> | ||
<Card bordered={false}> | ||
<PageHeaderContent | ||
currentUser={{ | ||
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png', | ||
name: 'xxx', | ||
userid: '00000001', | ||
email: '[email protected]', | ||
signature: '海纳百川,有容乃大', | ||
}} | ||
/> | ||
</Card> | ||
); | ||
} |
29 changes: 9 additions & 20 deletions
29
examples/antdp-base/src/pages/Person/PersonalCenter/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,23 @@ | ||
import { Layout, Space } from 'antd'; | ||
import { ProCard } from '@ant-design/pro-components'; | ||
import Contents from './Contents'; | ||
import User from './User'; | ||
const { Sider } = Layout; | ||
|
||
const contentStyle = { | ||
textAlign: 'center', | ||
backgroundColor: '#fff', | ||
}; | ||
const siderStyle = { | ||
textAlign: 'center', | ||
color: '#fff', | ||
backgroundColor: '#fff', | ||
}; | ||
|
||
const App = () => ( | ||
<Space | ||
direction="vertical" | ||
style={{ | ||
width: '100%', | ||
}} | ||
size={[0, 48]} | ||
> | ||
<Layout> | ||
<Sider width={400} style={siderStyle}> | ||
<User /> | ||
</Sider> | ||
<Layout style={contentStyle}> | ||
<Contents /> | ||
</Layout> | ||
</Layout> | ||
</Space> | ||
<ProCard> | ||
<ProCard width={400} style={siderStyle}> | ||
<User /> | ||
</ProCard> | ||
<ProCard style={contentStyle}> | ||
<Contents /> | ||
</ProCard> | ||
</ProCard> | ||
); | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters