fix: select components used in modal pop-ups cannot be selected (#4368)

* fix: select components used in modal pop-ups cannot be selected

* chore: update ci

* chore: update css
This commit is contained in:
Vben
2024-09-11 23:10:35 +08:00
committed by GitHub
parent 61faa1895a
commit 855ac02622
13 changed files with 163 additions and 22 deletions

View File

@@ -34,6 +34,7 @@ const props = withDefaults(defineProps<Props>(), {
showRegister: true,
showRememberMe: true,
showThirdPartyLogin: true,
submitButtonText: '',
subTitle: '',
title: '',
});
@@ -86,10 +87,14 @@ onMounted(() => {
<div @keydown.enter.prevent="handleSubmit">
<slot name="title">
<Title>
{{ title || `${$t('authentication.welcomeBack')} 👋🏻` }}
<slot name="title">
{{ title || `${$t('authentication.welcomeBack')} 👋🏻` }}
</slot>
<template #desc>
<span class="text-muted-foreground">
{{ subTitle || $t('authentication.loginSubtitle') }}
<slot name="subTitle">
{{ subTitle || $t('authentication.loginSubtitle') }}
</slot>
</span>
</template>
</Title>
@@ -101,8 +106,12 @@ onMounted(() => {
v-if="showRememberMe || showForgetPassword"
class="mb-6 flex justify-between"
>
<div v-if="showRememberMe" class="flex-center">
<VbenCheckbox v-model:checked="rememberMe" name="rememberMe">
<div class="flex-center">
<VbenCheckbox
v-if="showRememberMe"
v-model:checked="rememberMe"
name="rememberMe"
>
{{ $t('authentication.rememberMe') }}
</VbenCheckbox>
</div>
@@ -116,7 +125,7 @@ onMounted(() => {
</span>
</div>
<VbenButton :loading="loading" class="w-full" @click="handleSubmit">
{{ $t('common.login') }}
{{ submitButtonText || $t('common.login') }}
</VbenButton>
<div