Merge pull request 'Only load timeline in active swiper slide' (#10200) from Freeplay/calckey:swiper into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10200
This commit is contained in:
commit
ceae7341d4
|
@ -243,7 +243,7 @@ function focusFooter(ev) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
:deep(a) {
|
:deep(a, button) {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
:tabs="headerTabs"
|
:tabs="headerTabs"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="600" :margin-min="20">
|
<MkSpacer :content-max="600" :margin-min="20">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
:tabs="headerTabs"
|
:tabs="headerTabs"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="600" :margin-min="16" :margin-max="32">
|
<MkSpacer :content-max="600" :margin-min="16" :margin-max="32">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
:tabs="headerTabs"
|
:tabs="headerTabs"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="700">
|
<MkSpacer :content-max="700">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/></template>
|
/></template>
|
||||||
<div class="lznhrdub">
|
<div class="lznhrdub">
|
||||||
<MkSpacer :content-max="1200">
|
<MkSpacer :content-max="1200">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:display-back-button="true"
|
:display-back-button="true"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="1200">
|
<MkSpacer :content-max="1200">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
:margin-min="16"
|
:margin-min="16"
|
||||||
:margin-max="32"
|
:margin-max="32"
|
||||||
>
|
>
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/></template>
|
/></template>
|
||||||
<div>
|
<div>
|
||||||
<MkSpacer :content-max="800">
|
<MkSpacer :content-max="800">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<MkSpacer :content-max="800">
|
<MkSpacer :content-max="800">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
:tabs="headerTabs"
|
:tabs="headerTabs"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="700">
|
<MkSpacer :content-max="700">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:display-back-button="true"
|
:display-back-button="true"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="800">
|
<MkSpacer :content-max="800">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:display-back-button="true"
|
:display-back-button="true"
|
||||||
/></template>
|
/></template>
|
||||||
<MkSpacer :content-max="800">
|
<MkSpacer :content-max="800">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
/>
|
/>
|
||||||
</div> *v-else on next div* -->
|
</div> *v-else on next div* -->
|
||||||
<div class="tl _block">
|
<div class="tl _block">
|
||||||
<swiper
|
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
|
||||||
:modules="[Virtual]"
|
:modules="[Virtual]"
|
||||||
:space-between="20"
|
:space-between="20"
|
||||||
:virtual="true"
|
:virtual="true"
|
||||||
|
@ -51,6 +51,7 @@
|
||||||
:virtual-index="index"
|
:virtual-index="index"
|
||||||
>
|
>
|
||||||
<XTimeline
|
<XTimeline
|
||||||
|
v-if="index == timelines[swiperRef.activeIndex]"
|
||||||
ref="tl"
|
ref="tl"
|
||||||
:key="src"
|
:key="src"
|
||||||
class="tl"
|
class="tl"
|
||||||
|
|
|
@ -113,6 +113,10 @@ html, body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swiper-slide {
|
||||||
|
height: unset !important;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in New Issue