修复弹框中 treeSelector 样式问题

This commit is contained in:
liaoxuezhi 2020-08-05 22:18:54 +08:00
parent 802d3d3ad3
commit 892cafac08
2 changed files with 2 additions and 5 deletions

View File

@ -91,10 +91,6 @@
width: 0;
max-width: 100%;
margin-bottom: 0;
.#{$ns}TextControl {
min-width: unset;
}
}
@for $i from (1) through $Form--horizontal-columns {

View File

@ -15,6 +15,7 @@ import {isEffectiveApi} from '../../utils/api';
import Spinner from '../../components/Spinner';
import ResultBox from '../../components/ResultBox';
import {autobind} from '../../utils/helper';
import {findDOMNode} from 'react-dom';
export interface TreeSelectProps extends OptionsControlProps {
placeholder?: any;
@ -402,7 +403,7 @@ export default class TreeSelectControl extends React.Component<
className={`${ns}TreeSelect-popover`}
style={{
minWidth: this.target.current
? this.target.current.offsetWidth
? (findDOMNode(this.target.current) as HTMLElement).offsetWidth
: undefined
}}
onHide={this.close}