ruoyi-plus-vben5/apps/web-antd/src/views/workflow/components/approval-timeline.vue

22 lines
448 B
Vue
Raw Normal View History

2024-11-25 15:02:01 +08:00
<script setup lang="ts">
2024-12-12 16:07:42 +08:00
import type { Flow } from '#/api/workflow/instance/model';
2024-12-16 10:18:33 +08:00
import { Timeline } from 'ant-design-vue';
2024-11-25 15:02:01 +08:00
2024-12-16 10:18:33 +08:00
import ApprovalTimelineItem from './approval-timeline-item.vue';
2024-11-25 15:02:01 +08:00
const props = defineProps<{
2024-12-12 16:07:42 +08:00
list: Flow[];
2024-11-25 15:02:01 +08:00
}>();
</script>
<template>
2024-12-16 10:18:33 +08:00
<Timeline v-if="props.list.length > 0">
<ApprovalTimelineItem
v-for="(item, index) in props.list"
:key="index"
:item="item"
/>
2024-11-25 15:02:01 +08:00
</Timeline>
</template>