vue-gallery icon indicating copy to clipboard operation
vue-gallery copied to clipboard

how to define the gallery no loop

Open codecatgo opened this issue 6 years ago β€’ 1 comments

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

codecatgo avatar Aug 10 '18 06:08 codecatgo

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 :)

mortezasabihi avatar May 22 '19 17:05 mortezasabihi