feat: getPopupContainer
This commit is contained in:
parent
e89d1a0520
commit
4959574f21
@ -10,6 +10,7 @@ import { useAccess } from '@vben/access';
|
|||||||
import { DEFAULT_HOME_PATH } from '@vben/constants';
|
import { DEFAULT_HOME_PATH } from '@vben/constants';
|
||||||
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 } from 'ant-design-vue';
|
import { message, Select } from 'ant-design-vue';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@ -96,6 +97,7 @@ function filterOption(input: string, option: TenantOption) {
|
|||||||
<div v-if="showToggle" class="mr-[8px] hidden md:block">
|
<div v-if="showToggle" class="mr-[8px] hidden md:block">
|
||||||
<Select
|
<Select
|
||||||
v-model:value="selected"
|
v-model:value="selected"
|
||||||
|
:get-popup-container="getPopupContainer"
|
||||||
:field-names="{ label: 'companyName', value: 'tenantId' }"
|
:field-names="{ label: 'companyName', value: 'tenantId' }"
|
||||||
:filter-option="filterOption"
|
:filter-option="filterOption"
|
||||||
:options="tenantList"
|
:options="tenantList"
|
||||||
|
Loading…
Reference in New Issue
Block a user