From b45e967da42f1fcc15603dc31eeaf6639f3de332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 31 Oct 2025 23:08:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(theme):=20=E8=B0=83=E6=95=B4=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=92=8C=E4=B8=BB=E9=A2=98=E9=85=8D=E7=BD=AE-=20?= =?UTF-8?q?=E5=B0=86=E5=B8=83=E5=B1=80=E9=A3=8E=E6=A0=BC=E4=BB=8E=20side?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E4=B8=BA=20mix=20-=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E9=A1=B6=E6=A0=8F=E4=B8=BA=20false=20-=20?= =?UTF-8?q?=E5=90=AF=E7=94=A8=20logo=20=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=20-=E9=A1=B6=E6=A0=8F=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 4 ++++ src/store/modules/theme.ts | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 08a4cc7..171f268 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -311,6 +311,10 @@ } // 顶栏菜单标题中样式调整 + .ele-admin-header-nav{ + display: flex; + justify-content: center; + } .ele-admin-header-nav > .ant-menu { & > .ant-menu-item, & > .ant-menu-submenu > .ant-menu-submenu-title { diff --git a/src/store/modules/theme.ts b/src/store/modules/theme.ts index ebee743..87e7b7b 100644 --- a/src/store/modules/theme.ts +++ b/src/store/modules/theme.ts @@ -49,7 +49,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 侧栏风格: light(亮色), dark(暗色) sideStyle: 'light', // 布局风格: side(默认), top(顶栏导航), mix(混合导航) - layoutStyle: 'side', + layoutStyle: 'mix', // 侧栏菜单风格: default(默认), mix(双排侧栏) sideMenuStyle: 'default', // 页签风格: default(默认), dot(圆点), card(卡片) @@ -57,7 +57,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 路由切换动画 transitionName: 'fade', // 是否固定顶栏 - fixedHeader: true, + fixedHeader: false, // 是否固定侧栏 fixedSidebar: true, // 是否固定主体 @@ -65,7 +65,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 内容区域宽度铺满 bodyFull: true, // logo 是否自适应宽度 - logoAutoSize: false, + logoAutoSize: true, // 侧栏是否彩色图标 colorfulIcon: false, // 侧栏是否只保持一个子菜单展开