@kdcloudjs/kdesign 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/kdesign-complete.less +1125 -926
  3. package/dist/kdesign.css +485 -432
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +516 -251
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +4 -4
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/usePopper.js +37 -16
  11. package/es/anchor/anchor.js +0 -6
  12. package/es/anchor/style/index.css +5 -2
  13. package/es/anchor/style/index.less +6 -2
  14. package/es/anchor/style/token.less +2 -1
  15. package/es/button/button.d.ts +1 -1
  16. package/es/button/button.js +2 -2
  17. package/es/button/group.d.ts +21 -0
  18. package/es/button/group.js +130 -0
  19. package/es/button/index.d.ts +5 -1
  20. package/es/button/index.js +4 -1
  21. package/es/button/style/index.css +117 -21
  22. package/es/button/style/index.less +332 -192
  23. package/es/button/style/token.less +41 -25
  24. package/es/carousel/carousel.js +4 -0
  25. package/es/checkbox/checkbox.js +3 -4
  26. package/es/checkbox/style/index.css +36 -33
  27. package/es/checkbox/style/index.less +25 -18
  28. package/es/checkbox/style/token.less +34 -35
  29. package/es/collapse/panel.d.ts +1 -0
  30. package/es/collapse/panel.js +17 -5
  31. package/es/collapse/style/index.css +32 -6
  32. package/es/collapse/style/index.less +24 -1
  33. package/es/collapse/style/token.less +12 -10
  34. package/es/config-provider/compDefaultProps.d.ts +4 -0
  35. package/es/config-provider/compDefaultProps.js +4 -0
  36. package/es/drawer/drawer.d.ts +1 -0
  37. package/es/drawer/drawer.js +56 -21
  38. package/es/empty/defaultEmptyImg.js +5 -3
  39. package/es/empty/illustrationEmptyImg.js +6 -4
  40. package/es/icon/interface.js +1 -1
  41. package/es/image/preview.js +1 -1
  42. package/es/image/style/index.css +8 -8
  43. package/es/image/style/index.less +5 -5
  44. package/es/image/style/token.less +12 -25
  45. package/es/input/style/index.css +53 -50
  46. package/es/input/style/index.less +5 -4
  47. package/es/input/style/mixin.less +1 -0
  48. package/es/input/style/token.less +23 -20
  49. package/es/layout/style/index.css +1 -1
  50. package/es/layout/style/index.less +1 -1
  51. package/es/layout/style/token.less +5 -5
  52. package/es/menu/menu.js +1 -1
  53. package/es/menu/style/index.css +37 -31
  54. package/es/menu/style/index.less +14 -0
  55. package/es/menu/style/mixin.less +1 -1
  56. package/es/menu/style/token.less +13 -16
  57. package/es/pagination/pagination.js +4 -4
  58. package/es/pagination/style/index.css +70 -55
  59. package/es/pagination/style/index.less +61 -43
  60. package/es/pagination/style/token.less +4 -4
  61. package/es/radio/radio.js +23 -8
  62. package/es/radio/style/index.css +46 -18
  63. package/es/radio/style/index.less +27 -1
  64. package/es/radio/style/token.less +4 -4
  65. package/es/rate/style/index.css +9 -9
  66. package/es/rate/style/token.less +6 -6
  67. package/es/select/option.js +1 -1
  68. package/es/select/style/index.css +14 -5
  69. package/es/select/style/index.less +374 -368
  70. package/es/select/style/token.less +2 -2
  71. package/es/stepper/style/index.css +1 -1
  72. package/es/stepper/style/token.less +1 -1
  73. package/es/steps/style/index.css +40 -32
  74. package/es/steps/style/index.less +23 -33
  75. package/es/steps/style/token.less +6 -9
  76. package/es/style/icon/kdicon.css +225 -0
  77. package/es/style/icon/kdicon.woff +0 -0
  78. package/es/switch/style/index.css +11 -11
  79. package/es/switch/style/index.less +2 -2
  80. package/es/switch/style/token.less +7 -10
  81. package/es/tag/style/index.css +2 -147
  82. package/es/tag/style/index.less +4 -24
  83. package/es/tag/style/mixin.less +0 -13
  84. package/es/tag/style/token.less +1 -1
  85. package/lib/_utils/usePopper.js +38 -16
  86. package/lib/anchor/anchor.js +0 -6
  87. package/lib/anchor/style/index.css +5 -2
  88. package/lib/anchor/style/index.less +6 -2
  89. package/lib/anchor/style/token.less +2 -1
  90. package/lib/button/button.d.ts +1 -1
  91. package/lib/button/button.js +2 -2
  92. package/lib/button/group.d.ts +21 -0
  93. package/lib/button/group.js +166 -0
  94. package/lib/button/index.d.ts +5 -1
  95. package/lib/button/index.js +5 -1
  96. package/lib/button/style/index.css +117 -21
  97. package/lib/button/style/index.less +332 -192
  98. package/lib/button/style/token.less +41 -25
  99. package/lib/carousel/carousel.js +4 -0
  100. package/lib/checkbox/checkbox.js +3 -4
  101. package/lib/checkbox/style/index.css +36 -33
  102. package/lib/checkbox/style/index.less +25 -18
  103. package/lib/checkbox/style/token.less +34 -35
  104. package/lib/collapse/panel.d.ts +1 -0
  105. package/lib/collapse/panel.js +17 -5
  106. package/lib/collapse/style/index.css +32 -6
  107. package/lib/collapse/style/index.less +24 -1
  108. package/lib/collapse/style/token.less +12 -10
  109. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  110. package/lib/config-provider/compDefaultProps.js +4 -0
  111. package/lib/drawer/drawer.d.ts +1 -0
  112. package/lib/drawer/drawer.js +61 -27
  113. package/lib/empty/defaultEmptyImg.js +6 -3
  114. package/lib/empty/illustrationEmptyImg.js +7 -4
  115. package/lib/icon/interface.js +1 -1
  116. package/lib/image/preview.js +1 -1
  117. package/lib/image/style/index.css +8 -8
  118. package/lib/image/style/index.less +5 -5
  119. package/lib/image/style/token.less +12 -25
  120. package/lib/input/style/index.css +53 -50
  121. package/lib/input/style/index.less +5 -4
  122. package/lib/input/style/mixin.less +1 -0
  123. package/lib/input/style/token.less +23 -20
  124. package/lib/layout/style/index.css +1 -1
  125. package/lib/layout/style/index.less +1 -1
  126. package/lib/layout/style/token.less +5 -5
  127. package/lib/menu/menu.js +1 -1
  128. package/lib/menu/style/index.css +37 -31
  129. package/lib/menu/style/index.less +14 -0
  130. package/lib/menu/style/mixin.less +1 -1
  131. package/lib/menu/style/token.less +13 -16
  132. package/lib/pagination/pagination.js +4 -3
  133. package/lib/pagination/style/index.css +70 -55
  134. package/lib/pagination/style/index.less +61 -43
  135. package/lib/pagination/style/token.less +4 -4
  136. package/lib/radio/radio.js +23 -8
  137. package/lib/radio/style/index.css +46 -18
  138. package/lib/radio/style/index.less +27 -1
  139. package/lib/radio/style/token.less +4 -4
  140. package/lib/rate/style/index.css +9 -9
  141. package/lib/rate/style/token.less +6 -6
  142. package/lib/select/option.js +1 -1
  143. package/lib/select/style/index.css +14 -5
  144. package/lib/select/style/index.less +374 -368
  145. package/lib/select/style/token.less +2 -2
  146. package/lib/stepper/style/index.css +1 -1
  147. package/lib/stepper/style/token.less +1 -1
  148. package/lib/steps/style/index.css +40 -32
  149. package/lib/steps/style/index.less +23 -33
  150. package/lib/steps/style/token.less +6 -9
  151. package/lib/style/icon/kdicon.css +225 -0
  152. package/lib/style/icon/kdicon.woff +0 -0
  153. package/lib/switch/style/index.css +11 -11
  154. package/lib/switch/style/index.less +2 -2
  155. package/lib/switch/style/token.less +7 -10
  156. package/lib/tag/style/index.css +2 -147
  157. package/lib/tag/style/index.less +4 -24
  158. package/lib/tag/style/mixin.less +0 -13
  159. package/lib/tag/style/token.less +1 -1
  160. package/package.json +1 -1
