Only load timeline in active slide
This commit is contained in:
parent
6383babe04
commit
30beffab78
@ -44,6 +44,9 @@
|
||||
"
|
||||
@swiper="setSwiperRef"
|
||||
@slide-change="onSlideChange"
|
||||
:touch-angle="25"
|
||||
:threshold="10"
|
||||
:centeredSlides="true"
|
||||
>
|
||||
<swiper-slide
|
||||
v-for="index in timelines"
|
||||
@ -51,6 +54,7 @@
|
||||
:virtual-index="index"
|
||||
>
|
||||
<XTimeline
|
||||
v-if="index == timelines[swiperRef.activeIndex]"
|
||||
ref="tl"
|
||||
:key="src"
|
||||
class="tl"
|
||||
|
@ -113,6 +113,10 @@ html, body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.swiper-slide {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
|
Loading…
Reference in New Issue
Block a user