Created
May 29, 2023 16:37
-
-
Save dochner/7563fbfc8024dfd3691467fb94f8a163 to your computer and use it in GitHub Desktop.
This is a workaround to template multiple slots of some vue component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template v-for="(_, name) in $slots" #[name]="slotProps = {}"> | |
<slot v-bind="slotProps" :name="name"></slot> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment