From d584e0a9521eba2dc6f66b0590217bbc8dec23e7 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期二, 31 十二月 2024 18:44:38 +0800 Subject: [PATCH] 调度模型下发配置 --- src/layout/components/Menu/src/Menu.vue | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/layout/components/Menu/src/Menu.vue b/src/layout/components/Menu/src/Menu.vue index 466cca5..94a1da4 100644 --- a/src/layout/components/Menu/src/Menu.vue +++ b/src/layout/components/Menu/src/Menu.vue @@ -90,6 +90,11 @@ backgroundColor="var(--left-menu-bg-color)" textColor="var(--left-menu-text-color)" activeTextColor="var(--left-menu-text-active-color)" + popperClass={ + unref(menuMode) === 'vertical' + ? `${prefixCls}-popper--vertical` + : `${prefixCls}-popper--horizontal` + } onSelect={menuSelect} > {{ @@ -190,6 +195,16 @@ } } + // 垂直菜单 + &__vertical { + :deep(.#{$elNamespace}-menu--vertical) { + &:not(.#{$elNamespace}-menu--collapse) .#{$elNamespace}-sub-menu__title, + .#{$elNamespace}-menu-item { + padding-right: 0; + } + } + } + // 水平菜单 &__horizontal { height: calc(var(--top-tool-height)) !important; -- Gitblit v1.9.3