From 159698ffbe378f85a012f83209d63b946d609e28 Mon Sep 17 00:00:00 2001 From: xuziqiang <1344691446@qq.com> Date: Mon, 22 Jul 2024 18:02:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/App.vue | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/hx-ai-intelligent/src/App.vue b/hx-ai-intelligent/src/App.vue index 3333c55..72c7ea0 100644 --- a/hx-ai-intelligent/src/App.vue +++ b/hx-ai-intelligent/src/App.vue @@ -128,4 +128,54 @@ } } } + + @min-padding: 5px; + :deep(.ns-left-menu-space):not(.ns-left-menu-space-collapsed) { + .firstMenuItem-selected { + background-color: transparent !important; + } + .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected { + background-color: transparent; + &::before { + background-color: @primary-color; + opacity: 1; + height: calc(100% - @min-padding*2); + top: @min-padding; + border-radius: @ns-border-radius; + } + } + .ant-menu-item-active:not(.ant-menu-item-selected) { + background-color: transparent !important; + position: relative; + &::before { + content: ''; + position: absolute; + width: 100%; + background-color: rgb(@primary-color, 0.1); + height: calc(100% - @min-padding*2); + top: @min-padding; + left: 0; + border-radius: @ns-border-radius; + z-index: 0; + } + } + + // .ant-menu-inline .ant-menu-item-selected::after { + // content: ''; + // position: absolute; + // top: 50%; + // right: -20px; + // transform: translateY(-50%); + // width: 3px !important; + // border-radius: 2px; + // background-color: red; + // height: 30px; + // z-index: 2; + // border: none; + // } + + .ant-menu-title-content { + z-index: 1; + } + }