|
@@ -7,6 +7,7 @@
|
|
|
<template v-if="navMenu.meta.icon" #icon>
|
|
|
<component :is="navMenu.meta.icon" />
|
|
|
</template>
|
|
|
+
|
|
|
<a
|
|
|
v-if="navMenu.meta && navMenu.meta.type === 'link'"
|
|
|
:href="navMenu.path"
|
|
@@ -14,7 +15,7 @@
|
|
|
@click.stop="() => {}"
|
|
|
>{{ navMenu.meta.title }}</a
|
|
|
>
|
|
|
- <a v-else>{{ navMenu.meta.title }}</a>
|
|
|
+ <a v-else> {{ navMenu.meta.title }}</a>
|
|
|
</a-menu-item>
|
|
|
<a-sub-menu v-else-if="!hasHidden(navMenu)" :key="navMenu.path" :title="navMenu.meta.title">
|
|
|
<template v-if="navMenu.meta.icon" #icon>
|
|
@@ -46,7 +47,7 @@
|
|
|
return false
|
|
|
}
|
|
|
</script>
|
|
|
-<style>
|
|
|
+<style lang="less">
|
|
|
.ant-menu-light.ant-menu-horizontal > .ant-menu-submenu-selected {
|
|
|
background-color: var(--primary-1);
|
|
|
}
|
|
@@ -62,4 +63,69 @@
|
|
|
.xn-pd20 {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
+
|
|
|
+ /* 经典模式子菜单 */
|
|
|
+ .ant-menu-dark.ant-menu-inline ul {
|
|
|
+ width: 95%;
|
|
|
+ margin: 0 0 0 5%;
|
|
|
+ background-color: #1b1c1e !important;
|
|
|
+
|
|
|
+ li {
|
|
|
+ width: 90%;
|
|
|
+ margin: -2px 0 0 20px;
|
|
|
+ position: relative;
|
|
|
+ padding-left: 20px !important;
|
|
|
+ border-left: 1px solid #c3c4c5 !important;
|
|
|
+ transition:
|
|
|
+ background-color 0.3s ease,
|
|
|
+ border 0.3s ease;
|
|
|
+
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ .ant-menu-item-icon {
|
|
|
+ height: 100%;
|
|
|
+ padding: 10% 10px !important;
|
|
|
+ }
|
|
|
+ .ant-menu-title-content {
|
|
|
+ margin: 0 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ li::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: -10px;
|
|
|
+ left: -2px;
|
|
|
+ width: 19px;
|
|
|
+ height: 30px;
|
|
|
+ transform: rotate(11deg) !important;
|
|
|
+ border-bottom: 1px solid #c3c4c5;
|
|
|
+ border-bottom-left-radius: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 选中时候的样式
|
|
|
+
|
|
|
+ .ant-menu-item-selected {
|
|
|
+ span {
|
|
|
+ background-color: #272a31;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ .ant-menu-item-icon {
|
|
|
+ height: 100%;
|
|
|
+ padding: 8% 10px !important;
|
|
|
+ border-top-left-radius: 10px;
|
|
|
+ border-bottom-left-radius: 10px;
|
|
|
+ }
|
|
|
+ .ant-menu-title-content {
|
|
|
+ margin: 0 !important;
|
|
|
+ border-top-right-radius: 10px;
|
|
|
+ border-bottom-right-radius: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 选中时候的样式
|
|
|
+ .ant-menu-dark .ant-menu-item-selected {
|
|
|
+ background-color: none !important;
|
|
|
+ }
|
|
|
</style>
|