From a958a388ad5ba68157317858ce60d1535ffc3023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=AD=A3=E5=88=86?= Date: Wed, 15 Oct 2025 14:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=8B=AC=E7=AB=8B=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E4=BE=9B=E5=BA=94=E5=95=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/(commonLayout)/provider/page.tsx | 18 ++++ .../header/account-setting/index.tsx | 93 +++++++++++-------- 2 files changed, 70 insertions(+), 41 deletions(-) create mode 100644 web/app/(commonLayout)/provider/page.tsx diff --git a/web/app/(commonLayout)/provider/page.tsx b/web/app/(commonLayout)/provider/page.tsx new file mode 100644 index 000000000..faac4e5e0 --- /dev/null +++ b/web/app/(commonLayout)/provider/page.tsx @@ -0,0 +1,18 @@ +'use client' + +import React from 'react' +import AccountSetting from '@/app/components/header/account-setting' + +const ProviderPage = () => { + const hideNavMenu = () => { + // 这里可以添加隐藏导航菜单的逻辑 + } + + return ( +
+ +
+ ) +} + +export default ProviderPage diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx index b2a3c8245..c77419f81 100644 --- a/web/app/components/header/account-setting/index.tsx +++ b/web/app/components/header/account-setting/index.tsx @@ -39,6 +39,8 @@ const iconClassName = ` type IAccountSettingProps = { onCancel: () => void activeTab?: string + hideMenu?: boolean + hideCloseButton?: boolean } type GroupItem = { @@ -52,6 +54,8 @@ type GroupItem = { export default function AccountSetting({ onCancel, activeTab = 'members', + hideMenu = false, + hideCloseButton = false, }: IAccountSettingProps) { const [activeMenu, setActiveMenu] = useState(activeTab) const { t } = useTranslation() @@ -149,49 +153,56 @@ export default function AccountSetting({ onClose={onCancel} >
-
-
{t('common.userProfile.settings')}
-
- { - menuItems.map(menuItem => ( -
- {!isCurrentWorkspaceDatasetOperator && ( -
{menuItem.name}
- )} -
- { - menuItem.items.map(item => ( -
setActiveMenu(item.key)} - > - {activeMenu === item.key ? item.activeIcon : item.icon} - {!isMobile &&
{item.name}
} -
- )) - } + {!hideMenu && ( +
+
{t('common.userProfile.settings')}
+
+ { + menuItems.map(menuItem => ( +
+ {!isCurrentWorkspaceDatasetOperator && ( +
{menuItem.name}
+ )} +
+ { + menuItem.items.map(item => ( +
setActiveMenu(item.key)} + > + {activeMenu === item.key ? item.activeIcon : item.icon} + {!isMobile &&
{item.name}
} +
+ )) + } +
-
- )) - } -
-
-
-
- -
ESC
+ )) + } +
+ )} +
+ {!hideCloseButton && ( +
+ +
ESC
+
+ )}