mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
fix(tenant-toggle): 修复租户选择器下拉菜单被遮挡问题
移除不再支持的 variant 属性,并为下拉菜单添加固定定位样式,避免在滚动时被遮挡
This commit is contained in:
@@ -138,7 +138,6 @@ function filterOption(input: string, option: TenantOption) {
|
||||
<template>
|
||||
<div v-if="showToggle" class="mr-[8px] hidden md:block">
|
||||
<Select
|
||||
variant="outlined"
|
||||
v-model:value="selected"
|
||||
:disabled="loading"
|
||||
:field-names="{ label: 'companyName', value: 'tenantId' }"
|
||||
@@ -147,6 +146,7 @@ function filterOption(input: string, option: TenantOption) {
|
||||
:placeholder="$t('component.tenantToggle.placeholder')"
|
||||
allow-clear
|
||||
class="w-60"
|
||||
:popup-style="{ position: 'fixed' }"
|
||||
show-search
|
||||
@clear="handleClear"
|
||||
@select="handleSelect"
|
||||
|
||||
Reference in New Issue
Block a user