@douyinfe/semi-foundation 2.55.5 → 2.56.0-beta.0
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.
- package/form/form.scss +13 -3
- package/lib/cjs/form/form.css +9 -1
- package/lib/cjs/form/form.scss +13 -3
- package/lib/cjs/radio/radio.css +1 -0
- package/lib/cjs/radio/radio.scss +1 -0
- package/lib/cjs/select/select.css +23 -1
- package/lib/cjs/select/select.scss +28 -3
- package/lib/cjs/select/variables.scss +6 -1
- package/lib/es/form/form.css +9 -1
- package/lib/es/form/form.scss +13 -3
- package/lib/es/radio/radio.css +1 -0
- package/lib/es/radio/radio.scss +1 -0
- package/lib/es/select/select.css +23 -1
- package/lib/es/select/select.scss +28 -3
- package/lib/es/select/variables.scss +6 -1
- package/package.json +3 -3
- package/radio/radio.scss +1 -0
- package/select/select.scss +28 -3
- package/select/variables.scss +6 -1
package/form/form.scss
CHANGED
|
@@ -9,6 +9,8 @@ $col: #{$form}-col;
|
|
|
9
9
|
$checkboxGroup: #{$prefix}-checkboxGroup;
|
|
10
10
|
$radioGroup: #{$prefix}-radioGroup;
|
|
11
11
|
$buttonRadioGroup: #{$prefix}-radioGroup-buttonRadio;
|
|
12
|
+
$horizontalCardRadioGroup: #{$prefix}-radioGroup-horizontal-card;
|
|
13
|
+
$verticalCardRadioGroup: #{$prefix}-radioGroup-vertical-card;
|
|
12
14
|
|
|
13
15
|
$switch: #{$prefix}-switch;
|
|
14
16
|
$rating: #{$prefix}-rating;
|
|
@@ -171,11 +173,17 @@ $rating: #{$prefix}-rating;
|
|
|
171
173
|
padding-top: $spacing-form_label_posTop-paddingTop;
|
|
172
174
|
padding-bottom: $spacing-form_label_posTop-paddingBottom;
|
|
173
175
|
}
|
|
176
|
+
// no need to adjust height for button radio & card radio
|
|
177
|
+
.#{$buttonRadioGroup},
|
|
178
|
+
.#{$horizontalCardRadioGroup},
|
|
179
|
+
.#{$verticalCardRadioGroup} {
|
|
180
|
+
padding-top: 0;
|
|
181
|
+
padding-bottom: 0;
|
|
182
|
+
}
|
|
174
183
|
.#{$field}-label-with-extra {
|
|
175
184
|
display: flex;
|
|
176
185
|
align-items: center;
|
|
177
186
|
}
|
|
178
|
-
|
|
179
187
|
}
|
|
180
188
|
|
|
181
189
|
&[x-label-pos="left"] {
|
|
@@ -197,8 +205,10 @@ $rating: #{$prefix}-rating;
|
|
|
197
205
|
padding-top: $spacing-form_label-paddingTop;
|
|
198
206
|
padding-bottom: $spacing-form_label-paddingTop;
|
|
199
207
|
}
|
|
200
|
-
// no need to adjust height for button radio, already 32px
|
|
201
|
-
.#{$buttonRadioGroup}
|
|
208
|
+
// no need to adjust height for button radio, already 32px, no need to consider height of card radio
|
|
209
|
+
.#{$buttonRadioGroup},
|
|
210
|
+
.#{$horizontalCardRadioGroup},
|
|
211
|
+
.#{$verticalCardRadioGroup} {
|
|
202
212
|
padding-top: 0;
|
|
203
213
|
padding-bottom: 0;
|
|
204
214
|
}
|
package/lib/cjs/form/form.css
CHANGED
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
padding-top: 4px;
|
|
110
110
|
padding-bottom: 4px;
|
|
111
111
|
}
|
|
112
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-buttonRadio,
|
|
113
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-horizontal-card,
|
|
114
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-vertical-card {
|
|
115
|
+
padding-top: 0;
|
|
116
|
+
padding-bottom: 0;
|
|
117
|
+
}
|
|
112
118
|
.semi-form-field[x-label-pos=top] .semi-form-field-label-with-extra {
|
|
113
119
|
display: flex;
|
|
114
120
|
align-items: center;
|
|
@@ -131,7 +137,9 @@
|
|
|
131
137
|
padding-top: 6px;
|
|
132
138
|
padding-bottom: 6px;
|
|
133
139
|
}
|
|
134
|
-
.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio
|
|
140
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio,
|
|
141
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-horizontal-card,
|
|
142
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-vertical-card {
|
|
135
143
|
padding-top: 0;
|
|
136
144
|
padding-bottom: 0;
|
|
137
145
|
}
|
package/lib/cjs/form/form.scss
CHANGED
|
@@ -9,6 +9,8 @@ $col: #{$form}-col;
|
|
|
9
9
|
$checkboxGroup: #{$prefix}-checkboxGroup;
|
|
10
10
|
$radioGroup: #{$prefix}-radioGroup;
|
|
11
11
|
$buttonRadioGroup: #{$prefix}-radioGroup-buttonRadio;
|
|
12
|
+
$horizontalCardRadioGroup: #{$prefix}-radioGroup-horizontal-card;
|
|
13
|
+
$verticalCardRadioGroup: #{$prefix}-radioGroup-vertical-card;
|
|
12
14
|
|
|
13
15
|
$switch: #{$prefix}-switch;
|
|
14
16
|
$rating: #{$prefix}-rating;
|
|
@@ -171,11 +173,17 @@ $rating: #{$prefix}-rating;
|
|
|
171
173
|
padding-top: $spacing-form_label_posTop-paddingTop;
|
|
172
174
|
padding-bottom: $spacing-form_label_posTop-paddingBottom;
|
|
173
175
|
}
|
|
176
|
+
// no need to adjust height for button radio & card radio
|
|
177
|
+
.#{$buttonRadioGroup},
|
|
178
|
+
.#{$horizontalCardRadioGroup},
|
|
179
|
+
.#{$verticalCardRadioGroup} {
|
|
180
|
+
padding-top: 0;
|
|
181
|
+
padding-bottom: 0;
|
|
182
|
+
}
|
|
174
183
|
.#{$field}-label-with-extra {
|
|
175
184
|
display: flex;
|
|
176
185
|
align-items: center;
|
|
177
186
|
}
|
|
178
|
-
|
|
179
187
|
}
|
|
180
188
|
|
|
181
189
|
&[x-label-pos="left"] {
|
|
@@ -197,8 +205,10 @@ $rating: #{$prefix}-rating;
|
|
|
197
205
|
padding-top: $spacing-form_label-paddingTop;
|
|
198
206
|
padding-bottom: $spacing-form_label-paddingTop;
|
|
199
207
|
}
|
|
200
|
-
// no need to adjust height for button radio, already 32px
|
|
201
|
-
.#{$buttonRadioGroup}
|
|
208
|
+
// no need to adjust height for button radio, already 32px, no need to consider height of card radio
|
|
209
|
+
.#{$buttonRadioGroup},
|
|
210
|
+
.#{$horizontalCardRadioGroup},
|
|
211
|
+
.#{$verticalCardRadioGroup} {
|
|
202
212
|
padding-top: 0;
|
|
203
213
|
padding-bottom: 0;
|
|
204
214
|
}
|
package/lib/cjs/radio/radio.css
CHANGED
package/lib/cjs/radio/radio.scss
CHANGED
|
@@ -383,7 +383,13 @@
|
|
|
383
383
|
top: 0;
|
|
384
384
|
left: 0;
|
|
385
385
|
height: 100%;
|
|
386
|
-
|
|
386
|
+
}
|
|
387
|
+
.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper .semi-input-wrapper {
|
|
388
|
+
height: 24px;
|
|
389
|
+
line-height: 24px;
|
|
390
|
+
}
|
|
391
|
+
.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper .semi-input-wrapper .semi-input-default {
|
|
392
|
+
height: 24px;
|
|
387
393
|
}
|
|
388
394
|
.semi-select-multiple.semi-select-filterable .semi-input-wrapper {
|
|
389
395
|
height: 100%;
|
|
@@ -399,6 +405,22 @@
|
|
|
399
405
|
padding-right: 0;
|
|
400
406
|
}
|
|
401
407
|
|
|
408
|
+
.semi-select-multiple.semi-select-filterable.semi-select-large .semi-input-wrapper-large {
|
|
409
|
+
height: 24px;
|
|
410
|
+
line-height: 24px;
|
|
411
|
+
}
|
|
412
|
+
.semi-select-multiple.semi-select-filterable.semi-select-large .semi-input-wrapper-large .semi-input-large {
|
|
413
|
+
height: 24px;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.semi-select-multiple.semi-select-filterable.semi-select-small .semi-input-wrapper {
|
|
417
|
+
height: 20px;
|
|
418
|
+
line-height: 20px;
|
|
419
|
+
}
|
|
420
|
+
.semi-select-multiple.semi-select-filterable.semi-select-small .semi-input-wrapper .semi-input-small {
|
|
421
|
+
height: 20px;
|
|
422
|
+
}
|
|
423
|
+
|
|
402
424
|
.semi-select-option-list-wrapper {
|
|
403
425
|
padding-top: 4px;
|
|
404
426
|
padding-bottom: 4px;
|
|
@@ -392,18 +392,23 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
392
392
|
height: 100%;
|
|
393
393
|
overflow: hidden;
|
|
394
394
|
position: relative;
|
|
395
|
-
|
|
396
395
|
&-empty {
|
|
397
396
|
.#{$prefix}-input-wrapper {
|
|
398
397
|
position: absolute;
|
|
399
398
|
top: 0;
|
|
400
399
|
left: 0;
|
|
401
400
|
height: 100%;
|
|
402
|
-
width: 100%;
|
|
401
|
+
// width: 100%; // no need to set width here, will calcuate inline style by js
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
.#{$prefix}-input-wrapper {
|
|
405
|
+
height: $height-select_multiple_input_default;
|
|
406
|
+
line-height: $height-select_multiple_input_default;
|
|
407
|
+
.#{$prefix}-input-default {
|
|
408
|
+
height: $height-select_multiple_input_default;
|
|
403
409
|
}
|
|
404
410
|
}
|
|
405
411
|
}
|
|
406
|
-
|
|
407
412
|
.#{$prefix}-input-wrapper {
|
|
408
413
|
// position: absolute;
|
|
409
414
|
// top: 0;
|
|
@@ -424,6 +429,26 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
424
429
|
}
|
|
425
430
|
}
|
|
426
431
|
|
|
432
|
+
.#{$multiple}.#{$filterable}.#{$module}-large {
|
|
433
|
+
.#{$prefix}-input-wrapper-large {
|
|
434
|
+
height: $height-select_multiple_input_large;
|
|
435
|
+
line-height: $height-select_multiple_input_large;
|
|
436
|
+
.#{$prefix}-input-large {
|
|
437
|
+
height: $height-select_multiple_input_large
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
.#{$multiple}.#{$filterable}.#{$module}-small {
|
|
442
|
+
.#{$prefix}-input-wrapper {
|
|
443
|
+
height: $height-select_multiple_input_small;
|
|
444
|
+
line-height: $height-select_multiple_input_small;
|
|
445
|
+
.#{$prefix}-input-small {
|
|
446
|
+
height: $height-select_multiple_input_small;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
427
452
|
.#{$module}-option-list-wrapper {
|
|
428
453
|
padding-top: $spacing-select_option_list-paddingTop;
|
|
429
454
|
padding-bottom: $spacing-select_option_list-paddingBottom;
|
|
@@ -65,7 +65,12 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
|
|
|
65
65
|
$width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
|
|
66
66
|
$width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
|
|
67
67
|
$width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
|
|
68
|
-
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; //
|
|
68
|
+
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
|
|
69
|
+
|
|
70
|
+
$height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
|
|
71
|
+
$height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度
|
|
72
|
+
$height-select_multiple_input_large: 24px; // 大尺寸多项选择器输入框Input框高度
|
|
73
|
+
|
|
69
74
|
$width-select-border-hover: $width-select-border; // 选择器输入框描边宽度 - 悬浮
|
|
70
75
|
$width-select-border-focus: $width-select-border-hover; // 选择器输入框描边宽度 - 按下
|
|
71
76
|
$width-select-border-active: $width-select-border-focus; // 选择器输入框描边宽度 - 选中
|
package/lib/es/form/form.css
CHANGED
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
padding-top: 4px;
|
|
110
110
|
padding-bottom: 4px;
|
|
111
111
|
}
|
|
112
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-buttonRadio,
|
|
113
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-horizontal-card,
|
|
114
|
+
.semi-form-field[x-label-pos=top] .semi-radioGroup-vertical-card {
|
|
115
|
+
padding-top: 0;
|
|
116
|
+
padding-bottom: 0;
|
|
117
|
+
}
|
|
112
118
|
.semi-form-field[x-label-pos=top] .semi-form-field-label-with-extra {
|
|
113
119
|
display: flex;
|
|
114
120
|
align-items: center;
|
|
@@ -131,7 +137,9 @@
|
|
|
131
137
|
padding-top: 6px;
|
|
132
138
|
padding-bottom: 6px;
|
|
133
139
|
}
|
|
134
|
-
.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio
|
|
140
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio,
|
|
141
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-horizontal-card,
|
|
142
|
+
.semi-form-field[x-label-pos=left] .semi-radioGroup-vertical-card {
|
|
135
143
|
padding-top: 0;
|
|
136
144
|
padding-bottom: 0;
|
|
137
145
|
}
|
package/lib/es/form/form.scss
CHANGED
|
@@ -9,6 +9,8 @@ $col: #{$form}-col;
|
|
|
9
9
|
$checkboxGroup: #{$prefix}-checkboxGroup;
|
|
10
10
|
$radioGroup: #{$prefix}-radioGroup;
|
|
11
11
|
$buttonRadioGroup: #{$prefix}-radioGroup-buttonRadio;
|
|
12
|
+
$horizontalCardRadioGroup: #{$prefix}-radioGroup-horizontal-card;
|
|
13
|
+
$verticalCardRadioGroup: #{$prefix}-radioGroup-vertical-card;
|
|
12
14
|
|
|
13
15
|
$switch: #{$prefix}-switch;
|
|
14
16
|
$rating: #{$prefix}-rating;
|
|
@@ -171,11 +173,17 @@ $rating: #{$prefix}-rating;
|
|
|
171
173
|
padding-top: $spacing-form_label_posTop-paddingTop;
|
|
172
174
|
padding-bottom: $spacing-form_label_posTop-paddingBottom;
|
|
173
175
|
}
|
|
176
|
+
// no need to adjust height for button radio & card radio
|
|
177
|
+
.#{$buttonRadioGroup},
|
|
178
|
+
.#{$horizontalCardRadioGroup},
|
|
179
|
+
.#{$verticalCardRadioGroup} {
|
|
180
|
+
padding-top: 0;
|
|
181
|
+
padding-bottom: 0;
|
|
182
|
+
}
|
|
174
183
|
.#{$field}-label-with-extra {
|
|
175
184
|
display: flex;
|
|
176
185
|
align-items: center;
|
|
177
186
|
}
|
|
178
|
-
|
|
179
187
|
}
|
|
180
188
|
|
|
181
189
|
&[x-label-pos="left"] {
|
|
@@ -197,8 +205,10 @@ $rating: #{$prefix}-rating;
|
|
|
197
205
|
padding-top: $spacing-form_label-paddingTop;
|
|
198
206
|
padding-bottom: $spacing-form_label-paddingTop;
|
|
199
207
|
}
|
|
200
|
-
// no need to adjust height for button radio, already 32px
|
|
201
|
-
.#{$buttonRadioGroup}
|
|
208
|
+
// no need to adjust height for button radio, already 32px, no need to consider height of card radio
|
|
209
|
+
.#{$buttonRadioGroup},
|
|
210
|
+
.#{$horizontalCardRadioGroup},
|
|
211
|
+
.#{$verticalCardRadioGroup} {
|
|
202
212
|
padding-top: 0;
|
|
203
213
|
padding-bottom: 0;
|
|
204
214
|
}
|
package/lib/es/radio/radio.css
CHANGED
package/lib/es/radio/radio.scss
CHANGED
package/lib/es/select/select.css
CHANGED
|
@@ -383,7 +383,13 @@
|
|
|
383
383
|
top: 0;
|
|
384
384
|
left: 0;
|
|
385
385
|
height: 100%;
|
|
386
|
-
|
|
386
|
+
}
|
|
387
|
+
.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper .semi-input-wrapper {
|
|
388
|
+
height: 24px;
|
|
389
|
+
line-height: 24px;
|
|
390
|
+
}
|
|
391
|
+
.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper .semi-input-wrapper .semi-input-default {
|
|
392
|
+
height: 24px;
|
|
387
393
|
}
|
|
388
394
|
.semi-select-multiple.semi-select-filterable .semi-input-wrapper {
|
|
389
395
|
height: 100%;
|
|
@@ -399,6 +405,22 @@
|
|
|
399
405
|
padding-right: 0;
|
|
400
406
|
}
|
|
401
407
|
|
|
408
|
+
.semi-select-multiple.semi-select-filterable.semi-select-large .semi-input-wrapper-large {
|
|
409
|
+
height: 24px;
|
|
410
|
+
line-height: 24px;
|
|
411
|
+
}
|
|
412
|
+
.semi-select-multiple.semi-select-filterable.semi-select-large .semi-input-wrapper-large .semi-input-large {
|
|
413
|
+
height: 24px;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.semi-select-multiple.semi-select-filterable.semi-select-small .semi-input-wrapper {
|
|
417
|
+
height: 20px;
|
|
418
|
+
line-height: 20px;
|
|
419
|
+
}
|
|
420
|
+
.semi-select-multiple.semi-select-filterable.semi-select-small .semi-input-wrapper .semi-input-small {
|
|
421
|
+
height: 20px;
|
|
422
|
+
}
|
|
423
|
+
|
|
402
424
|
.semi-select-option-list-wrapper {
|
|
403
425
|
padding-top: 4px;
|
|
404
426
|
padding-bottom: 4px;
|
|
@@ -392,18 +392,23 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
392
392
|
height: 100%;
|
|
393
393
|
overflow: hidden;
|
|
394
394
|
position: relative;
|
|
395
|
-
|
|
396
395
|
&-empty {
|
|
397
396
|
.#{$prefix}-input-wrapper {
|
|
398
397
|
position: absolute;
|
|
399
398
|
top: 0;
|
|
400
399
|
left: 0;
|
|
401
400
|
height: 100%;
|
|
402
|
-
width: 100%;
|
|
401
|
+
// width: 100%; // no need to set width here, will calcuate inline style by js
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
.#{$prefix}-input-wrapper {
|
|
405
|
+
height: $height-select_multiple_input_default;
|
|
406
|
+
line-height: $height-select_multiple_input_default;
|
|
407
|
+
.#{$prefix}-input-default {
|
|
408
|
+
height: $height-select_multiple_input_default;
|
|
403
409
|
}
|
|
404
410
|
}
|
|
405
411
|
}
|
|
406
|
-
|
|
407
412
|
.#{$prefix}-input-wrapper {
|
|
408
413
|
// position: absolute;
|
|
409
414
|
// top: 0;
|
|
@@ -424,6 +429,26 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
424
429
|
}
|
|
425
430
|
}
|
|
426
431
|
|
|
432
|
+
.#{$multiple}.#{$filterable}.#{$module}-large {
|
|
433
|
+
.#{$prefix}-input-wrapper-large {
|
|
434
|
+
height: $height-select_multiple_input_large;
|
|
435
|
+
line-height: $height-select_multiple_input_large;
|
|
436
|
+
.#{$prefix}-input-large {
|
|
437
|
+
height: $height-select_multiple_input_large
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
.#{$multiple}.#{$filterable}.#{$module}-small {
|
|
442
|
+
.#{$prefix}-input-wrapper {
|
|
443
|
+
height: $height-select_multiple_input_small;
|
|
444
|
+
line-height: $height-select_multiple_input_small;
|
|
445
|
+
.#{$prefix}-input-small {
|
|
446
|
+
height: $height-select_multiple_input_small;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
427
452
|
.#{$module}-option-list-wrapper {
|
|
428
453
|
padding-top: $spacing-select_option_list-paddingTop;
|
|
429
454
|
padding-bottom: $spacing-select_option_list-paddingBottom;
|
|
@@ -65,7 +65,12 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
|
|
|
65
65
|
$width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
|
|
66
66
|
$width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
|
|
67
67
|
$width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
|
|
68
|
-
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; //
|
|
68
|
+
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
|
|
69
|
+
|
|
70
|
+
$height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
|
|
71
|
+
$height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度
|
|
72
|
+
$height-select_multiple_input_large: 24px; // 大尺寸多项选择器输入框Input框高度
|
|
73
|
+
|
|
69
74
|
$width-select-border-hover: $width-select-border; // 选择器输入框描边宽度 - 悬浮
|
|
70
75
|
$width-select-border-focus: $width-select-border-hover; // 选择器输入框描边宽度 - 按下
|
|
71
76
|
$width-select-border-active: $width-select-border-focus; // 选择器输入框描边宽度 - 选中
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.
|
|
10
|
+
"@douyinfe/semi-animation": "2.56.0-beta.0",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"*.scss",
|
|
25
25
|
"*.css"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "ae4502e3075a19370e9f4ed32fbfb1292acd06c2",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
30
30
|
"@babel/preset-env": "^7.15.8",
|
package/radio/radio.scss
CHANGED
package/select/select.scss
CHANGED
|
@@ -392,18 +392,23 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
392
392
|
height: 100%;
|
|
393
393
|
overflow: hidden;
|
|
394
394
|
position: relative;
|
|
395
|
-
|
|
396
395
|
&-empty {
|
|
397
396
|
.#{$prefix}-input-wrapper {
|
|
398
397
|
position: absolute;
|
|
399
398
|
top: 0;
|
|
400
399
|
left: 0;
|
|
401
400
|
height: 100%;
|
|
402
|
-
width: 100%;
|
|
401
|
+
// width: 100%; // no need to set width here, will calcuate inline style by js
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
.#{$prefix}-input-wrapper {
|
|
405
|
+
height: $height-select_multiple_input_default;
|
|
406
|
+
line-height: $height-select_multiple_input_default;
|
|
407
|
+
.#{$prefix}-input-default {
|
|
408
|
+
height: $height-select_multiple_input_default;
|
|
403
409
|
}
|
|
404
410
|
}
|
|
405
411
|
}
|
|
406
|
-
|
|
407
412
|
.#{$prefix}-input-wrapper {
|
|
408
413
|
// position: absolute;
|
|
409
414
|
// top: 0;
|
|
@@ -424,6 +429,26 @@ $overflowList: #{$prefix}-overflow-list;
|
|
|
424
429
|
}
|
|
425
430
|
}
|
|
426
431
|
|
|
432
|
+
.#{$multiple}.#{$filterable}.#{$module}-large {
|
|
433
|
+
.#{$prefix}-input-wrapper-large {
|
|
434
|
+
height: $height-select_multiple_input_large;
|
|
435
|
+
line-height: $height-select_multiple_input_large;
|
|
436
|
+
.#{$prefix}-input-large {
|
|
437
|
+
height: $height-select_multiple_input_large
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
.#{$multiple}.#{$filterable}.#{$module}-small {
|
|
442
|
+
.#{$prefix}-input-wrapper {
|
|
443
|
+
height: $height-select_multiple_input_small;
|
|
444
|
+
line-height: $height-select_multiple_input_small;
|
|
445
|
+
.#{$prefix}-input-small {
|
|
446
|
+
height: $height-select_multiple_input_small;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
427
452
|
.#{$module}-option-list-wrapper {
|
|
428
453
|
padding-top: $spacing-select_option_list-paddingTop;
|
|
429
454
|
padding-bottom: $spacing-select_option_list-paddingBottom;
|
package/select/variables.scss
CHANGED
|
@@ -65,7 +65,12 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
|
|
|
65
65
|
$width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
|
|
66
66
|
$width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
|
|
67
67
|
$width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
|
|
68
|
-
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; //
|
|
68
|
+
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
|
|
69
|
+
|
|
70
|
+
$height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
|
|
71
|
+
$height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度
|
|
72
|
+
$height-select_multiple_input_large: 24px; // 大尺寸多项选择器输入框Input框高度
|
|
73
|
+
|
|
69
74
|
$width-select-border-hover: $width-select-border; // 选择器输入框描边宽度 - 悬浮
|
|
70
75
|
$width-select-border-focus: $width-select-border-hover; // 选择器输入框描边宽度 - 按下
|
|
71
76
|
$width-select-border-active: $width-select-border-focus; // 选择器输入框描边宽度 - 选中
|