forked from opentiny/tiny-vue
fix(timeline): [timeline] add vertical description to node description slot (#1685)
This commit is contained in:
parent
1074f78548
commit
4758a2635e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue