parent
d9131cbe22
commit
738a918df6
@ -1,21 +1,20 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { Flow } from '#/api/workflow/instance/model';
|
import type { Flow } from '#/api/workflow/instance/model';
|
||||||
|
|
||||||
import { Timeline } from 'ant-design-vue';
|
import { Empty, Timeline } from 'ant-design-vue';
|
||||||
|
|
||||||
import ApprovalTimelineItem from './approval-timeline-item.vue';
|
import ApprovalTimelineItem from './approval-timeline-item.vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
interface Props {
|
||||||
list: Flow[];
|
list: Flow[];
|
||||||
}>();
|
}
|
||||||
|
|
||||||
|
defineProps<Props>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Timeline v-if="props.list.length > 0">
|
<Timeline v-if="list.length > 0">
|
||||||
<ApprovalTimelineItem
|
<ApprovalTimelineItem v-for="item in list" :key="item.id" :item="item" />
|
||||||
v-for="item in props.list"
|
|
||||||
:key="item.id"
|
|
||||||
:item="item"
|
|
||||||
/>
|
|
||||||
</Timeline>
|
</Timeline>
|
||||||
|
<Empty v-else />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
Reference in new issue