样式修复
This commit is contained in:
parent
3246c66e73
commit
30c6ec579b
|
@ -109,7 +109,7 @@
|
|||
}
|
||||
|
||||
&-menu {
|
||||
min-width: px2rem(120px);
|
||||
width: px2rem(160px);
|
||||
max-height: px2rem(300px);
|
||||
background: $Form-select-menu-bg;
|
||||
color: $Form-select-menu-color;
|
||||
|
@ -134,6 +134,9 @@
|
|||
> label {
|
||||
flex: 1;
|
||||
cursor: pointer;
|
||||
span {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
|
|
|
@ -417,11 +417,7 @@ export default class NestedSelectControl extends React.Component<
|
|||
return (
|
||||
<>
|
||||
{stack.map((options, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className={cx('NestedSelect-menu')}
|
||||
style={{width: this.target.offsetWidth}}
|
||||
>
|
||||
<div key={index} className={cx('NestedSelect-menu')}>
|
||||
{index === 0 ? searchInput : null}
|
||||
{multiple && index === 0 ? (
|
||||
<div
|
||||
|
@ -519,10 +515,7 @@ export default class NestedSelectControl extends React.Component<
|
|||
disabled={!this.state.isOpened}
|
||||
onRootClose={this.close}
|
||||
>
|
||||
<div
|
||||
className={cx('NestedSelect-menuOuter')}
|
||||
style={{minWidth: this.target.offsetWidth}}
|
||||
>
|
||||
<div className={cx('NestedSelect-menuOuter')}>
|
||||
{this.renderOptions()}
|
||||
</div>
|
||||
</RootCloseWrapper>
|
||||
|
@ -534,12 +527,7 @@ export default class NestedSelectControl extends React.Component<
|
|||
target={this.getTarget}
|
||||
show
|
||||
>
|
||||
<PopOver
|
||||
className={cx('NestedSelect-popover')}
|
||||
style={{minWidth: this.target.offsetWidth}}
|
||||
>
|
||||
{body}
|
||||
</PopOver>
|
||||
<PopOver className={cx('NestedSelect-popover')}>{body}</PopOver>
|
||||
</Overlay>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue