-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 自定义菜单渲染 * fix: 调整布局 --------- Co-authored-by: bailongsen <[email protected]>
- Loading branch information
1 parent
89fcb99
commit c960bbb
Showing
8 changed files
with
198 additions
and
130 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 |
---|---|---|
|
@@ -63,3 +63,7 @@ ol { | |
width: 100%; | ||
} | ||
} | ||
//调整布局底部高度 | ||
.ant-pro-global-footer{ | ||
margin-block-start:auto | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as icons from '@ant-design/icons'; | ||
import React from 'react'; | ||
|
||
const Icon = (props: { icon: string }) => { | ||
const { icon } = props; | ||
const antIcon: { [key: string]: any } = icons; | ||
|
||
if (!antIcon[icon]) { | ||
return null; | ||
} | ||
|
||
return React.createElement(antIcon[icon]); | ||
}; | ||
|
||
export default Icon; |
Oops, something went wrong.