fix: fixed the non draggable element did not hide the draggable icon (#36511)

fix #33708
This commit is contained in:
Wuxh 2022-07-14 18:03:11 +08:00 committed by GitHub
parent 92c8bdc88f
commit 14c7c63bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,21 @@
color: @tree-node-hightlight-color;
font-weight: 500;
}
&-draggable {
.@{custom-tree-prefix-cls}-draggable-icon {
width: @tree-title-height;
line-height: @tree-title-height;
text-align: center;
visibility: visible;
opacity: 0.2;
transition: opacity @animation-duration-slow;
.@{custom-tree-node-prefix-cls}:hover & {
opacity: 0.45;
}
}
}
}
// >>> Indent
@ -133,15 +148,7 @@
// >>> Drag Handler
&-draggable-icon {
width: @tree-title-height;
line-height: @tree-title-height;
text-align: center;
opacity: 0.2;
transition: opacity @animation-duration-slow;
.@{custom-tree-node-prefix-cls}:hover & {
opacity: 0.45;
}
visibility: hidden;
}
// >>> Switcher