gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
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
<script setup lang="ts">
import type { UserCardProperty } from './config';
 
import { IconifyIcon } from '..\..\..\..\..\..\..\..\packages\icons\src';
 
import { Avatar } from 'ant-design-vue';
 
/** 用户卡片 */
defineOptions({ name: 'UserCard' });
// 定义属性
defineProps<{ property: UserCardProperty }>();
</script>
<template>
  <div class="flex flex-col">
    <div class="flex items-center justify-between px-4 py-6">
      <div class="flex flex-1 items-center gap-4">
        <Avatar :size="60" class="flex items-center">
          <IconifyIcon icon="ep:avatar" :size="60" />
        </Avatar>
        <span class="text-[18px] font-bold">芋道源码</span>
      </div>
      <IconifyIcon icon="tdesign:qrcode" :size="20" />
    </div>
    <div class="flex items-center justify-between bg-card px-5 py-2 text-xs">
      <span class="text-orange-500">点击绑定手机号</span>
      <span class="rounded-lg bg-orange-500 px-2 py-1 text-white">
        去绑定
      </span>
    </div>
  </div>
</template>