父节点不显示checkbox
:deep(.el-tree-node) {
.el-tree-node__content {
&:hover {
background-color: rgba(0, 0, 0, 0.5);
}
.el-checkbox {
display: none;
}
.is-leaf + .el-checkbox {
display: inline-flex;
}
.el-checkbox__input {
.el-checkbox__inner {
background-color: rgba(0, 0, 0, 0);
}
}
}
&:focus > .el-tree-node__content {
background-color: rgba(0, 0, 0, 0.5);
}
}