From 3357b5f0f0919f7a52cd32a6d6de0acb14e0daaf Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期二, 17 十二月 2024 17:29:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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