You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

carouselSection.vue 834B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <section id="intro">
  3. <carousel
  4. :nav="false"
  5. :dots="false"
  6. :items="10"
  7. :autoplay="true"
  8. :loop="true"
  9. :autoHeight="true"
  10. id="intro-carousel"
  11. style="margin-top:-50px;"
  12. :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
  13. >
  14. <div v-for="(image, i) in resortImages" :key="i">
  15. <img class="item" style="object-fit:cover" :src="image" :key="i" />
  16. </div>
  17. </carousel>
  18. </section>
  19. </template>
  20. <script>
  21. /* eslint-disable */
  22. import carousel from "vue-owl-carousel";
  23. export default {
  24. components: {
  25. carousel
  26. },
  27. props: {
  28. resortImages: {}
  29. },
  30. data() {
  31. return {
  32. images: []
  33. };
  34. },
  35. async created() {
  36. this.images = await this.resortImages;
  37. }
  38. };
  39. </script>
  40. <style lang="scss" scoped></style>