mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Co-authored-by: hezhihang <hezhihang@baidu.com>
This commit is contained in:
parent
bb399c2cfd
commit
93dae85e05
@ -476,4 +476,8 @@
|
||||
&-input.is-active &-caret {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
&-searchbox.is-active {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
@ -101,17 +101,20 @@ class DropDownSelection extends BaseSelection<
|
||||
loadingConfig,
|
||||
popOverContainer,
|
||||
testIdBuilder,
|
||||
mobileUI
|
||||
mobileUI,
|
||||
classPrefix: ns
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
<PopOverContainer
|
||||
mobileUI={mobileUI}
|
||||
overlayWidthField="width"
|
||||
popOverContainer={popOverContainer || (() => findDOMNode(this))}
|
||||
popOverRender={({onClose}) => (
|
||||
<div>
|
||||
{searchable ? (
|
||||
<SearchBox
|
||||
className={cx(`${ns}DropDownSelection-searchbox`)}
|
||||
mini={false}
|
||||
onSearch={this.onSearch}
|
||||
testIdBuilder={testIdBuilder?.getChild('searchbox')}
|
||||
|
Loading…
Reference in New Issue
Block a user