mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2025-12-30 01:32:26 +00:00
21 lines
442 B
Vue
21 lines
442 B
Vue
<script setup lang="ts">
|
|
import type { Flow } from '#/api/workflow/instance/model';
|
|
|
|
import { Empty, Timeline } from 'ant-design-vue';
|
|
|
|
import ApprovalTimelineItem from './approval-timeline-item.vue';
|
|
|
|
interface Props {
|
|
list: Flow[];
|
|
}
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<Timeline v-if="list.length > 0">
|
|
<ApprovalTimelineItem v-for="item in list" :key="item.id" :item="item" />
|
|
</Timeline>
|
|
<Empty v-else />
|
|
</template>
|