RobinCK / vue-gallery

:camera: Responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. 🇺🇦
https://robinck.github.io/vue-gallery/
MIT License
470 stars 85 forks source link

how to define the gallery no loop #46

Open codecatgo opened 6 years ago

codecatgo commented 6 years ago

i want to know if i can define the gallery no loop,thanks a lot

mortezasabihi commented 5 years ago

i did it like this:

<img :src="map" @click="index = 0" class="img-fluid mb-4 pointer" :alt="details.title">
<gallery :images="map" :index="index" @close="index = null"></gallery>
data(){
    index: null,
 map: [
                require("../assets/img/tehran.png")
 ],
}

it works for me :)