From be42a59e52e49ba484312517f924286083b9dfd2 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 16 十月 2026 20:26:45 +0800
Subject: [PATCH] feat(mes): 二维码导出功能新增文件大小字段和兼容性支持

---
 src/packages/effects/common-ui/src/ui/authentication/login.vue |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/src/packages/effects/common-ui/src/ui/authentication/login.vue b/src/packages/effects/common-ui/src/ui/authentication/login.vue
index e6783db..cd38900 100644
--- a/src/packages/effects/common-ui/src/ui/authentication/login.vue
+++ b/src/packages/effects/common-ui/src/ui/authentication/login.vue
@@ -1,17 +1,17 @@
 <script setup lang="ts">
-import type { Recordable } from '..\..\..\..\..\types\src';
+import type { Recordable } from '../../../../../types/src';
 
-import type { VbenFormSchema } from '..\..\..\..\..\@core\ui-kit\form-ui\src';
+import type { VbenFormSchema } from '../../../../../@core/ui-kit/form-ui/src';
 
 import type { AuthenticationProps } from './types';
 
 import { computed, onMounted, reactive, ref } from 'vue';
 import { useRouter } from 'vue-router';
 
-import { $t } from '..\..\..\..\..\locales\src';
+import { $t } from '../../../../../locales/src';
 
-import { useVbenForm } from '..\..\..\..\..\@core\ui-kit\form-ui\src';
-import { VbenButton, VbenCheckbox } from '..\..\..\..\..\@core\ui-kit\shadcn-ui\src';
+import { useVbenForm } from '../../../../../@core/ui-kit/form-ui/src';
+import { VbenButton, VbenCheckbox } from '../../../../../@core/ui-kit/shadcn-ui/src';
 
 import Title from './auth-title.vue';
 import DocLink from './doc-link.vue';
@@ -19,6 +19,7 @@
 
 interface Props extends AuthenticationProps {
   formSchema?: VbenFormSchema[];
+  showFieldLabels?: boolean;
 }
 
 defineOptions({
@@ -33,6 +34,8 @@
   qrCodeLoginPath: '/auth/qrcode-login',
   registerPath: '/auth/register',
   showCodeLogin: true,
+  showFieldLabels: false,
+  showDocLink: true,
   showForgetPassword: true,
   showQrcodeLogin: true,
   showRegister: true,
@@ -44,17 +47,18 @@
 });
 
 const emit = defineEmits<{
-  submit: [Recordable<any>];
+  submit: [Recordable<unknown>];
   thirdLogin: [type: number];
 }>();
 
 const [Form, formApi] = useVbenForm(
   reactive({
     commonConfig: {
-      hideLabel: true,
+      hideLabel: computed(() => !props.showFieldLabels),
       hideRequiredMark: true,
     },
     schema: computed(() => props.formSchema),
+    layout: computed(() => props.showFieldLabels ? 'vertical' as const : 'horizontal' as const),
     showDefaultActions: false,
   }),
 );
@@ -103,11 +107,11 @@
 </script>
 
 <template>
-  <div @keydown.enter.prevent="handleSubmit">
+  <div class="authentication-login" @keydown.enter.prevent="handleSubmit">
     <slot name="title">
       <Title>
         <slot name="title">
-          {{ title || `${$t('authentication.welcomeBack')} 馃憢馃徎` }}
+          {{ title || $t('authentication.welcomeBack') }}
         </slot>
         <template #desc>
           <span class="text-muted-foreground">
@@ -123,7 +127,7 @@
 
     <div
       v-if="showRememberMe || showForgetPassword"
-      class="mb-6 flex justify-between"
+      class="mb-6 flex items-center justify-between"
     >
       <div class="flex-center">
         <VbenCheckbox
@@ -137,8 +141,11 @@
 
       <span
         v-if="showForgetPassword"
-        class="vben-link text-sm font-normal"
+        class="vben-link cursor-pointer rounded-sm text-sm font-normal outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/50"
+        role="link"
+        tabindex="0"
         @click="handleGo(forgetPasswordPath)"
+        @keydown.enter.prevent="handleGo(forgetPasswordPath)"
       >
         {{ $t('authentication.forgetPassword') }}
       </span>
@@ -148,8 +155,8 @@
         'cursor-wait': loading,
       }"
       :loading="loading"
-      aria-label="login"
-      class="w-full"
+      :aria-label="submitButtonText || $t('common.login')"
+      class="h-12 w-full rounded-xl bg-emerald-600 text-base font-semibold tracking-[0.18em] text-white shadow-[0_10px_24px_rgba(5,150,105,0.22)] transition-[background-color,box-shadow] duration-200 hover:bg-emerald-700 hover:shadow-[0_12px_28px_rgba(5,150,105,0.3)] focus-visible:ring-2 focus-visible:ring-emerald-500/50 disabled:cursor-not-allowed disabled:opacity-70"
       @click="handleSubmit"
     >
       {{ submitButtonText || $t('common.login') }}
@@ -198,6 +205,6 @@
     </slot>
 
     <!-- 钀屾柊蹇呰 -->
-    <DocLink />
+    <DocLink v-if="showDocLink" />
   </div>
 </template>

--
Gitblit v1.9.3