Skip to content

Commit

Permalink
feat: add click listener
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 4, 2020
1 parent b88bb9c commit cbe2351
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/nuxt-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export default {
})

const wrapper = h('div', {
class: ['__nim_w', this.lazyState === LazyState.LOADED ? 'visible' : ''].concat(this.$attrs.class || '')
class: ['__nim_w', this.lazyState === LazyState.LOADED ? 'visible' : ''].concat(this.$attrs.class || ''),
on: {
click: event => this.$emit('click', event)

This comment has been minimized.

Copy link
@pi0

pi0 Nov 5, 2020

Member

What about other events?

}
}, [placeholder, originalImage, noScript, ratioBox])

return wrapper
Expand Down

0 comments on commit cbe2351

Please sign in to comment.