MopTym / vue-waterfall

A waterfall layout component for Vue.js
MIT License
2.19k stars 260 forks source link

Invalid default value for prop "emitter" #11

Closed haffla closed 8 years ago

haffla commented 8 years ago

Hello! I get the following warnings when using vue-waterfall. I don't seem to find the reason for this. Any idea?

screenshot_20161023_171443

The relevant code is the following:

<waterfall :line-gap="200" :watch="locations">
    <waterfall-slot v-for="location in locations" :width="100" :height="100" :key="location.id">
      <h1>Test</h1>
    </waterfall-slot>
</waterfall>

locations is an array of objects.

It is working, but the 2 red warnings in the console are kind of annoying and I would like to know what's it about. I'm kind of new to vue.

My vue version is 2.0.3.

MopTym commented 8 years ago

Fixed. 8a7110b . Thx for your feedback.

In addition, the code should be:

<waterfall :line-gap="200" :watch="locations">
    <waterfall-slot v-for="(location, index) in locations" :width="100" :height="100" :key="location.id" :order="index">
      <h1>Test</h1>
    </waterfall-slot>
</waterfall>
haffla commented 8 years ago

Damn that was fast! It's working now. Great, thank you.