From c497da6947d246395f5568a37f3b65c59d61d173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 31 Mar 2023 10:11:25 +0800 Subject: [PATCH] =?UTF-8?q?tree=E7=BB=84=E4=BB=B6hover=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.less | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/index.less b/src/index.less index fa8330d..6d96318 100644 --- a/src/index.less +++ b/src/index.less @@ -81,7 +81,7 @@ code { margin-left: 15px; } -.ml-24{ +.ml-24 { margin-left: 24px; } @@ -451,30 +451,30 @@ textarea.ant-input { border-radius: 6px !important; overflow: hidden; } + .ant-tree-node-content-wrapper { + width: 100% !important; + height: 40px !important; + display: flex; + align-items: center; + } &:hover { background-color: #fff2f0 !important; border-radius: 6px !important; overflow: hidden; + .ant-tree-node-content-wrapper { + background-color: transparent !important; + } + .ant-tree-node-content-wrapper-normal { + background-color: transparent !important; + } } .ant-tree-node-content-wrapper-normal { width: 100% !important; height: 40px !important; display: flex; align-items: center; - &:hover { - background-color: #fff2f0 !important; - } } - .ant-tree-node-content-wrapper { - width: 100% !important; - height: 40px !important; - display: flex; - align-items: center; - &:hover { - background-color: #fff2f0 !important; - } - } .ant-tree-switcher { height: 40px !important; display: flex;