Merge pull request #7619 from allenve/master

fix: transferPicker 弹窗位置错误
This commit is contained in:
Allen 2023-07-28 15:36:03 +08:00 committed by GitHub
commit 40aaacf0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -109,10 +109,8 @@ export class TabsTransferPickerRenderer extends BaseTabsTransferRenderer<TabsTra
labelField = 'label',
valueField = 'value',
useMobileUI,
env,
popOverContainer
env
} = this.props;
const mobileUI = useMobileUI && isMobile();
return (
<div className={cx('TabsTransferControl', className)}>
@ -145,11 +143,7 @@ export class TabsTransferPickerRenderer extends BaseTabsTransferRenderer<TabsTra
labelField={labelField}
valueField={valueField}
useMobileUI={useMobileUI}
popOverContainer={
mobileUI
? env?.getModalContainer
: popOverContainer || env.getModalContainer
}
popOverContainer={env?.getModalContainer}
/>
<Spinner

View File

@ -88,10 +88,8 @@ export class TransferPickerRenderer extends BaseTransferRenderer<TabsTransferPro
labelField = 'label',
valueField = 'value',
useMobileUI,
env,
popOverContainer
env
} = this.props;
const mobileUI = useMobileUI && isMobile();
// 目前 LeftOptions 没有接口可以动态加载
// 为了方便可以快速实现动态化,让选项的第一个成员携带
@ -141,11 +139,7 @@ export class TransferPickerRenderer extends BaseTransferRenderer<TabsTransferPro
}
virtualThreshold={virtualThreshold}
useMobileUI={useMobileUI}
popOverContainer={
mobileUI
? env?.getModalContainer
: popOverContainer || env.getModalContainer
}
popOverContainer={env?.getModalContainer}
/>
<Spinner