We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaf24d commit 60bafa0Copy full SHA for 60bafa0
src/layouts/BasicLayout/components/SideMenu.tsx
@@ -43,7 +43,8 @@ export default defineComponent({
43
router.push(e.key);
44
};
45
46
- const getIcon = (type?: string) => (type ? <Icon type={type} /> : null);
+ const getIcon = (type?: string) =>
47
+ type ? <Icon type={type} className="sideMenu-icon" /> : null;
48
49
// 构建树结构
50
const makeTreeDom = (data: MenuDataItem[]): JSX.Element[] => {
src/layouts/BasicLayout/components/index.less
@@ -24,4 +24,7 @@
24
color: #3860f4;
25
}
26
27
+ .sideMenu-icon {
28
+ vertical-align: 1px;
29
+ }
30
0 commit comments