feat(theme): 调整布局和主题配置- 将布局风格从 side 调整为 mix

- 设置固定顶栏为 false
- 启用 logo 自适应宽度
-顶栏菜单标题样式调整为居中显示
This commit is contained in:
2025-10-31 23:08:01 +08:00
parent bcc17f5887
commit b45e967da4
2 changed files with 7 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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,
// 侧栏是否只保持一个子菜单展开