style: 🚨 linter go brrrr

This commit is contained in:
Sebin Nyshkim 2021-04-26 19:22:26 +02:00
parent 9df1999391
commit 48d2a6f2f8
13 changed files with 73 additions and 79 deletions

View file

@ -39,13 +39,13 @@ export default {
data() {
return {
activeImage: 0,
images: []
images: [],
};
},
computed: {
offset() {
return `margin-left: -${this.activeImage * 100}%`;
}
},
},
methods: {
setActive(index) {
@ -60,12 +60,12 @@ export default {
if (this.activeImage < this.images.length - 1) {
this.activeImage += 1;
}
}
},
},
mounted() {
const images = Array.from(this.$el.querySelectorAll("img"));
this.images = images;
}
},
};
</script>