车间能级提升-智能设备管理系统
朱桂飞
2025-01-09 3e8f7f239bedae0b4f04a1ac6bd443ba6298f73c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script setup lang="ts">
import { $t } from '@vben/locales';
 
import { Col, Row, Tooltip } from 'ant-design-vue';
 
import { accountBindList } from '../oauth-common';
 
defineOptions({
  name: 'OAuthLogin',
});
 
/**
 * 有action方法才会显示
 */
const clientList = accountBindList.filter((item) => item.action);
</script>
 
<template>
  <div class="w-full sm:mx-auto md:max-w-md">
    <div class="mt-4 flex items-center justify-between">
      <span class="border-input w-[35%] border-b dark:border-gray-600"></span>
      <span class="text-muted-foreground text-center text-xs uppercase">
        {{ $t('authentication.thirdPartyLogin') }}
      </span>
      <span class="border-input w-[35%] border-b dark:border-gray-600"></span>
    </div>
    <Row class="enter-x flex items-center justify-evenly">
      <!-- todo 这里在点击登录时要disabled -->
      <Col v-for="item in clientList" :key="item.key" :span="4" class="my-2">
        <Tooltip :title="`${item.title}登录`">
          <span class="flex cursor-pointer items-center justify-center">
            <component
              :is="item.avatar"
              v-if="item.avatar"
              :style="{ color: item.color }"
              class="size-[24px]"
              @click="item.action"
            />
          </span>
        </Tooltip>
      </Col>
    </Row>
  </div>
</template>