Merge pull request #10904 from 2betop/style-input-number

style: 修复table 中放置带单位的 inputNumber 弹出被挡住问题
This commit is contained in:
hsm-lv 2024-09-18 10:51:10 +08:00 committed by GitHub
commit fab69c451d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -484,7 +484,8 @@ export default class NumberControl extends React.Component<
env,
name,
showAsPercent,
testIdBuilder
testIdBuilder,
popOverContainer
} = this.props;
const {unit} = this.state;
const finalPrecision = this.filterNum(precision);
@ -590,6 +591,7 @@ export default class NumberControl extends React.Component<
onChange={this.handleChangeUnit}
className={`${ns}NumberControl-unit`}
disabled={disabled}
popOverContainer={popOverContainer}
/>
) : (
<div