Skip to content

Commit 2596bad

Browse files
authored
Merge pull request #66 from sadortun/patch-1
Add event when image changed
2 parents 7625825 + 4788139 commit 2596bad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ export default {
141141
},
142142

143143
select() {
144+
this.$emit('onImageChanged', this.select)
145+
144146
if (this.select >= this.images.length - this.lengthToLoadMore - 1)
145147
this.$emit('onLoad')
146148

0 commit comments

Comments
 (0)