he-tree icon indicating copy to clipboard operation
he-tree copied to clipboard

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

Open Forbik opened this issue 1 year ago • 1 comments

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

Forbik avatar May 16 '24 08:05 Forbik

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>

phphe avatar May 16 '24 09:05 phphe