ny
22 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.jnpf-tree {
  background-color: var(--component-background);
 
  &.remove-active-tree {
    .ant-tree .ant-tree-treenode.ant-tree-treenode-selected {
      background-color: var(--selected-hover-bg);
    }
  }
 
  .ant-tree {
    .ant-tree-treenode {
      padding: 0;
 
      &:hover {
        background-color: var(--selected-hover-bg);
      }
 
      &.ant-tree-treenode-selected {
        background-color: var(--tree-node-selected-bg);
      }
    }
 
    .ant-tree-switcher {
      line-height: 32px;
 
      .ant-tree-switcher-icon {
        vertical-align: 0.25em;
        color: var(--text-color-quaternary);
      }
    }
 
    .ant-tree-checkbox {
      margin: 8px 8px 0 0;
      margin-block-start: 0 !important;
    }
 
    .ant-tree-node-content-wrapper {
      position: relative;
      height: 32px;
      line-height: 32px;
 
      &:hover,
      &.ant-tree-node-selected {
        background-color: unset !important;
      }
 
      .ant-tree-title {
        position: absolute;
        left: 0;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
 
  &__title {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 10px;
 
    &:hover {
      .jnpf-tree__action {
        display: block;
      }
 
      .jnpf-tree__actions:not(:empty) + .jnpf-tree__extra {
        display: none;
      }
    }
  }
 
  &__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
 
  &__content {
    overflow: hidden;
  }
 
  &__extra {
    display: block;
  }
 
  &__actions {
    display: flex;
  }
 
  &__action {
    display: none;
    margin-left: 4px;
  }
 
  &-header {
    border-bottom: 1px solid var(--border-color-base);
  }
 
  .ant-empty-normal {
    padding: 32px 0;
    margin: 0 !important;
  }
}