Select 样式调整,支持超出换行
This commit is contained in:
parent
38a9f013e9
commit
1fde578ba5
|
@ -7,7 +7,7 @@
|
|||
border: $Form-select-borderWidth solid $Form-select-borderColor;
|
||||
background: $Form-select-bg;
|
||||
border-radius: $Form-select-borderRadius;
|
||||
height: $Form-selectOption-height;
|
||||
min-height: $Form-selectOption-height;
|
||||
$paddingY: (
|
||||
$Form-selectOption-height - $Form-input-lineHeight * $Form-input-fontSize -
|
||||
$Form-select-borderWidth * 2
|
||||
|
@ -36,6 +36,7 @@
|
|||
position: relative;
|
||||
flex-grow: 1;
|
||||
line-height: 1;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
&-placeholder {
|
||||
|
@ -46,7 +47,7 @@
|
|||
|
||||
&-value {
|
||||
line-height: $Form-input-lineHeight * $Form-input-fontSize;
|
||||
white-space: nowrap;
|
||||
// white-space: nowrap;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
|
Loading…
Reference in New Issue