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
.cl-form {
    .cl-form-item {
        display: flex;
        margin-bottom: 32rpx;
        position: relative;
        font-size: 28rpx;
 
        &.is-required {
            .cl-form-item__label::after {
                content: "*";
                color: $cl-color-error;
                margin-left: 6rpx;
            }
        }
 
        &__container {
            display: flex;
            align-items: center;
            flex: 1;
        }
 
        &__label {
            height: $cl-height;
            line-height: $cl-height;
            flex-shrink: 0;
            margin-right: 20rpx;
        }
 
        &__content {
            flex: 1;
 
            &.is-justify--left {
                text-align: left;
            }
 
            &.is-justify--center {
                text-align: center;
            }
 
            &.is-justify--end {
                text-align: right;
            }
        }
 
        &__message {
            display: block;
            color: $cl-color-error;
            font-size: 24rpx;
            text-align: right;
            margin-top: 6rpx;
        }
 
        &__append {
            display: flex;
            align-items: center;
            margin-left: 20rpx;
        }
 
        &.is-top {
            flex-direction: column;
 
            .cl-form-item__label {
                margin-right: 0;
                margin-bottom: 10rpx;
            }
        }
 
        &.is-left {
            .cl-form-item__label {
                text-align: left;
            }
        }
 
        &.is-right {
            .cl-form-item__label {
                text-align: right;
            }
        }
    }
 
    &--border {
        .cl-form-item {
            border-bottom: $cl-border-width solid #eeeeee;
        }
    }
}