phphe/he-tree

Is it possible to add a custom element at the end of each nested?

Closed this issue · 1 comments

Is it possible to add a custom element at the end of each nested? Thanks.
example
image

You can place it in last node. In slot, use node index to detect if it is last one.

<template #default="{ node, stat }">
  {{stat.parent.children.indexOf(node)}}
</template>