feat: getPopupContainer

This commit is contained in:
dap 2025-01-26 13:37:25 +08:00
parent e89d1a0520
commit 4959574f21

View File

@ -10,6 +10,7 @@ import { useAccess } from '@vben/access';
import { DEFAULT_HOME_PATH } from '@vben/constants';
import { useTabs } from '@vben/hooks';
import { $t } from '@vben/locales';
import { getPopupContainer } from '@vben/utils';
import { message, Select } from 'ant-design-vue';
import { storeToRefs } from 'pinia';
@ -96,6 +97,7 @@ function filterOption(input: string, option: TenantOption) {
<div v-if="showToggle" class="mr-[8px] hidden md:block">
<Select
v-model:value="selected"
:get-popup-container="getPopupContainer"
:field-names="{ label: 'companyName', value: 'tenantId' }"
:filter-option="filterOption"
:options="tenantList"