Make StillImage react to src changes
This commit is contained in:
parent
de9114e618
commit
fe1446732a
1 changed files with 8 additions and 0 deletions
|
@ -57,6 +57,14 @@ const StillImage = {
|
||||||
onError () {
|
onError () {
|
||||||
this.imageLoadError && this.imageLoadError()
|
this.imageLoadError && this.imageLoadError()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
src () {
|
||||||
|
this.realSrc = this.src
|
||||||
|
},
|
||||||
|
dataSrc () {
|
||||||
|
this.$el.removeAttribute('data-loaded')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue