From cf53a4f3bd53ab7f6e4a5dc257fb0798f19c2eb7 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 9 Oct 2024 13:58:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=9F=E6=88=B7=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A1=86=E6=B5=AE=E5=B1=82=E5=9B=BA=E5=AE=9A=E9=AB=98=E5=BA=A6?= =?UTF-8?q?[256px]=20=E8=B6=85=E8=BF=87=E9=AB=98=E5=BA=A6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ apps/web-antd/src/views/_core/authentication/login.vue | 1 + .../@core/ui-kit/shadcn-ui/src/components/select/select.vue | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d123c1..2c38cca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ - 登录页面 关闭租户后下拉框没有正常隐藏 - 字典管理 关闭租户不应显示`同步租户字典`按钮 +**OTHERS** + +- 登录页 租户选择框浮层固定高度[256px] 超过高度自动滚动 + # 1.0.0-beta (2024-10-8) **FEATURES** diff --git a/apps/web-antd/src/views/_core/authentication/login.vue b/apps/web-antd/src/views/_core/authentication/login.vue index bf80359d..8bf411bd 100644 --- a/apps/web-antd/src/views/_core/authentication/login.vue +++ b/apps/web-antd/src/views/_core/authentication/login.vue @@ -60,6 +60,7 @@ const formSchema = computed((): VbenFormSchema[] => { component: 'VbenSelect', componentProps: { class: 'bg-background h-[40px] focus:border-primary', + contentClass: 'h-[256px] overflow-y-auto', options: tenantInfo.value.voList?.map((item) => ({ label: item.companyName, value: item.tenantId, diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue b/packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue index 6c80e0fb..2d8d498e 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/select/select.vue @@ -9,6 +9,8 @@ import { interface Props { class?: any; + // 弹出层的类名 + contentClass?: any; options?: Array<{ label: string; value: string }>; placeholder?: string; } @@ -20,7 +22,7 @@ const props = defineProps(); - +