perf: 优化timeline丢失的样式
This commit is contained in:
parent
7f0b40b565
commit
e89d1a0520
@ -13,7 +13,6 @@ import { renderDict } from '#/utils/render';
|
|||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'ApprovalTimelineItem',
|
name: 'ApprovalTimelineItem',
|
||||||
inheritAttrs: false,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<{ item: Flow }>();
|
const props = defineProps<{ item: Flow }>();
|
||||||
@ -42,7 +41,7 @@ onMounted(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TimelineItem :key="item.id">
|
<TimelineItem>
|
||||||
<template #dot>
|
<template #dot>
|
||||||
<div class="relative rounded-full border">
|
<div class="relative rounded-full border">
|
||||||
<VbenAvatar
|
<VbenAvatar
|
||||||
|
@ -13,8 +13,8 @@ const props = defineProps<{
|
|||||||
<template>
|
<template>
|
||||||
<Timeline v-if="props.list.length > 0">
|
<Timeline v-if="props.list.length > 0">
|
||||||
<ApprovalTimelineItem
|
<ApprovalTimelineItem
|
||||||
v-for="(item, index) in props.list"
|
v-for="item in props.list"
|
||||||
:key="index"
|
:key="item.id"
|
||||||
:item="item"
|
:item="item"
|
||||||
/>
|
/>
|
||||||
</Timeline>
|
</Timeline>
|
||||||
|
Loading…
Reference in New Issue
Block a user