2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
|
|
|
@import "common/var";
|
|
|
|
|
|
|
|
@include b(tree) {
|
|
|
|
cursor: default;
|
|
|
|
background: $--color-white;
|
2017-09-14 03:34:26 +00:00
|
|
|
color: $--tree-text-color;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
@include e(empty-block) {
|
|
|
|
position: relative;
|
|
|
|
min-height: 60px;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(empty-text) {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
color: mix($--color-primary, rgb(158, 68, 0), 50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(tree-node) {
|
|
|
|
white-space: nowrap;
|
2017-11-09 03:19:52 +00:00
|
|
|
outline: none;
|
|
|
|
&:focus { /* focus */
|
|
|
|
> .el-tree-node__content {
|
|
|
|
background-color: $--tree-node-hover-color;
|
|
|
|
}
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
@include e(content) {
|
2017-09-14 03:34:26 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 26px;
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
& > .el-tree-node__expand-icon {
|
2017-10-31 08:53:36 +00:00
|
|
|
padding: 6px;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
& > .el-checkbox {
|
2017-09-14 03:34:26 +00:00
|
|
|
margin-right: 8px;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
&:hover {
|
2017-09-14 03:34:26 +00:00
|
|
|
background-color: $--tree-node-hover-color;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(expand-icon) {
|
|
|
|
cursor: pointer;
|
2017-10-31 08:53:36 +00:00
|
|
|
color: $--tree-expand-icon-color;
|
|
|
|
font-size: 12px;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
|
|
|
|
&.expanded {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-leaf {
|
2017-10-31 08:53:36 +00:00
|
|
|
color: transparent;
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(label) {
|
|
|
|
font-size: $--font-size-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(loading-icon) {
|
2017-09-14 03:34:26 +00:00
|
|
|
margin-right: 8px;
|
2017-08-23 10:07:14 +00:00
|
|
|
font-size: $--font-size-base;
|
2017-09-14 03:34:26 +00:00
|
|
|
color: $--tree-expand-icon-color;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > .el-tree-node__children {
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-expanded > .el-tree-node__children {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
|
2017-09-14 04:14:35 +00:00
|
|
|
background-color: mix($--color-white, $--color-primary, 92%);
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|