|
|
@@ -161,6 +161,16 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { Carousel, Slide } from "vue3-carousel";
|
|
|
+import "vue3-carousel/dist/carousel.css";
|
|
|
+const carousel = ref(null);
|
|
|
+
|
|
|
+const goPrevious = () => {
|
|
|
+ carousel.value.prev();
|
|
|
+};
|
|
|
+
|
|
|
+const goNext = () => {
|
|
|
+ carousel.value.next();
|
|
|
+};
|
|
|
const items = ref([
|
|
|
{ src: "/images/reviews/review1.png" },
|
|
|
{ src: "/images/reviews/review2.png" },
|
|
|
@@ -168,10 +178,7 @@ const items = ref([
|
|
|
{ src: "/images/reviews/review4.png" },
|
|
|
{ src: "/images/reviews/review5.png" },
|
|
|
]);
|
|
|
-let carousel;
|
|
|
|
|
|
-const goPrevious = () => carousel.prev();
|
|
|
-const goNext = () => carousel.next();
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|