1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| @tree-prefix-cls: ~'@{namespace}-tree';
|
| .@{tree-prefix-cls} {
| background-color: @component-background;
|
| .ant-tree {
| .ant-tree-checkbox {
| margin-block-start: 0;
| margin-inline: 4px 4px;
|
| & + span {
| padding-left: 4px;
| }
| }
| }
|
| .ant-tree-node-content-wrapper {
| position: relative;
|
| .ant-tree-title {
| overflow: hidden;
| text-overflow: ellipsis;
| white-space: nowrap;
| }
| }
|
| &__title {
| display: flex;
| position: relative;
| align-items: center;
| width: 100%;
| padding-right: 10px;
|
| &:hover {
| .@{tree-prefix-cls}__action {
| visibility: visible;
| }
| }
| }
|
| &__content {
| overflow: hidden;
| }
|
| &__actions {
| display: flex;
| position: absolute;
| //top: 2px;
| right: 3px;
| }
|
| &__action {
| visibility: hidden;
| margin-left: 4px;
| }
|
| &-header {
| border-bottom: 1px solid @border-color-base;
| }
| }
|
|