style: 🚨 linter go brrrr
This commit is contained in:
parent
9df1999391
commit
48d2a6f2f8
13 changed files with 73 additions and 79 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue