diff options
Diffstat (limited to 'src/site/components/grid/waterfall')
| -rw-r--r-- | src/site/components/grid/waterfall/Waterfall.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/site/components/grid/waterfall/Waterfall.vue b/src/site/components/grid/waterfall/Waterfall.vue index 79a330a..762cbbd 100644 --- a/src/site/components/grid/waterfall/Waterfall.vue +++ b/src/site/components/grid/waterfall/Waterfall.vue @@ -1,7 +1,7 @@ <template> <div ref="waterfall" class="waterfall"> <WaterfallItem - v-for="(item, index) in items" + v-for="item in items" :key="item.id" :style="{ width: `${itemWidth}px`, marginBottom: `${gutterHeight}px` }" :width="itemWidth"> @@ -13,6 +13,7 @@ import WaterfallItem from './WaterfallItem.vue'; const isBrowser = typeof window !== 'undefined'; +// eslint-disable-next-line global-require const Masonry = isBrowser ? window.Masonry || require('masonry-layout') : null; const imagesloaded = isBrowser ? require('imagesloaded') : null; |