We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loaded
1 parent 6a0bf2a commit fc30131Copy full SHA for fc30131
packages/nuxt/src/runtime/components/UnLazyImage.vue
@@ -111,6 +111,7 @@ watchEffect(() => {
111
if (props.autoSizes)
112
_autoSizes(target.value)
113
loadImage(target.value)
114
+ emit('loaded', target.value)
115
return
116
}
117
@@ -120,7 +121,9 @@ watchEffect(() => {
120
121
// Placeholder is already decoded
122
cleanup = lazyLoad(target.value, {
123
hash: false,
- onImageLoad: image => emit('loaded', image),
124
+ onImageLoad(image) {
125
+ emit('loaded', image)
126
+ },
127
})
128
129
0 commit comments