|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<div :class="`${prefixCls}-dom`" :style="getDomStyle"></div>
|
|
|
-
|
|
|
<div
|
|
|
v-click-outside="handleClickOutside"
|
|
|
:style="getWrapStyle"
|
|
@@ -27,15 +26,15 @@
|
|
|
[`${prefixCls}-module__item--active`]: item.path === activePath,
|
|
|
},
|
|
|
]"
|
|
|
+ v-bind="getItemEvents(item)"
|
|
|
v-for="item in menuModules"
|
|
|
:key="item.path"
|
|
|
- v-bind="getItemEvents(item)"
|
|
|
>
|
|
|
- <MenuTag :item="item" :showTitle="false" :isHorizontal="false" />
|
|
|
+ <SimpleMenuTag :item="item" collapseParent dot />
|
|
|
<Icon
|
|
|
:class="`${prefixCls}-module__icon`"
|
|
|
:size="getCollapsed ? 16 : 20"
|
|
|
- :icon="item.meta && item.meta.icon"
|
|
|
+ :icon="item.icon || (item.meta && item.meta.icon)"
|
|
|
/>
|
|
|
<p :class="`${prefixCls}-module__name`">
|
|
|
{{ t(item.name) }}
|
|
@@ -85,8 +84,8 @@
|
|
|
|
|
|
import { defineComponent, onMounted, ref, computed, unref } from 'vue';
|
|
|
|
|
|
- import { MenuTag } from '/@/components/Menu';
|
|
|
import { ScrollContainer } from '/@/components/Container';
|
|
|
+ import { SimpleMenuTag } from '/@/components/SimpleMenu';
|
|
|
import Icon from '/@/components/Icon';
|
|
|
import { AppLogo } from '/@/components/Application';
|
|
|
import Trigger from '../trigger/HeaderTrigger.vue';
|
|
@@ -111,9 +110,9 @@
|
|
|
ScrollContainer,
|
|
|
AppLogo,
|
|
|
SimpleMenu,
|
|
|
- MenuTag,
|
|
|
Icon,
|
|
|
Trigger,
|
|
|
+ SimpleMenuTag,
|
|
|
},
|
|
|
directives: {
|
|
|
clickOutside,
|
|
@@ -337,8 +336,6 @@
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
@prefix-cls: ~'@{namespace}-layout-mix-sider';
|
|
|
- @tag-prefix-cls: ~'@{namespace}-basic-menu-item-tag';
|
|
|
- @menu-prefix-cls: ~'@{namespace}-menu';
|
|
|
@width: 80px;
|
|
|
.@{prefix-cls} {
|
|
|
position: fixed;
|
|
@@ -349,15 +346,6 @@
|
|
|
overflow: hidden;
|
|
|
background: @sider-dark-bg-color;
|
|
|
transition: all 0.2s ease 0s;
|
|
|
- .@{tag-prefix-cls} {
|
|
|
- position: absolute;
|
|
|
- top: 6px;
|
|
|
- right: 2px;
|
|
|
- }
|
|
|
-
|
|
|
- .@{menu-prefix-cls} {
|
|
|
- width: 100% !important;
|
|
|
- }
|
|
|
|
|
|
&-dom {
|
|
|
height: 100%;
|
|
@@ -420,7 +408,7 @@
|
|
|
&.dark {
|
|
|
&.open {
|
|
|
.@{prefix-cls}-logo {
|
|
|
- border-bottom: 1px solid @border-color;
|
|
|
+ // border-bottom: 1px solid @border-color;
|
|
|
}
|
|
|
|
|
|
> .scrollbar {
|
|
@@ -524,16 +512,6 @@
|
|
|
height: calc(100%);
|
|
|
background: #fff;
|
|
|
transition: all 0.2s;
|
|
|
- .@{tag-prefix-cls} {
|
|
|
- position: absolute;
|
|
|
- top: 10px;
|
|
|
- right: 30px;
|
|
|
-
|
|
|
- &--dot {
|
|
|
- top: 50%;
|
|
|
- margin-top: -3px;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
&__title {
|
|
|
display: flex;
|