Code Monkey home page Code Monkey logo

vue-masonry-gallery's People

Contributors

parys-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-masonry-gallery's Issues

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...

  1. 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.

  2. 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!

Images are loaded twice

We've noticed that all thumbnails are loaded twice - the first time by VueMasonryGallery.vue, the second - by vue itself - what in case of very small jpegs is not a problem, but in case of 500+kb photos could be not so cool :(
2021-03-30_15h32_44

Images never load

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:

image

I can see that the values have been assigned in dev tools:

image

missing export?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.