maochaoying 2 years ago
parent
commit
314e5682e8
  1. 6
      src/views/Index/index.vue

6
src/views/Index/index.vue

@ -1,7 +1,7 @@
<template>
<swiper
id="screen"
:virtual="true"
:virtual="virtualOption"
:direction="'vertical'"
:slidesPerView="1"
:spaceBetween="0"
@ -131,6 +131,9 @@ export default {
swiperStore.initSwiper(swiper)
totalPageAni(activeIndex, previousIndex)
}
const virtualOption = {
enabled: true,
}
const onSlideChange = swiper => {
const { activeIndex, previousIndex } = swiper
const swiperStore = useSwiperStore()
@ -149,6 +152,7 @@ export default {
return {
isMouseWheel,
onSwiper,
virtualOption,
onSlideChange,
pagination: {
clickable: true,

Loading…
Cancel
Save