mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:38:16 +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 {
|
&-input.is-active &-caret {
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-searchbox.is-active {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,17 +101,20 @@ class DropDownSelection extends BaseSelection<
|
|||||||
loadingConfig,
|
loadingConfig,
|
||||||
popOverContainer,
|
popOverContainer,
|
||||||
testIdBuilder,
|
testIdBuilder,
|
||||||
mobileUI
|
mobileUI,
|
||||||
|
classPrefix: ns
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PopOverContainer
|
<PopOverContainer
|
||||||
mobileUI={mobileUI}
|
mobileUI={mobileUI}
|
||||||
|
overlayWidthField="width"
|
||||||
popOverContainer={popOverContainer || (() => findDOMNode(this))}
|
popOverContainer={popOverContainer || (() => findDOMNode(this))}
|
||||||
popOverRender={({onClose}) => (
|
popOverRender={({onClose}) => (
|
||||||
<div>
|
<div>
|
||||||
{searchable ? (
|
{searchable ? (
|
||||||
<SearchBox
|
<SearchBox
|
||||||
|
className={cx(`${ns}DropDownSelection-searchbox`)}
|
||||||
mini={false}
|
mini={false}
|
||||||
onSearch={this.onSearch}
|
onSearch={this.onSearch}
|
||||||
testIdBuilder={testIdBuilder?.getChild('searchbox')}
|
testIdBuilder={testIdBuilder?.getChild('searchbox')}
|
||||||
|
Loading…
Reference in New Issue
Block a user