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 { useAccess } from '@vben/access';
|
||||||
import { useTabs } from '@vben/hooks';
|
import { useTabs } from '@vben/hooks';
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
import { getPopupContainer } from '@vben/utils';
|
||||||
|
|
||||||
import { message, Select, Spin } from 'antdv-next';
|
import { message, Select, Spin } from 'antdv-next';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@ -143,9 +144,7 @@ function filterOption(input: string, option: TenantOption) {
|
|||||||
:filter-option="filterOption"
|
:filter-option="filterOption"
|
||||||
:options="tenantList"
|
:options="tenantList"
|
||||||
:placeholder="$t('component.tenantToggle.placeholder')"
|
:placeholder="$t('component.tenantToggle.placeholder')"
|
||||||
:styles="{
|
:get-popup-container="getPopupContainer"
|
||||||
root: { position: 'fixed', zIndex: 1024 },
|
|
||||||
}"
|
|
||||||
allow-clear
|
allow-clear
|
||||||
class="w-60"
|
class="w-60"
|
||||||
show-search
|
show-search
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user