vue-masonry-gallery
vue-masonry-gallery copied to clipboard
Nuxt support?
Hi there, love the library! I've been looking around at solutions but other libraries (Vue-Masonry, Vue-Masonry-CSS) are clunky. This one looks perfect. I do have a couple of questions for you though...
-
Does this offer Nuxt support? I created a plugin file as normal, added it to my nuxt config, and when I try to implement it nothing appears. There are no console errors either. The only thing I noticed is that when I inspect where the elements should be, I see
<vue-masonry-gallery data-v-7062751f="" imgs-arr="[object Object],[object Object],[object Object],[object Object],[object Object]" src-key="source.public_id" max-cols="3"></vue-masonry-gallery>
, so it looks like it's not being converted correctly to a div like your example does. -
The way my data coming in is structured, I have an array of five objects. Each object has a source object, and inside of that source object is a public_id URL where I'm pulling in my images from a CDN. How would I go about using the :srcKey attribute to access that src?
Thanks!