.cip-tree{ height: 100%; display: flex; flex-direction: column; .filter-tree.el-tree--highlight-current{ .el-tree-node:not(.is-current):focus>.el-tree-node__content{ background: transparent; } .el-tree-node.is-current{ color: @primary; } } &__header { display: flex; .el-button { flex: 1; margin: 0; } } &__filter{ padding-top: 0px; } &__scrollbar{ flex: 1; } .custom-tree-node{ flex: 1; display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding-right: 8px; position: relative; overflow: hidden; .operation { display: none; position: absolute; right: 0px; padding-right: 8px; background: #f0f7ff; } .view-node { position: absolute; right: 0px; padding-right: 8px; } &__text{ display: inline-block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } &:hover { .operation { margin-left: 10px; display: inline-block !important; } } } }