mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
Merge pull request #7619 from allenve/master
fix: transferPicker 弹窗位置错误
This commit is contained in:
commit
40aaacf0de
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user