shhdgit / vue-easy-slider

Slider Component of Vue.js.
MIT License
354 stars 65 forks source link

Dynamic add/delete slides #56

Closed jessehendriks closed 5 years ago

jessehendriks commented 5 years ago

Hello,

I'm using this package to show images. I get the images from an API and check regularly if images are updated (added or deleted). When an image is added it add an extra slide, that works fine. But when a slide is removed, I will get an empty slide (the image is deleted).

Can you help me fix this?

This is the code that I'm using, where screenItems is data from the API

<slider 
  animation="fade" 
  height="900px" 
  :indicators="false" 
  :interval="10000" 
  :control-btn="false">

    <slider-item
      v-for="item in screenItems"
      :key="item.id">
        <img 
          style="width:100%;height:100%;"
          :src="item.value"
          class="narrowcasting-screen-item">
    </slider-item>

</slider>

Hope I'm clear, if you need more information let me know!

shhdgit commented 5 years ago

I'll check it asap

shhdgit commented 5 years ago

fixed in v5.3.2

jessehendriks commented 5 years ago

Thanks!