Blame view

Yi.Vben5.Vue3/apps/web-antd/src/views/workflow/components/approval-timeline.vue 441 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <script setup lang="ts">
  import type { Flow } from '#/api/workflow/instance/model';
  
  import { Timeline } from 'ant-design-vue';
  
  import ApprovalTimelineItem from './approval-timeline-item.vue';
  
  const props = defineProps<{
    list: Flow[];
  }>();
  </script>
  
  <template>
    <Timeline v-if="props.list.length > 0">
      <ApprovalTimelineItem
        v-for="item in props.list"
        :key="item.id"
        :item="item"
      />
    </Timeline>
  </template>