|
|
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
|
|
|
|
<template> |
|
|
|
|
<ClientOnly> |
|
|
|
|
<div class="swiper-card-container"> |
|
|
|
|
<swiper-container ref="containerRef" :init="false" :effect="'coverflow'"> |
|
|
|
|
<swiper-container ref="containerRef" :init="false"> |
|
|
|
|
<slot></slot> |
|
|
|
|
</swiper-container> |
|
|
|
|
<div class="swiper-cards-prev"></div> |
|
|
|
@ -12,6 +12,7 @@
@@ -12,6 +12,7 @@
|
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
const containerRef = ref(null) |
|
|
|
|
|
|
|
|
|
useSwiper(containerRef, { |
|
|
|
|
effect: 'cards', |
|
|
|
|
grabCursor: true, |
|
|
|
@ -22,7 +23,10 @@ useSwiper(containerRef, {
@@ -22,7 +23,10 @@ useSwiper(containerRef, {
|
|
|
|
|
slideShadows: true, |
|
|
|
|
perSlideOffset: 8, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
autoplay: { |
|
|
|
|
delay: 2500, |
|
|
|
|
disableOnInteraction: false, |
|
|
|
|
}, |
|
|
|
|
pagination: { |
|
|
|
|
el: '.swiper-pagination', |
|
|
|
|
clickable: true, |
|
|
|
|