wangzhibo
4 天以前 10595d8632f959d0954d1939243196f4eed02372
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
.cl-progress {
    display: flex;
    align-items: center;
    min-height: 34rpx;
 
    &-bar {
        box-sizing: border-box;
        flex: 1;
 
        &__outer {
            border-radius: 50rpx;
            overflow: hidden;
            position: relative;
        }
 
        &__inner {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            background-color: $cl-color-primary;
            text-align: right;
            border-radius: 50rpx;
            line-height: 1;
            white-space: nowrap;
            transition: width 0.6s ease;
        }
    }
 
    &__text {
        display: inline-block;
        height: 34rpx;
        width: 100rpx;
        line-height: 34rpx;
        color: #606266;
        font-size: 24rpx;
        text-align: left;
        margin-left: 10rpx;
    }
 
    &__icon {
        font-size: 30rpx;
    }
 
    &.is-success {
        .cl-progress-bar__inner {
            background-color: $cl-color-success;
        }
 
        .cl-progress__text {
            color: $cl-color-success;
        }
    }
 
    &.is-warning {
        .cl-progress-bar__inner {
            background-color: $cl-color-warning;
        }
 
        .cl-progress__text {
            color: $cl-color-warning;
        }
    }
 
    &.is-error {
        .cl-progress-bar__inner {
            background-color: $cl-color-error;
        }
 
        .cl-progress__text {
            color: $cl-color-error;
        }
    }
}