fixed modalcard lazy load
This commit is contained in:
@@ -3,7 +3,7 @@ export default {
|
||||
directives: {
|
||||
lazy: {
|
||||
bind (figure, binding) {
|
||||
// console.log('lazy bind', figure, binding)
|
||||
console.log('directive lazy bind', figure, binding)
|
||||
// show only the first image
|
||||
if (binding.value === 0) {
|
||||
const img = figure.querySelector('img:not(.blank)')
|
||||
@@ -52,7 +52,7 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
updated () {
|
||||
// lazy load images on mouseover
|
||||
console.log('card mounted', this.$options.name)
|
||||
// if (this.$options.name ==! 'ModalCard') {
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
}
|
||||
// ,
|
||||
// methods: {
|
||||
// // not used
|
||||
// // used by ModalCard
|
||||
// activateLazyLoad () {
|
||||
// console.log('card activateLazyLoad', this.$options.name)
|
||||
|
||||
|
Reference in New Issue
Block a user