Select 样式优化

This commit is contained in:
liaoxuezhi 2019-11-10 22:01:15 +08:00
parent 4189e13c92
commit 806a2f74d1
2 changed files with 3 additions and 4 deletions

View File

@ -134,8 +134,7 @@
&-menu {
max-height: px2rem(300px);
overflow-y: auto;
overflow-x: hidden;
overflow: auto;
user-select: none;
}
@ -174,7 +173,7 @@
&-option {
cursor: pointer;
min-width: px2rem(150px);
min-width: px2rem(120px);
padding: ($Form-select-menu-height - $Form-input-lineHeight * $Form-input-fontSize)/2 $Form-select-paddingX;
&.is-active {

View File

@ -715,7 +715,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
<PopOver
overlay
className={cx('Select-popover')}
style={{width: this.target ? this.target.offsetWidth : 'auto'}}
style={{minWidth: this.target ? this.target.offsetWidth : 'auto'}}
onHide={this.close}
>
{menu}