tree组件hover调整

This commit is contained in:
禺狨 2023-03-31 10:11:25 +08:00
parent 3a1be89041
commit c497da6947

View File

@ -81,7 +81,7 @@ code {
margin-left: 15px; margin-left: 15px;
} }
.ml-24{ .ml-24 {
margin-left: 24px; margin-left: 24px;
} }
@ -451,30 +451,30 @@ textarea.ant-input {
border-radius: 6px !important; border-radius: 6px !important;
overflow: hidden; overflow: hidden;
} }
.ant-tree-node-content-wrapper {
width: 100% !important;
height: 40px !important;
display: flex;
align-items: center;
}
&:hover { &:hover {
background-color: #fff2f0 !important; background-color: #fff2f0 !important;
border-radius: 6px !important; border-radius: 6px !important;
overflow: hidden; 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 { .ant-tree-node-content-wrapper-normal {
width: 100% !important; width: 100% !important;
height: 40px !important; height: 40px !important;
display: flex; display: flex;
align-items: center; 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 { .ant-tree-switcher {
height: 40px !important; height: 40px !important;
display: flex; display: flex;