style:condition下拉框样式细节优化,避免内容过多导致超长 (#10864) (#10865)

Co-authored-by: hezhihang <hezhihang@baidu.com>
This commit is contained in:
hzh11012 2024-09-03 15:44:01 +08:00 committed by GitHub
parent bb399c2cfd
commit 93dae85e05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -476,4 +476,8 @@
&-input.is-active &-caret {
transform: rotate(180deg);
}
&-searchbox.is-active {
width: 100%;
}
}

View File

@ -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')}