From 67fa3093ab0b01b57f4772c248962495a9130729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Thu, 9 Mar 2023 15:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/left-menu/index.tsx | 1 + src/index.less | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/compenents/left-menu/index.tsx b/src/compenents/left-menu/index.tsx index d320af8..bd1f21a 100644 --- a/src/compenents/left-menu/index.tsx +++ b/src/compenents/left-menu/index.tsx @@ -85,6 +85,7 @@ export const LeftMenu: React.FC = () => { style={{ width: 200, background: "#ffffff", + }} openKeys={openKeys} onOpenChange={onOpenChange} diff --git a/src/index.less b/src/index.less index 3951a0f..39fadba 100644 --- a/src/index.less +++ b/src/index.less @@ -156,7 +156,10 @@ textarea.ant-input { .none { display: none; } - -.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title { - font-weight: 600 !important; +.ant-menu-title-content { + font-weight: 600; +} + +.ant-menu-item-only-child > .ant-menu-title-content { + font-weight: 400 !important; }