Skip to content

Commit

Permalink
Merge pull request #66 from sadortun/patch-1
Browse files Browse the repository at this point in the history
Add event when image changed
  • Loading branch information
pexea12 committed Jun 10, 2019
2 parents 7625825 + 4788139 commit 2596bad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ export default {
},

select() {
this.$emit('onImageChanged', this.select)

if (this.select >= this.images.length - this.lengthToLoadMore - 1)
this.$emit('onLoad')

Expand Down

0 comments on commit 2596bad

Please sign in to comment.