refactor: tree菜单位置飘移优化

This commit is contained in:
junjie 2021-08-04 11:57:39 +08:00
parent 85059c5cfa
commit 13576f0d4d
5 changed files with 20 additions and 10 deletions

View File

@ -228,10 +228,12 @@ export default {
padding:0 8px; padding:0 8px;
} }
.father .child { .father .child {
display: none; /*display: none;*/
visibility: hidden;
} }
.father:hover .child { .father:hover .child {
display: inline; /*display: inline;*/
visibility: visible;
} }
.de-filter-tree { .de-filter-tree {
>>>span.is-leaf { >>>span.is-leaf {

View File

@ -1048,10 +1048,12 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.father .child { .father .child {
display: none; /*display: none;*/
visibility: hidden;
} }
.father:hover .child { .father:hover .child {
display: inline; /*display: inline;*/
visibility: visible;
} }
.tree-style { .tree-style {
padding: 10px 15px; padding: 10px 15px;

View File

@ -989,10 +989,12 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.father .child { .father .child {
display: none; /*display: none;*/
visibility: hidden;
} }
.father:hover .child { .father:hover .child {
display: inline; /*display: inline;*/
visibility: visible;
} }
.dialog-css >>> .el-dialog__body { .dialog-css >>> .el-dialog__body {

View File

@ -647,10 +647,12 @@ export default {
} }
.father .child { .father .child {
display: none; /*display: none;*/
visibility: hidden;
} }
.father:hover .child { .father:hover .child {
display: inline; /*display: inline;*/
visibility: visible;
} }
</style> </style>

View File

@ -298,10 +298,12 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.father .child { .father .child {
display: none; /*display: none;*/
visibility: hidden;
} }
.father:hover .child { .father:hover .child {
display: inline; /*display: inline;*/
visibility: visible;
} }
.tree-style { .tree-style {
padding: 10px 15px; padding: 10px 15px;