保誠-保戶業務員媒合平台
jack
2025-01-06 e0c6891acc471f9adf2e29b2a5bed3f8337a92b2
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
@import "mixins/mixins";
@import "common/var";
@import "./input";
@import "./popper";
@import "./tag";
@import "./cascader-panel";
 
@include b(cascader) {
  display: inline-block;
  position: relative;
  font-size: $--font-size-base;
  line-height: $--input-height;
 
  &:not(.is-disabled):hover {
    .el-input__inner {
      cursor: pointer;
      border-color: $--input-hover-border;
    }
  }
 
  .el-input {
    cursor: pointer;
 
    .el-input__inner {
      text-overflow: ellipsis;
 
      &:focus {
        border-color: $--input-focus-border;
      }
    }
 
    .el-icon-arrow-down {
      transition: transform .3s;
      font-size: 14px;
 
      @include when(reverse) {
        transform: rotateZ(180deg);
      }
    }
 
    .el-icon-circle-close:hover {
      color: $--input-clear-hover-color;
    }
 
    @include when(focus) {
      .el-input__inner {
        border-color: $--input-focus-border;
      }
    }
  }
 
  @include m(medium) {
    font-size: $--input-medium-font-size;
    line-height: $--input-medium-height;
  }
 
  @include m(small) {
    font-size: $--input-small-font-size;
    line-height: $--input-small-height;
  }
 
  @include m(mini) {
    font-size: $--input-mini-font-size;
    line-height: $--input-mini-height;
  }
 
  @include when(disabled) {
    .el-cascader__label {
      z-index: #{$--index-normal + 1};
      color: $--disabled-color-base;
    }
  }
 
  @include e(dropdown) {
    margin: 5px 0;
    font-size: $--cascader-menu-font-size;
    background: $--cascader-menu-fill;
    border: $--cascader-menu-border;
    border-radius: $--cascader-menu-radius;
    box-shadow: $--cascader-menu-shadow;
  }
 
  @include e(tags) {
    position: absolute;
    left: 0;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    line-height: normal;
    text-align: left;
    box-sizing: border-box;
 
    .el-tag {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      margin: 2px 0 2px 6px;
      text-overflow: ellipsis;
      background: $--cascader-tag-background;
 
      &:not(.is-hit) {
        border-color: transparent;
      }
 
      > span {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
      }
 
      .el-icon-close {
        flex: none;
        background-color: $--color-text-placeholder;
        color: $--color-white;
 
        &:hover {
          background-color: $--color-text-secondary;
        }
      }
    }
  }
 
  @include e(suggestion-panel) {
    border-radius: $--cascader-menu-radius;
  }
 
  @include e(suggestion-list) {
    max-height: 204px;
    margin: 0;
    padding: 6px 0;
    font-size: $--font-size-base;
    color: $--cascader-menu-font-color;
    text-align: center;
  }
 
  @include e(suggestion-item) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    padding: 0 15px;
    text-align: left;
    outline: none;
    cursor: pointer;
 
    &:hover, &:focus {
      background: $--cascader-node-background-hover;
    }
 
    &.is-checked {
      color: $--cascader-menu-selected-font-color;
      font-weight: bold;
    }
 
    > span {
      margin-right: 10px;
    }
  }
 
  @include e(empty-text) {
    margin: 10px 0;
    color: $--cascader-color-empty;
  }
 
  @include e(search-input) {
    flex: 1;
    height: 24px;
    min-width: 60px;
    margin: 2px 0 2px 15px;
    padding: 0;
    color: $--cascader-menu-font-color;
    border: none;
    outline: none;
    box-sizing: border-box;
 
    &::placeholder {
      color: $--color-text-placeholder;
    }
  }
}