修复弹框中 treeSelector 样式问题
This commit is contained in:
parent
802d3d3ad3
commit
892cafac08
|
@ -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 {
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue