swiperjs

How to fix bug with two-way controll swiper in reactjs

与世无争的帅哥 提交于 2021-01-29 15:02:48
问题 So, I have two swipers with two-way controlls: function GroupSchedule({ setModalIsOpen, setModalContent, isFetched }) { const [thumbsSwiper, setThumbsSwiper] = useState(null); const [lessonsSwiper, setLessonsSwiper] = useState(null); return ( <> <TopBar setModalIsOpen={setModalIsOpen} /> <Swiper slidesPerView={4} centeredSlides onSwiper={setThumbsSwiper} controller={{ control: lessonsSwiper }} > {...slides1} </Swiper> { isFetched ? <Loader /> : <Swiper spaceBetween={5} slidesPerView={1}

vue-awesome-swiper(swiperjs) on Nuxt js not working in production but works on dev

99封情书 提交于 2020-08-10 16:40:17
问题 I am using vue-awesome-swiper and have followed the steps here: https://github.com/surmon-china/vue-awesome-swiper. I have opted to register this plugin globally in Nuxt js. PROBLEM : The Dev works perfectly fine, the slides are on each page and the navigation works. The production, on the other hand, has all the slides on page one, the navigation works here leaving the other pages blank as all slides are on the first page. On dev: On production: These are my files: plugins/VueAwesomeSwiper

vue-awesome-swiper(swiperjs) on Nuxt js not working in production but works on dev

梦想的初衷 提交于 2020-08-10 16:36:26
问题 I am using vue-awesome-swiper and have followed the steps here: https://github.com/surmon-china/vue-awesome-swiper. I have opted to register this plugin globally in Nuxt js. PROBLEM : The Dev works perfectly fine, the slides are on each page and the navigation works. The production, on the other hand, has all the slides on page one, the navigation works here leaving the other pages blank as all slides are on the first page. On dev: On production: These are my files: plugins/VueAwesomeSwiper

vue-awesome-swiper(swiperjs) on Nuxt js not working in production but works on dev

情到浓时终转凉″ 提交于 2020-08-10 16:36:13
问题 I am using vue-awesome-swiper and have followed the steps here: https://github.com/surmon-china/vue-awesome-swiper. I have opted to register this plugin globally in Nuxt js. PROBLEM : The Dev works perfectly fine, the slides are on each page and the navigation works. The production, on the other hand, has all the slides on page one, the navigation works here leaving the other pages blank as all slides are on the first page. On dev: On production: These are my files: plugins/VueAwesomeSwiper