@@ -1,368 +1,374 @@
1
- @import '../../style/themes/index';
2
- @import '../../style/mixins/index';
3
- @import './mixin.less';
4
-
5
- @select-prefix-cls: ~'@{kd-prefix}-select';
6
-
7
- .@{select-prefix-cls} {
8
- position: relative;
9
- display: inline-block;
10
- box-sizing: border-box;
11
- background-color: transparent;
12
- cursor: pointer;
13
- margin: 0 8px 2px 0;
14
- vertical-align: middle;
15
-
16
- &-selector:hover {
17
- .@{select-prefix-cls}-icon-active {
18
- color: #3761ca;
19
- }
20
- }
21
- &-visible {
22
- .@{select-prefix-cls}-icon-active {
23
- color: #3761ca;
24
- }
25
- }
26
-
27
- &-icon {
28
- &-arrow {
29
- display: inline-flex;
30
- align-items: center;
31
- vertical-align: middle;
32
- &-up {
33
- transform: rotate(180deg);
34
- transition: transform calc(@transition-duration - 0.1s) @ease;
35
- }
36
-
37
- &-down {
38
- transform: rotate(0deg);
39
- transition: transform calc(@transition-duration - 0.1s) @ease;
40
- }
41
-
42
- &-focus {
43
- color: #3761ca;
44
- }
45
- }
46
-
47
- &-clear {
48
- opacity: 0;
49
- transition: opacity 0.15s ease;
50
- &:hover {
51
- color: @select-g-color-border-hover;
52
- }
53
- }
54
- }
55
-
56
- &-selection-search {
57
- position: absolute;
58
- top: 0;
59
- bottom: 0;
60
- left: 11px;
61
- &-input {
62
- opacity: 0;
63
- margin: 0;
64
- padding: 0;
65
- background: 0 0;
66
- border: none;
67
- outline: none;
68
- appearance: none;
69
- &:hover {
70
- cursor: pointer;
71
- }
72
- }
73
- }
74
-
75
- &-focused {
76
- .focusColor();
77
- // border-bottom: 1px solid #5582F3 ;
78
- }
79
- &-placeholder {
80
- color: @select-placeholder-color;
81
- overflow: hidden;
82
- white-space: nowrap;
83
- text-overflow: ellipsis;
84
- }
85
-
86
- &-borderless {
87
- border: none;
88
- }
89
-
90
- &-underline {
91
- border-bottom: 1px solid @select-g-color-border;
92
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
93
- border-bottom: 1px solid @select-g-color-border-hover;
94
- }
95
- }
96
-
97
- &-bordered {
98
- border: 1px solid @select-border-g-color-border;
99
- padding-left: 8px !important;
100
- border-radius: 2px;
101
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
102
- border: 1px solid @select-g-color-border-hover;
103
- }
104
- }
105
-
106
- &-wrapper {
107
- transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
108
- padding: 1px 28px 1px 0;
109
- max-width: 100%;
110
- color: #212121;
111
- display: flex;
112
- flex-wrap: wrap;
113
- align-items: center;
114
- cursor: pointer;
115
- box-sizing: border-box;
116
- overflow-y: auto;
117
- overflow-x: hidden;
118
- }
119
-
120
- &-dropdown {
121
- display: block;
122
- left: 0;
123
- z-index: @select-z-index;
124
- box-sizing: border-box;
125
- padding: 4px 0; // update
126
- margin: 0;
127
- overflow: auto;
128
- font-size: @select-list-font-size; // update
129
- font-variant: initial;
130
- background-color: @select-dropdown-bg;
131
- border-radius: @select-g-radius-border;
132
- outline: none;
133
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
134
-
135
- &-scroll {
136
- overflow-y: auto;
137
- }
138
-
139
- &-empty {
140
- padding: 5px 12px;
141
- }
142
-
143
- // 搜索框
144
- &-search {
145
- padding: 5px 6px;
146
- &-hidden {
147
- display: none;
148
- }
149
- }
150
- }
151
-
152
- // 下拉列表选项
153
- &-item {
154
- .item();
155
- cursor: pointer;
156
- transition: background 0.3s ease;
157
-
158
- &-option {
159
- display: flex;
160
- min-width: 75px;
161
-
162
- &-content {
163
- flex: auto;
164
- .over();
165
- }
166
-
167
- &:hover:not(&-selected):not(&-disabled) {
168
- background-color: @select-item-active-bg;
169
- }
170
-
171
- &-active:not(&-disabled) {
172
- background-color: @select-item-active-bg;
173
- }
174
-
175
- &-selected:not(&-disabled) {
176
- color: @select-item-selected-color;
177
- // font-weight: @select-item-selected-font-weight;
178
- background-color: @select-item-selected-bg;
179
- }
180
-
181
- &-disabled {
182
- color: @select-g-item-text-color-disabled;
183
- cursor: not-allowed;
184
- background-color: @select-disabled-option-bg;
185
- }
186
- }
187
- }
188
-
189
- // 选择器框大小
190
- &-size-small {
191
- .select-input-size(@select-small-height, @select-small-height, @select-small-line-height, @select-small-font-size);
192
- }
193
-
194
- &-size-middle {
195
- .select-input-size(@select-middle-height, @select-middle-height, @select-middle-line-height, @select-middle-font-size);
196
- }
197
-
198
- &-size-large {
199
- .select-input-size(@select-large-height, @select-large-height, @select-large-line-height, @select-large-font-size);
200
- }
201
-
202
- &-suffix {
203
- right: 10px;
204
- position: absolute;
205
- display: flex;
206
- flex: 0;
207
- flex-wrap: wrap;
208
- align-items: center;
209
- justify-content: center;
210
- margin-left: 4px;
211
- }
212
- &-single {
213
- &-focused {
214
- .focusColor();
215
- }
216
- &-disabled {
217
- background-color: @disabled-contain-bg;
218
- color: @disabled-color;
219
- &:hover {
220
- cursor: not-allowed;
221
- }
222
- }
223
- &:hover .@{select-prefix-cls}-icon-clear {
224
- opacity: 1;
225
- }
226
- &-text {
227
- color: #666;
228
- .over();
229
- }
230
- &-disabled-text {
231
- color: @disabled-color;
232
- }
233
- }
234
-
235
- .@{select-prefix-cls}-selection-item {
236
- // position: relative;
237
- display: inline-flex;
238
- box-sizing: border-box;
239
- align-items: center;
240
- vertical-align: middle;
241
- max-width: 100%;
242
- height: 20px;
243
- line-height: 20px;
244
- margin: 2px 8px 2px 0;
245
- // margin: 2px 4px 2px 0;
246
- // margin-right: 4px;
247
- // padding-left: 8px;
248
- // background: #fafafa;
249
- // border: 1px solid #d9d9d9;
250
- // border-radius: 2px;
251
- cursor: default;
252
- user-select: none;
253
- &-small {
254
- height: 18px;
255
- line-height: 18px;
256
- font-size: 12px;
257
- }
258
-
259
- &-middle {
260
- font-size: 12px;
261
- height: 18px;
262
- line-height: 18px;
263
- }
264
-
265
- &-large {
266
- font-size: 14px;
267
- line-height: 22px;
268
- height: 22px;
269
- }
270
-
271
- &-content {
272
- display: inline-flex;
273
- align-items: center;
274
- vertical-align: middle;
275
- padding: 0 7px;
276
- overflow: hidden;
277
- white-space: nowrap;
278
- text-overflow: ellipsis;
279
- border: 1px solid #ccc;
280
- color: #212121;
281
- }
282
- // &-remove {
283
- // text-align: center;
284
- // text-transform: none;
285
- // display: inline-flex;
286
- // color: rgba(0, 0, 0, 0.45);
287
- // line-height: inherit;
288
- // cursor: pointer;
289
- // &:hover {
290
- // color: #212121;
291
- // }
292
- // }
293
- &-span {
294
- position: relative;
295
- margin-left: 0.5px;
296
- box-sizing: border-box;
297
- }
298
- &-input {
299
- // opacity: 0;
300
- cursor: text;
301
- margin: 0;
302
- padding: 0;
303
- background: 0 0;
304
- border: none;
305
- outline: none;
306
- appearance: none;
307
- width: 100%;
308
- min-width: 20px;
309
- }
310
- }
311
-
312
- // 多选
313
- &-multiple {
314
- &-disabled {
315
- cursor: not-allowed;
316
- background-color: @disabled-contain-bg;
317
- color: @disabled-color;
318
- }
319
- &:hover .@{select-prefix-cls}-icon-clear {
320
- opacity: 1;
321
- }
322
- &-selector {
323
- position: relative;
324
- cursor: text;
325
- padding-right: 24px;
326
- display: flex;
327
- flex-wrap: wrap;
328
- align-items: center;
329
- }
330
- .@{select-prefix-cls}-wrapper {
331
- &:hover:not(.@{select-prefix-cls}-multiple-disabled) {
332
- border-bottom: 1px solid @select-g-color-border-hover;
333
- }
334
- }
335
-
336
- &-footer {
337
- color: @select-font-color;
338
- display: inline-flex;
339
- align-items: center;
340
- width: 100%;
341
- padding: 0 12px;
342
- height: 32px;
343
- line-height: 32px;
344
- border-top: 1px solid #d9d9d9;
345
- box-sizing: border-box;
346
-
347
- &-hadSelected {
348
- color: #999999;
349
- padding-left: 12px;
350
- > span {
351
- color: @select-footer-g-text-color-selected;
352
- padding: 0 2px;
353
- }
354
- }
355
- }
356
- }
357
-
358
- &.topLeft.hidden,
359
- &.bottomLeft.hidden,
360
- &.topRight.hidden,
361
- &.bottomRight.hidden {
362
- opacity: 0;
363
- visibility: hidden;
364
- transition: all calc(@transition-duration - 0.1s) @ease;
365
- }
366
- }
367
-
368
-
1
+ @import '../../style/themes/index';
2
+ @import '../../style/mixins/index';
3
+ @import './mixin.less';
4
+
5
+ @select-prefix-cls: ~'@{kd-prefix}-select';
6
+
7
+ .@{select-prefix-cls} {
8
+ position: relative;
9
+ display: inline-block;
10
+ box-sizing: border-box;
11
+ background-color: transparent;
12
+ cursor: pointer;
13
+ margin: 0 8px 2px 0;
14
+ vertical-align: middle;
15
+
16
+ &-selector:hover {
17
+ .@{select-prefix-cls}-icon-active {
18
+ color: #3761ca;
19
+ }
20
+ }
21
+ &-visible {
22
+ .@{select-prefix-cls}-icon-active {
23
+ color: #3761ca;
24
+ }
25
+ }
26
+
27
+ &-icon {
28
+ &-arrow {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ vertical-align: middle;
32
+ &-up {
33
+ transform: rotate(180deg);
34
+ transition: transform calc(@transition-duration - 0.1s) @ease;
35
+ }
36
+
37
+ &-down {
38
+ transform: rotate(0deg);
39
+ transition: transform calc(@transition-duration - 0.1s) @ease;
40
+ }
41
+
42
+ &-focus {
43
+ color: #3761ca;
44
+ }
45
+ }
46
+
47
+ &-clear {
48
+ opacity: 0;
49
+ transition: opacity 0.15s ease;
50
+ &:hover {
51
+ color: @select-g-color-border-hover;
52
+ }
53
+ }
54
+ }
55
+
56
+ &-selection-search {
57
+ position: absolute;
58
+ top: 0;
59
+ bottom: 0;
60
+ left: 11px;
61
+ &-input {
62
+ opacity: 0;
63
+ margin: 0;
64
+ padding: 0;
65
+ background: 0 0;
66
+ border: none;
67
+ outline: none;
68
+ appearance: none;
69
+ &:hover {
70
+ cursor: pointer;
71
+ }
72
+ }
73
+ }
74
+
75
+ &-focused {
76
+ .focusColor();
77
+ // border-bottom: 1px solid #5582F3 ;
78
+ }
79
+ &-placeholder {
80
+ color: @select-placeholder-color;
81
+ overflow: hidden;
82
+ white-space: nowrap;
83
+ text-overflow: ellipsis;
84
+ }
85
+
86
+ &-borderless {
87
+ border: none;
88
+ }
89
+
90
+ &-underline {
91
+ border-bottom: 1px solid @select-g-color-border;
92
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
93
+ border-bottom: 1px solid @select-g-color-border-hover;
94
+ }
95
+ }
96
+
97
+ &-bordered {
98
+ border: 1px solid @select-border-g-color-border;
99
+ padding-left: 8px !important;
100
+ border-radius: 2px;
101
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
102
+ border: 1px solid @select-g-color-border-hover;
103
+ }
104
+
105
+ .@{select-prefix-cls}-suffix {
106
+ right: 10px;
107
+ }
108
+ }
109
+
110
+ &-wrapper {
111
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
112
+ padding: 1px 28px 1px 0;
113
+ max-width: 100%;
114
+ color: #212121;
115
+ display: flex;
116
+ flex-wrap: wrap;
117
+ align-items: center;
118
+ cursor: pointer;
119
+ box-sizing: border-box;
120
+ overflow-y: auto;
121
+ overflow-x: hidden;
122
+ }
123
+
124
+ &-dropdown {
125
+ display: block;
126
+ left: 0;
127
+ z-index: @select-z-index;
128
+ box-sizing: border-box;
129
+ padding: 4px 0; // update
130
+ margin: 0;
131
+ overflow: auto;
132
+ font-size: @select-list-font-size; // update
133
+ font-variant: initial;
134
+ background-color: @select-dropdown-bg;
135
+ border-radius: @select-g-radius-border;
136
+ outline: none;
137
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
138
+
139
+ &-scroll {
140
+ overflow-y: auto;
141
+ }
142
+
143
+ &-empty {
144
+ padding: 5px 12px;
145
+ }
146
+
147
+ // 搜索框
148
+ &-search {
149
+ padding: 5px 6px;
150
+ &-hidden {
151
+ display: none;
152
+ }
153
+ }
154
+ }
155
+
156
+ // 下拉列表选项
157
+ &-item {
158
+ .item();
159
+ cursor: pointer;
160
+ transition: background 0.3s ease;
161
+
162
+ &-option {
163
+ display: flex;
164
+ min-width: 75px;
165
+
166
+ &-content {
167
+ display: flex;
168
+ align-items: center;
169
+ flex: auto;
170
+ .over();
171
+ }
172
+
173
+ &:hover:not(&-selected):not(&-disabled) {
174
+ background-color: @select-item-active-bg;
175
+ }
176
+
177
+ &-active:not(&-disabled) {
178
+ background-color: @select-item-active-bg;
179
+ }
180
+
181
+ &-selected:not(&-disabled) {
182
+ color: @select-item-selected-color;
183
+ // font-weight: @select-item-selected-font-weight;
184
+ background-color: @select-item-selected-bg;
185
+ }
186
+
187
+ &-disabled {
188
+ color: @select-g-item-text-color-disabled;
189
+ cursor: not-allowed;
190
+ background-color: @select-disabled-option-bg;
191
+ }
192
+ }
193
+ }
194
+
195
+ // 选择器框大小
196
+ &-size-small {
197
+ .select-input-size(@select-small-height, @select-small-height, @select-small-line-height, @select-small-font-size);
198
+ }
199
+
200
+ &-size-middle {
201
+ .select-input-size(@select-middle-height, @select-middle-height, @select-middle-line-height, @select-middle-font-size);
202
+ }
203
+
204
+ &-size-large {
205
+ .select-input-size(@select-large-height, @select-large-height, @select-large-line-height, @select-large-font-size);
206
+ }
207
+
208
+ &-suffix {
209
+ right: 0;
210
+ position: absolute;
211
+ display: flex;
212
+ flex: 0;
213
+ flex-wrap: wrap;
214
+ align-items: center;
215
+ justify-content: center;
216
+ margin-left: 8px;
217
+ }
218
+ &-single {
219
+ &-focused {
220
+ .focusColor();
221
+ }
222
+ &-disabled {
223
+ background-color: @disabled-contain-bg;
224
+ color: @disabled-color;
225
+ &:hover {
226
+ cursor: not-allowed;
227
+ }
228
+ }
229
+ &:hover .@{select-prefix-cls}-icon-clear {
230
+ opacity: 1;
231
+ }
232
+ &-text {
233
+ color: #666;
234
+ .over();
235
+ }
236
+ &-disabled-text {
237
+ color: @disabled-color;
238
+ }
239
+ }
240
+
241
+ .@{select-prefix-cls}-selection-item {
242
+ // position: relative;
243
+ display: inline-flex;
244
+ box-sizing: border-box;
245
+ align-items: center;
246
+ vertical-align: middle;
247
+ max-width: 100%;
248
+ height: 20px;
249
+ line-height: 20px;
250
+ margin: 2px 8px 2px 0;
251
+ // margin: 2px 4px 2px 0;
252
+ // margin-right: 4px;
253
+ // padding-left: 8px;
254
+ // background: #fafafa;
255
+ // border: 1px solid #d9d9d9;
256
+ // border-radius: 2px;
257
+ cursor: default;
258
+ user-select: none;
259
+ &-small {
260
+ height: 18px;
261
+ line-height: 18px;
262
+ font-size: 12px;
263
+ }
264
+
265
+ &-middle {
266
+ font-size: 12px;
267
+ height: 18px;
268
+ line-height: 18px;
269
+ }
270
+
271
+ &-large {
272
+ font-size: 14px;
273
+ line-height: 22px;
274
+ height: 22px;
275
+ }
276
+
277
+ &-content {
278
+ display: inline-flex;
279
+ align-items: center;
280
+ vertical-align: middle;
281
+ padding: 0 7px;
282
+ overflow: hidden;
283
+ white-space: nowrap;
284
+ text-overflow: ellipsis;
285
+ border: 1px solid #ccc;
286
+ color: #212121;
287
+ }
288
+ // &-remove {
289
+ // text-align: center;
290
+ // text-transform: none;
291
+ // display: inline-flex;
292
+ // color: rgba(0, 0, 0, 0.45);
293
+ // line-height: inherit;
294
+ // cursor: pointer;
295
+ // &:hover {
296
+ // color: #212121;
297
+ // }
298
+ // }
299
+ &-span {
300
+ position: relative;
301
+ margin-left: 0.5px;
302
+ box-sizing: border-box;
303
+ }
304
+ &-input {
305
+ // opacity: 0;
306
+ cursor: text;
307
+ margin: 0;
308
+ padding: 0;
309
+ background: 0 0;
310
+ border: none;
311
+ outline: none;
312
+ appearance: none;
313
+ width: 100%;
314
+ min-width: 20px;
315
+ }
316
+ }
317
+
318
+ // 多选
319
+ &-multiple {
320
+ &-disabled {
321
+ cursor: not-allowed;
322
+ background-color: @disabled-contain-bg;
323
+ color: @disabled-color;
324
+ }
325
+ &:hover .@{select-prefix-cls}-icon-clear {
326
+ opacity: 1;
327
+ }
328
+ &-selector {
329
+ position: relative;
330
+ cursor: text;
331
+ padding-right: 24px;
332
+ display: flex;
333
+ flex-wrap: wrap;
334
+ align-items: center;
335
+ }
336
+ .@{select-prefix-cls}-wrapper {
337
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled) {
338
+ border-bottom: 1px solid @select-g-color-border-hover;
339
+ }
340
+ }
341
+
342
+ &-footer {
343
+ color: @select-font-color;
344
+ display: inline-flex;
345
+ align-items: center;
346
+ width: 100%;
347
+ padding: 0 12px;
348
+ height: 32px;
349
+ line-height: 32px;
350
+ border-top: 1px solid #d9d9d9;
351
+ box-sizing: border-box;
352
+
353
+ &-hadSelected {
354
+ color: #999999;
355
+ padding-left: 12px;
356
+ > span {
357
+ color: @select-footer-g-text-color-selected;
358
+ padding: 0 2px;
359
+ }
360
+ }
361
+ }
362
+ }
363
+
364
+ &.topLeft.hidden,
365
+ &.bottomLeft.hidden,
366
+ &.topRight.hidden,
367
+ &.bottomRight.hidden {
368
+ opacity: 0;
369
+ visibility: hidden;
370
+ transition: all calc(@transition-duration - 0.1s) @ease;
371
+ }
372
+ }
373
+
374
+