refactor(tenant-toggle): 使用getPopupContainer替代固定样式
移除Select组件的固定定位样式,改用getPopupContainer方法统一管理弹出层容器
This commit is contained in:
parent
cc2f96b691
commit
ff39e65d81
@ -10,6 +10,7 @@ import { useRoute } from 'vue-router';
|
||||
import { useAccess } from '@vben/access';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { $t } from '@vben/locales';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
|
||||
import { message, Select, Spin } from 'antdv-next';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@ -143,9 +144,7 @@ function filterOption(input: string, option: TenantOption) {
|
||||
:filter-option="filterOption"
|
||||
:options="tenantList"
|
||||
:placeholder="$t('component.tenantToggle.placeholder')"
|
||||
:styles="{
|
||||
root: { position: 'fixed', zIndex: 1024 },
|
||||
}"
|
||||
:get-popup-container="getPopupContainer"
|
||||
allow-clear
|
||||
class="w-60"
|
||||
show-search
|
||||
|
||||
Loading…
Reference in New Issue
Block a user