forked from gzzfw/frontEnd/gzDyh

xusd
2024-09-18 3ae864f005e8a874de01c15e14b83196a3f6f11b
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
@import '../../styles/theme.less';
 
.tree {
    height: 100%;
    overflow-y: auto;
 
    &-item {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        position: relative;
 
        &::after {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            border-right: 3px solid @main-color;
            transform: scaleY(0.0001);
            opacity: 0;
            transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
            content: '';
        }
 
        &-leftIcon {
            margin-right: 8px;
            font-size: 16px;
            transition: transform 0.5s;
        }
 
        &-rotate {
            transform: rotate(-90deg);
        }
 
        &-title {
            flex: 1;
            padding-right: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
 
            &:hover {
                cursor: pointer;
                color: @main-color;
            }
        }
 
        .tree-item-rightIcon {
            font-size: 22px;
            font-weight: 600;
            display: none;
        }
    }
 
    &-itemActive {
        color: @main-color;
        background-color: @main-color-1;
 
        &::after {
            transform: scaleY(1);
            opacity: 1;
            transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
        }
    }
}