Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I really apologies for inconvenience but I explained that it has to have a different template. You've done a great job but it has one issue. It's not that I've been telling about. <template><Carousel><slide><img src=""></slide><img src=""><slide><slide><img src=""></slide>
    – Akirambur
    Commented Feb 22, 2023 at 15:45
  • No problem :-) Then explain please your "different template". Show the other side, what do you want to put in the slots.
    – Tolbxela
    Commented Feb 22, 2023 at 15:50
  • Btw, this solution will work independent from what you are trying to put in your slots.
    – Tolbxela
    Commented Feb 22, 2023 at 15:56
  • Each slot is the slide in this template. What do I want? I want to provide a value of current slide into my slot slide and then inject it to make possible render it with v-show like v-show="index == currentSlide" Your code is way too complex solution and it doesn't provide a function of adding another component inside this one. I want to add my Lightbox inside slide like <Carousel><Slide><Lightbox></Lightbox></Slide></Carousel> And this lightbox allows me to open an image in carousel in image gallery
    – Akirambur
    Commented Feb 22, 2023 at 16:01
  • I also think that I have to understand the code I'm going to use. This is why I want to use a different approach which I've already seen on youtube channel "LearnVue" because I understand. But I've never tried using vnodes, so It's a bit too early to dive into this feature of vue
    – Akirambur
    Commented Feb 22, 2023 at 16:08