fix(timeline): [timeline] add vertical description to node description slot (#1685)

This commit is contained in:
wuyiping0628 2024-06-25 20:20:43 -07:00 committed by GitHub
parent 1074f78548
commit 4758a2635e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,9 @@
<slot name="right" :slot-scope="node">
<div class="tiny-timeline-item__content" @click="handleClick(node)">
<div class="name">{{ node[rootProps.nameField] }}</div>
<slot name="description" :slot-scope="node">
{{ node.description }}
</slot>
<div v-if="shape === 'dot'" class="time">{{ node[rootProps.timeField] }}</div>
</div>
</slot>