fix img lazyloading
This commit is contained in:
parent
f1fe10e715
commit
a000704a99
2 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
<template lang="pug">
|
||||
.card.event.h-event.mt-1.text-white(body-style='padding: 0px;')
|
||||
nuxt-link(:to='`/event/${event.id}`')
|
||||
el-image(v-if='showImage && event.image_path' lazy-load :src='`/media/thumb/${event.image_path}`')
|
||||
el-image(v-if='showImage && event.image_path'
|
||||
lazy :src='`/media/thumb/${event.image_path}`')
|
||||
.float-right
|
||||
i.text-danger.el-icon-refresh(v-if='event.parentId')
|
||||
.badge.text-info(v-if='settings.enable_resources && event.resources && event.resources.length') {{event.resources.length}}
|
||||
|
@ -109,6 +110,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.el-image { width: 100% }
|
||||
img {
|
||||
width: 100%;
|
||||
max-height: 250px;
|
||||
|
|
|
@ -110,6 +110,7 @@ module.exports = {
|
|||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
enforce: true,
|
||||
name (module) {
|
||||
// get the name. E.g. node_modules/packageName/not/this/part.js
|
||||
// or node_modules/packageName
|
||||
|
|
Loading…
Reference in a new issue