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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.cl-upload-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -20rpx;
 
    .cl-upload {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: $cl-upload-radius;
        border-width: $cl-border-width;
        border-style: dashed;
        border-color: $cl-border-color;
        box-sizing: border-box;
        position: relative;
        margin-right: 20rpx;
        margin-bottom: 20rpx;
 
        &__add {
            font-size: 50rpx;
            color: #8c939d;
        }
 
        &__target {
            height: 100%;
            width: 100%;
            border-radius: $cl-upload-radius;
        }
 
        &__remove {
            position: absolute;
            right: 0;
            top: 0;
            color: $cl-color-error;
            z-index: 1;
            line-height: normal;
            font-size: 30rpx;
            padding: 10rpx;
        }
 
        &__progress {
            position: absolute;
            left: 10rpx;
            bottom: 6rpx;
            width: calc(100% - 10rpx);
            z-index: 2;
        }
 
        &__demo {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: $cl-color-placeholder;
 
            .cl-icon-camera-fill {
                font-size: 70rpx;
            }
 
            .text {
                font-size: 24rpx;
                line-height: normal;
                margin-top: 10rpx;
            }
        }
    }
 
    &:not(.is-disabled) {
        .cl-upload {
            &:active {
                border-color: $cl-color-primary;
                &__add {
                    color: $cl-color-primary;
                }
            }
        }
    }
 
    &.is-disabled {
        .cl-upload {
            background-color: $cl-color-disabled-bg;
 
            &__add {
                transform: rotate(45deg);
            }
        }
    }
}