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 { &-input.is-active &-caret {
transform: rotate(180deg); transform: rotate(180deg);
} }
&-searchbox.is-active {
width: 100%;
}
} }

View File

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