Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Forbik opened this issue May 16, 2024 · 1 comment
Open

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

Forbik opened this issue May 16, 2024 · 1 comment

Comments

@Forbik
Copy link

Forbik commented May 16, 2024

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

@phphe
Copy link
Owner

phphe commented May 16, 2024

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants