parys-github / vue-masonry-gallery Goto Github PK
View Code? Open in Web Editor NEWMasonry gallery layout component for Vue.js
Home Page: https://vue-masonry-gallery.vajracode.com
Masonry gallery layout component for Vue.js
Home Page: https://vue-masonry-gallery.vajracode.com
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!
Hi, I am just using the basic example from docs:
<vue-masonry-gallery :imgsArr="imgsArr"
@scrollReachBottom="fetchData"></vue-masonry-gallery>
and assigning the images
let t = this.images.map(i => ({ url: `${this.apiUrl}/${i.id}/File`, href: `HREFDUR` }));
this.masonryImages = this.masonryImages.concat(t);
but it just shows as 'loading' forever:
I can see that the values have been assigned in dev tools:
Hello,
I'm trying to use your component but import VueMasonryGallery from "vue-masonry-gallery";
fails with: Module not found: Error: Can't resolve 'vue-masonry-gallery' in '/root/social/src/components'
I guess you're missing an export somewhere.
Regards,
Cyrille
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.