You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(vue,nuxt)!: rename @loaded to @image-load and add @image-error
- Emit names align with the core option names (`onImageLoad`, `onImageError`).
- The declared `error` emit is removed; native `@error` listeners now fall
through via Vue attribute fallthrough and also fire for the synthetic
preload failure dispatched on the visible `<img>`.
- The components capture `triggerLoad`'s disposer so unmount during an
in-flight preload no longer fires callbacks on a destroyed instance.
Copy file name to clipboardExpand all lines: docs/integrations/nuxt.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,8 @@ The component also accepts all standard `<img>` HTML attributes via Nuxt's attri
81
81
82
82
| Event | Payload | Description |
83
83
| --- | --- | --- |
84
-
|`loaded`|`HTMLImageElement`|Emitted when the image has been successfully loaded. |
85
-
|`error`|`Event`|Emitted when an error occurs during image loading. |
84
+
|`image-load`|`HTMLImageElement`|Fired once when the real image finishes loading. |
85
+
|`image-error`|`HTMLImageElement, Event`|Fired when the preload fails. See [migration notes](/guide/migration#native-img-error-now-fires-on-preload-failure) for native `@error` behavior. |
Copy file name to clipboardExpand all lines: docs/integrations/vue.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,8 @@ The component also accepts all standard `<img>` HTML attributes via Vue's attrib
77
77
78
78
| Event | Payload | Description |
79
79
| --- | --- | --- |
80
-
|`loaded`|`HTMLImageElement`|Emitted when the image has been successfully loaded. |
81
-
|`error`|`Event`|Emitted when an error occurs during image loading. |
80
+
|`image-load`|`HTMLImageElement`|Fired once when the real image finishes loading. |
81
+
|`image-error`|`HTMLImageElement, Event`|Fired when the preload fails. See [migration notes](/guide/migration#native-img-error-now-fires-on-preload-failure) for native `@error` behavior. |
0 commit comments