mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
commit
5bdaf34af5
@ -94,8 +94,7 @@
|
|||||||
|
|
||||||
&-optionArrowRight {
|
&-optionArrowRight {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
padding-right: px2rem(10px);
|
||||||
right: px2rem(10px);
|
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: px2rem(12px);
|
width: px2rem(12px);
|
||||||
@ -109,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-menu {
|
&-menu {
|
||||||
min-width: px2rem(120px);
|
width: px2rem(160px);
|
||||||
max-height: px2rem(300px);
|
max-height: px2rem(300px);
|
||||||
background: $Form-select-menu-bg;
|
background: $Form-select-menu-bg;
|
||||||
color: $Form-select-menu-color;
|
color: $Form-select-menu-color;
|
||||||
@ -134,6 +133,10 @@
|
|||||||
> label {
|
> label {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
span {
|
||||||
|
display: inline-flex;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
|
@ -417,11 +417,7 @@ export default class NestedSelectControl extends React.Component<
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{stack.map((options, index) => (
|
{stack.map((options, index) => (
|
||||||
<div
|
<div key={index} className={cx('NestedSelect-menu')}>
|
||||||
key={index}
|
|
||||||
className={cx('NestedSelect-menu')}
|
|
||||||
style={{width: this.target.offsetWidth}}
|
|
||||||
>
|
|
||||||
{index === 0 ? searchInput : null}
|
{index === 0 ? searchInput : null}
|
||||||
{multiple && index === 0 ? (
|
{multiple && index === 0 ? (
|
||||||
<div
|
<div
|
||||||
@ -519,10 +515,7 @@ export default class NestedSelectControl extends React.Component<
|
|||||||
disabled={!this.state.isOpened}
|
disabled={!this.state.isOpened}
|
||||||
onRootClose={this.close}
|
onRootClose={this.close}
|
||||||
>
|
>
|
||||||
<div
|
<div className={cx('NestedSelect-menuOuter')}>
|
||||||
className={cx('NestedSelect-menuOuter')}
|
|
||||||
style={{minWidth: this.target.offsetWidth}}
|
|
||||||
>
|
|
||||||
{this.renderOptions()}
|
{this.renderOptions()}
|
||||||
</div>
|
</div>
|
||||||
</RootCloseWrapper>
|
</RootCloseWrapper>
|
||||||
@ -534,12 +527,7 @@ export default class NestedSelectControl extends React.Component<
|
|||||||
target={this.getTarget}
|
target={this.getTarget}
|
||||||
show
|
show
|
||||||
>
|
>
|
||||||
<PopOver
|
<PopOver className={cx('NestedSelect-popover')}>{body}</PopOver>
|
||||||
className={cx('NestedSelect-popover')}
|
|
||||||
style={{minWidth: this.target.offsetWidth}}
|
|
||||||
>
|
|
||||||
{body}
|
|
||||||
</PopOver>
|
|
||||||
</Overlay>
|
</Overlay>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user