车间能级提升-智能设备管理系统
朱桂飞
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
45
46
47
48
49
50
<script setup lang="ts">
import { Timeline, TimelineItem } from 'ant-design-vue';
 
/**
 * TODO: 仅为demo 后期会替换
 */
import { VbenAvatar } from '../../../../../../packages/@core/ui-kit/shadcn-ui/src/components';
 
interface ApprovalItem {
  id: string;
  name: string;
  status: string;
  remark?: string;
  time: string;
}
 
const props = defineProps<{
  list: ApprovalItem[];
}>();
</script>
 
<template>
  <Timeline>
    <TimelineItem v-for="item in props.list" :key="item.id">
      <template #dot>
        <div class="relative rounded-full border">
          <VbenAvatar
            class="size-[36px]"
            src="https://plus.dapdap.top/minio-server/plus/2024/11/21/925ed278e2d441beb7f695b41e13c4dd.jpg"
          />
          <div
            class="border-background absolute bottom-0 right-0 size-[16px] rounded-full border-2 bg-green-500 content-['']"
          >
            <div class="flex items-center justify-center">
              <span class="icon-[mdi--success-bold] text-white"></span>
            </div>
          </div>
        </div>
      </template>
      <div class="ml-2 flex flex-col">
        <div>发起人</div>
        <div>疯狂的牛子Li</div>
        <div>2022-01-01 12:00:00</div>
        <div class="rounded-lg border p-1">
          <span class="opacity-70">这里是备注信息</span>
        </div>
      </div>
    </TimelineItem>
  </Timeline>
</template>