|
|
|
|
@ -1,11 +1,18 @@
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { MdiGithub, MdiGoogle, MdiQqchat, MdiWechat } from '@vben/icons';
|
|
|
|
|
import { GiteeIcon, MdiGithub, MdiQqchat, MdiWechat } from '@vben/icons';
|
|
|
|
|
import { $t } from '@vben/locales';
|
|
|
|
|
import { VbenIconButton } from '@vben-core/shadcn-ui';
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: 'ThirdPartyLogin',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
defineEmits<{
|
|
|
|
|
/**
|
|
|
|
|
* 第三方登录 platfrom 对应平台的string
|
|
|
|
|
*/
|
|
|
|
|
oauthLogin: [plateform: string];
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
@ -18,18 +25,18 @@ defineOptions({
|
|
|
|
|
<span class="border-input w-[35%] border-b dark:border-gray-600"></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mt-4 flex flex-wrap justify-center">
|
|
|
|
|
<VbenIconButton class="mb-3">
|
|
|
|
|
<MdiWechat />
|
|
|
|
|
<div class="mt-4 flex flex-wrap justify-around">
|
|
|
|
|
<VbenIconButton class="mb-3" @click="$emit('oauthLogin', 'wechat')">
|
|
|
|
|
<MdiWechat class="size-[24px] text-green-600" />
|
|
|
|
|
</VbenIconButton>
|
|
|
|
|
<VbenIconButton class="mb-3">
|
|
|
|
|
<MdiQqchat />
|
|
|
|
|
<VbenIconButton class="mb-3" @click="$emit('oauthLogin', 'qq')">
|
|
|
|
|
<MdiQqchat class="size-[24px]" />
|
|
|
|
|
</VbenIconButton>
|
|
|
|
|
<VbenIconButton class="mb-3">
|
|
|
|
|
<MdiGithub />
|
|
|
|
|
<VbenIconButton class="mb-3" @click="$emit('oauthLogin', 'github')">
|
|
|
|
|
<MdiGithub class="size-[24px]" />
|
|
|
|
|
</VbenIconButton>
|
|
|
|
|
<VbenIconButton class="mb-3">
|
|
|
|
|
<MdiGoogle />
|
|
|
|
|
<VbenIconButton class="mb-3" @click="$emit('oauthLogin', 'gitee')">
|
|
|
|
|
<GiteeIcon class="size-[24px] text-red-700" />
|
|
|
|
|
</VbenIconButton>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|