|
|
|
@ -35,6 +35,10 @@ interface Props {
|
|
|
|
* @zh_CN 按钮文本
|
|
|
|
* @zh_CN 按钮文本
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
submitButtonText?: string;
|
|
|
|
submitButtonText?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @zh_CN 是否显示返回按钮
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
showBack?: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
defineOptions({
|
|
|
|
@ -43,6 +47,7 @@ defineOptions({
|
|
|
|
|
|
|
|
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
|
|
|
|
showBack: true,
|
|
|
|
loginPath: '/auth/login',
|
|
|
|
loginPath: '/auth/login',
|
|
|
|
submitButtonText: '',
|
|
|
|
submitButtonText: '',
|
|
|
|
subTitle: '',
|
|
|
|
subTitle: '',
|
|
|
|
@ -110,7 +115,7 @@ defineExpose({
|
|
|
|
{{ submitButtonText || $t('common.login') }}
|
|
|
|
{{ submitButtonText || $t('common.login') }}
|
|
|
|
</slot>
|
|
|
|
</slot>
|
|
|
|
</VbenButton>
|
|
|
|
</VbenButton>
|
|
|
|
<VbenButton class="mt-4 w-full" variant="outline" @click="goToLogin()">
|
|
|
|
<VbenButton v-if="showBack" class="mt-4 w-full" variant="outline" @click="goToLogin()">
|
|
|
|
{{ $t('common.back') }}
|
|
|
|
{{ $t('common.back') }}
|
|
|
|
</VbenButton>
|
|
|
|
</VbenButton>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|