Skip to content

Commit a162cbc

Browse files
authored
Merge pull request #15 from pexea12/fix-click-bug
Fix click bug
2 parents e75ab40 + f01f806 commit a162cbc

File tree

6 files changed

+95
-107
lines changed

6 files changed

+95
-107
lines changed

dist/vue-image-lightbox.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-image-lightbox.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-image-lightbox.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "vue-image-lightbox",
33
"description": "A Vue.js package to display an image gallery lightbox",
4-
"version": "5.4.1",
4+
"version": "5.4.2",
55
"author": "Nguyen Thien Dzung <[email protected]>",
66
"license": "MIT",
7-
"main": "dist/vue-image-lightbox.min.js",
7+
"main": "src/components/Lightbox.vue",
88
"files": [
99
"dist",
1010
"src"

src/components/script.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ export default {
6262
},
6363

6464
computed: {
65-
// imagesSrc() {
66-
// if (this.siteLoading) {
67-
// return this.images.map(({ src }) => ({
68-
// src,
69-
// loading: this.siteLoading,
70-
// error: this.siteLoading,
71-
// }))
72-
// }
73-
74-
// return this.images.map(({ src }) => src)
75-
// },
76-
7765
imagesThumb() {
7866
if (this.siteLoading) {
7967
return this.displayThumbs.map(({ thumb }) => ({
@@ -147,7 +135,6 @@ export default {
147135

148136
closeLightBox() {
149137
this.$set(this, 'lightBoxOn', false)
150-
151138
document.removeEventListener('keydown', this.addKeyEvent)
152139
},
153140

@@ -157,7 +144,7 @@ export default {
157144

158145
previousImage() {
159146
this.$set(this, 'select', ((this.select - 1) + this.countImages) % this.countImages)
160-
}
147+
},
161148
},
162149

163150

0 commit comments

Comments
 (0)