phphe/he-tree

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

Forbik opened this issue · 1 comments

Forbik commented

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

phphe commented

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>