diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index e1849bf9d8e92778bbeedaafb3b6ba9793a9fde1..16f9c4790071c24d8be558f71527812acb0e4bf5 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -179,6 +179,7 @@ export default class BaseMenu extends PureComponent { onOpenChange={handleOpenChange} selectedKeys={selectedKeys} style={style} + className={mode === 'horizontal' ? 'top-nav-menu' : ''} {...props} > {this.getNavMenuItems(menuData)} diff --git a/src/components/SiderMenu/index.less b/src/components/SiderMenu/index.less index a0feac3d665e829e229de69f2f8e3da0af92d6f3..550feaff0b5fdc48adf3c143ef42a7b68a1d5b4f 100644 --- a/src/components/SiderMenu/index.less +++ b/src/components/SiderMenu/index.less @@ -62,6 +62,10 @@ } :global { + .top-nav-menu li.ant-menu-item { + height: 64px; + line-height: 64px; + } .drawer .drawer-content { background: #001529; }