|
|
@ -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, |
|
|
|