he-tree
he-tree copied to clipboard
Is it possible to add a custom element at the end of each nested?
Is it possible to add a custom element at the end of each nested? Thanks.
example
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>