Elena

Results 3 comments of Elena

it works for me computed: { gallery () { return this.$refs.gallerySlider.$swiper }, thumbs () { return this.$refs.thumbsSlider.$swiper } }, mounted () { this.gallery.thumbs.swiper = this.thumbs this.gallery.thumbs.init() }

@senecaso I was using: "swiper": "^6.7.1", "vue-awesome-swiper": "^4.1.1" also you can read this last documentation, where you can find examples : https://github.com/nomunomu0504/vue-awesome-swiper there are two ways to init swiper, which...

@senecaso if it was directive you can only add this: mounted () { this.modalSlider.thumbs.swiper = this.modalThumbs this.modalSlider.thumbs.init() }, where .modal-gallery(v-swiper:modalSlider="modalGalleryOption") - main slider .modal-thumbs(v-swiper:modalThumbs="modalThumbsOption") - previews slider