Commit 6f830703a2607c33e5d25d6d17d0e453fc2fac2e
Committed by
GitHub
1 parent
bfb5ebd7
perf(menu): Optimize the style of the bottom collapse button in the Mix menu layout (#896)
Showing
2 changed files
with
10 additions
and
7 deletions
CHANGELOG.zh_CN.md
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 { | ... | ... |