From d254790901f4ceccbc0ecf21af3d4fffac2cdf38 Mon Sep 17 00:00:00 2001 From: peng Date: Thu, 23 Oct 2025 16:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=89=8D=E7=AB=AF=201.=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E6=BF=80=E6=B4=BB=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=202.=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E8=BF=9E=E5=B8=A6=E8=A7=A3=E5=86=B3h1-h6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/layouts/SideBar/SideBarOld.tsx | 11 ----------- .../layouts/SideBar/components/LeftSidebar.tsx | 16 +++------------- crop-x/src/styles/globals.css | 6 ++++++ 3 files changed, 9 insertions(+), 24 deletions(-) diff --git a/crop-x/src/components/layouts/SideBar/SideBarOld.tsx b/crop-x/src/components/layouts/SideBar/SideBarOld.tsx index d3730ea..69a90f2 100644 --- a/crop-x/src/components/layouts/SideBar/SideBarOld.tsx +++ b/crop-x/src/components/layouts/SideBar/SideBarOld.tsx @@ -22,17 +22,6 @@ interface SideBarData { navMain: NavItem[]; } -// 内部菜单项结构(用于LeftSidebar组件) -interface MenuItem { - id: string; - label: string; - icon?: React.ReactNode; - children?: { - id: string; - label: string; - path?: string; - }[]; -} interface SideBarOldProps { children: React.ReactNode; diff --git a/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx b/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx index b8530b1..85872ea 100644 --- a/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx +++ b/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx @@ -53,18 +53,6 @@ export function LeftSidebar({ setExpandedMenus(new Set()); }, [isCollapsed]); - const toggleMenu = (menuId: string) => { - setExpandedMenus(prev => { - const newSet = new Set(prev); - if (newSet.has(menuId)) { - newSet.delete(menuId); - } else { - newSet.add(menuId); - } - return newSet; - }); - }; - return (
child.path && onNavigate(child.path)} > diff --git a/crop-x/src/styles/globals.css b/crop-x/src/styles/globals.css index 368ed14..29295ec 100644 --- a/crop-x/src/styles/globals.css +++ b/crop-x/src/styles/globals.css @@ -318,5 +318,11 @@ body { @apply bg-background text-foreground; } + h2 { + font-size: var(--text-xl); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + } @import "./body.css"; \ No newline at end of file