Commit 6f830703a2607c33e5d25d6d17d0e453fc2fac2e

Authored by 周旭
Committed by GitHub
1 parent bfb5ebd7

perf(menu): Optimize the style of the bottom collapse button in the Mix menu layout (#896)

CHANGELOG.zh_CN.md
1 1 ### ✨ Features
2 2  
3 3 - **NoticeList** 添加分页、超长自动省略、标题点击事件、标题删除线等功能
  4 +- **MixSider** 优化 Mix 菜单布局时 底部折叠按钮 的样式,与其它菜单布局时的风格保持一致
4 5  
5 6 ### 🐛 Bug Fixes
6 7  
... ...
src/layouts/default/sider/MixSider.vue
... ... @@ -15,7 +15,7 @@
15 15 >
16 16 <AppLogo :showTitle="false" :class="`${prefixCls}-logo`" />
17 17  
18   - <Trigger :class="`${prefixCls}-trigger`" />
  18 + <LayoutTrigger :class="`${prefixCls}-trigger`" />
19 19  
20 20 <ScrollContainer>
21 21 <ul :class="`${prefixCls}-module`">
... ... @@ -86,7 +86,6 @@
86 86 import { SimpleMenu, SimpleMenuTag } from '/@/components/SimpleMenu';
87 87 import { Icon } from '/@/components/Icon';
88 88 import { AppLogo } from '/@/components/Application';
89   - import Trigger from '../trigger/HeaderTrigger.vue';
90 89 import { useMenuSetting } from '/@/hooks/setting/useMenuSetting';
91 90 import { useDragLine } from './useLayoutSider';
92 91 import { useGlobSetting } from '/@/hooks/setting';
... ... @@ -97,6 +96,7 @@
97 96 import clickOutside from '/@/directives/clickOutside';
98 97 import { getChildrenMenus, getCurrentParentPath, getShallowMenus } from '/@/router/menus';
99 98 import { listenerRouteChange } from '/@/logics/mitt/routeChange';
  99 + import LayoutTrigger from '../trigger/index.vue';
100 100  
101 101 export default defineComponent({
102 102 name: 'LayoutMixSider',
... ... @@ -105,7 +105,7 @@
105 105 AppLogo,
106 106 SimpleMenu,
107 107 Icon,
108   - Trigger,
  108 + LayoutTrigger,
109 109 SimpleMenuTag,
110 110 },
111 111 directives: {
... ... @@ -486,17 +486,19 @@
486 486 bottom: 0;
487 487 left: 0;
488 488 width: 100%;
489   - padding: 6px;
490   - padding-left: 12px;
491   - font-size: 18px;
  489 + font-size: 14px;
492 490 color: rgba(255, 255, 255, 0.65);
  491 + text-align: center;
493 492 cursor: pointer;
494   - background-color: @sider-dark-bg-color;
  493 + background-color: @trigger-dark-bg-color;
  494 + height: 36px;
  495 + line-height: 36px;
495 496 }
496 497  
497 498 &.light &-trigger {
498 499 color: rgba(0, 0, 0, 0.65);
499 500 background-color: #fff;
  501 + border-top: 1px solid #eee;
500 502 }
501 503  
502 504 &-menu-list {
... ...