Skip to content

Commit 6f83070

Browse files
authored
perf(menu): Optimize the style of the bottom collapse button in the Mix menu layout (#896)
1 parent bfb5ebd commit 6f83070

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.zh_CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### ✨ Features
22

33
- **NoticeList** 添加分页、超长自动省略、标题点击事件、标题删除线等功能
4+
- **MixSider** 优化 Mix 菜单布局时 底部折叠按钮 的样式,与其它菜单布局时的风格保持一致
45

56
### 🐛 Bug Fixes
67

src/layouts/default/sider/MixSider.vue

+9-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
>
1616
<AppLogo :showTitle="false" :class="`${prefixCls}-logo`" />
1717

18-
<Trigger :class="`${prefixCls}-trigger`" />
18+
<LayoutTrigger :class="`${prefixCls}-trigger`" />
1919

2020
<ScrollContainer>
2121
<ul :class="`${prefixCls}-module`">
@@ -86,7 +86,6 @@
8686
import { SimpleMenu, SimpleMenuTag } from '/@/components/SimpleMenu';
8787
import { Icon } from '/@/components/Icon';
8888
import { AppLogo } from '/@/components/Application';
89-
import Trigger from '../trigger/HeaderTrigger.vue';
9089
import { useMenuSetting } from '/@/hooks/setting/useMenuSetting';
9190
import { useDragLine } from './useLayoutSider';
9291
import { useGlobSetting } from '/@/hooks/setting';
@@ -97,6 +96,7 @@
9796
import clickOutside from '/@/directives/clickOutside';
9897
import { getChildrenMenus, getCurrentParentPath, getShallowMenus } from '/@/router/menus';
9998
import { listenerRouteChange } from '/@/logics/mitt/routeChange';
99+
import LayoutTrigger from '../trigger/index.vue';
100100
101101
export default defineComponent({
102102
name: 'LayoutMixSider',
@@ -105,7 +105,7 @@
105105
AppLogo,
106106
SimpleMenu,
107107
Icon,
108-
Trigger,
108+
LayoutTrigger,
109109
SimpleMenuTag,
110110
},
111111
directives: {
@@ -486,17 +486,19 @@
486486
bottom: 0;
487487
left: 0;
488488
width: 100%;
489-
padding: 6px;
490-
padding-left: 12px;
491-
font-size: 18px;
489+
font-size: 14px;
492490
color: rgba(255, 255, 255, 0.65);
491+
text-align: center;
493492
cursor: pointer;
494-
background-color: @sider-dark-bg-color;
493+
background-color: @trigger-dark-bg-color;
494+
height: 36px;
495+
line-height: 36px;
495496
}
496497
497498
&.light &-trigger {
498499
color: rgba(0, 0, 0, 0.65);
499500
background-color: #fff;
501+
border-top: 1px solid #eee;
500502
}
501503
502504
&-menu-list {

0 commit comments

Comments
 (0)