| | |
| | | <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'; |
| | |
| | | qrCodeLoginPath: '/auth/qrcode-login', |
| | | registerPath: '/auth/register', |
| | | showCodeLogin: true, |
| | | showDocLink: true, |
| | | showForgetPassword: true, |
| | | showQrcodeLogin: true, |
| | | showRegister: true, |
| | |
| | | }); |
| | | |
| | | const emit = defineEmits<{ |
| | | submit: [Recordable<any>]; |
| | | submit: [Recordable<unknown>]; |
| | | thirdLogin: [type: number]; |
| | | }>(); |
| | | |
| | |
| | | <slot name="title"> |
| | | <Title> |
| | | <slot name="title"> |
| | | {{ title || `${$t('authentication.welcomeBack')} 👋🏻` }} |
| | | {{ title || $t('authentication.welcomeBack') }} |
| | | </slot> |
| | | <template #desc> |
| | | <span class="text-muted-foreground"> |
| | |
| | | |
| | | <div |
| | | v-if="showRememberMe || showForgetPassword" |
| | | class="mb-6 flex justify-between" |
| | | class="mb-7 flex items-center justify-between" |
| | | > |
| | | <div class="flex-center"> |
| | | <VbenCheckbox |
| | |
| | | }" |
| | | :loading="loading" |
| | | aria-label="login" |
| | | class="w-full" |
| | | class="h-11 w-full rounded-xl text-base font-semibold shadow-sm transition-shadow duration-200 hover:shadow-md focus-visible:ring-2 focus-visible:ring-primary/40" |
| | | @click="handleSubmit" |
| | | > |
| | | {{ submitButtonText || $t('common.login') }} |
| | |
| | | </slot> |
| | | |
| | | <!-- 萌新必读 --> |
| | | <DocLink /> |
| | | <DocLink v-if="showDocLink" /> |
| | | </div> |
| | | </template> |