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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
.cl-list {
    margin-bottom: 20rpx;
    overflow: hidden;
    position: relative;
 
    &-item {
        display: flex;
        align-items: center;
        position: relative;
        background-color: #fff;
 
        &.is-append {
            .cl-list__content {
                margin-right: 20rpx;
            }
        }
 
        &.is-disabled {
            background-color: $cl-color-disabled-bg;
            color: $cl-color-disabled;
 
            &:after {
                display: block;
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
            }
        }
 
        &.is-border {
            border-bottom: $cl-border-width solid #f6f7fa;
        }
 
        &.is-swipe {
            overflow: hidden;
        }
 
        &__icon,
        &__label,
        &__append {
            flex-shrink: 0;
            line-height: 1;
        }
 
        &__label,
        &__content,
        &__append {
            display: flex;
            align-items: center;
            min-height: 80rpx;
            font-size: 26rpx;
        }
 
        &__swiper {
            display: flex;
            align-items: center;
            transition: all 0.3s;
            width: 100%;
        }
 
        &__container {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 0 $cl-padding;
            box-sizing: border-box;
        }
 
        &__icon {
            margin-right: 20rpx;
 
            & > image {
                display: block;
                height: 46rpx;
                width: 46rpx;
            }
 
            & > text {
                font-size: 46rpx;
            }
        }
 
        &__label {
            padding: 0 20rpx 0 0;
            font-size: 28rpx;
        }
 
        &__content {
            padding: 10rpx 0;
            flex: 1;
 
            &.is-justify-center {
                justify-content: center;
 
                picker {
                    text-align: center;
                }
            }
 
            &.is-justify-end {
                justify-content: flex-end;
 
                picker {
                    text-align: end;
                }
            }
 
            &.is-justify-space-between {
                justify-content: space-between;
            }
 
            &.is-justify-space-around {
                justify-content: space-around;
            }
 
            &.is-color-primary {
                color: $cl-color-primary;
            }
 
            &.is-color-success {
                color: $cl-color-success;
            }
 
            &.is-color-warning {
                color: $cl-color-warning;
            }
 
            &.is-color-error {
                color: $cl-color-error;
            }
        }
 
        &__append {
            [class^="cl-icon-"] {
                font-size: 30rpx;
                margin-left: 10rpx;
            }
        }
 
        &__menu-left {
            height: 100%;
            transform: translateX(-100%);
            position: absolute;
            left: -1rpx;
            transition: left 0.2s;
        }
 
        &__menu-right {
            height: 100%;
            transform: translateX(100%);
            position: absolute;
            right: -1rpx;
            transition: left 0.2s;
        }
 
        &__menu-left,
        &__menu-right {
            cl-button {
                margin: 0;
            }
 
            .cl-button {
                height: 100% !important;
                border-radius: 0 !important;
                margin: 0;
                padding: 0 40rpx;
            }
 
            /* #ifdef MP */
            & > view {
                height: 100%;
            }
            /* #endif */
        }
    }
}
 
cl-list {
    &:last-child {
        margin-bottom: 0;
    }
}