From 174b2a4d1dee3fd82fe9833f703b011bb2c83231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Wed, 22 Oct 2025 18:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=8A=A0Tooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layout/sidebar.tsx | 57 +++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx index 293c687..e0ad80d 100644 --- a/components/layout/sidebar.tsx +++ b/components/layout/sidebar.tsx @@ -8,6 +8,7 @@ import { PanelRightClose } from 'lucide-react'; import { navigationItems } from './type'; +import { Tooltip } from "antd"; interface SidebarProps { collapsed: boolean; @@ -31,18 +32,20 @@ export function Sidebar({ collapsed, onToggle }: SidebarProps) {
{/* Toggle Button */}
- + + +
{/* Navigation */} @@ -52,20 +55,22 @@ export function Sidebar({ collapsed, onToggle }: SidebarProps) { {section.items.map((item) => { const isActive = pathname === item.href; return ( - - - + + + + + ); })}