From cf1fb16638f357dab55a77fd4d24880549aebab2 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 30 Mar 2022 14:21:25 +0800 Subject: [PATCH] fix(client): auto collapse menu items when overflow --- .../route-switch/antd/admin-layout/index.tsx | 64 +++++----- .../src/schema-component/antd/menu/Menu.tsx | 118 ++++++++++-------- 2 files changed, 98 insertions(+), 84 deletions(-) diff --git a/packages/client/src/route-switch/antd/admin-layout/index.tsx b/packages/client/src/route-switch/antd/admin-layout/index.tsx index e6264570b..d5bd104db 100644 --- a/packages/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/client/src/route-switch/antd/admin-layout/index.tsx @@ -13,7 +13,7 @@ import { RemoteSchemaTemplateManagerProvider, useDocumentTitle, useRoute, - useSystemSettings, + useSystemSettings } from '../../../'; const InternalAdminLayout = (props: any) => { @@ -58,36 +58,42 @@ const InternalAdminLayout = (props: any) => { /> {/* {result?.data?.data?.title} */} -