Invalid vue-awesome-swiper options setting

encapsulating swiper, in child components setting options in child components can take effect, but parent component setting options is invalid.

//slider.vue 
<template>
  <swiper :options="swiperOption">
    <swiper-slide></swiper-slide>
    <div class="swiper-pagination" slot="pagination"></div>
  </swiper>
</template>

<script>
export default {
  name: "carrousel",
  props: {
    swiperOption: {
      type: Object,
      default () {
        return {}//
      }
    }
  }
}
</script>
//home.vue 
<template>
<div>
  <slider :options="swiperOption"></slider>
</div>
</template>

<script>
import Slider from "@/common/slider"
export default {
  data () {
    return {
      swiperOption: {//
        autoplay: true,
        loop: true,
        pagination: {
          el: ".swiper-pagination"
        }
      }
  },
  components: {
    Slider
  }
}
</script>

have you ever encountered the same problem? I"ve been confused for a day.

Mar.30,2021

//home.vue 
<template>
<div>
  <slider :items="banners" :swiperOption="swiperOption"></slider>
</div>
</template>

your side of the sub-component receives swiperOption , and you pass options

.

Hello I have the same problem, but it still doesn't work after setting it up according to the above solution

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c572-e856.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c572-e856.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?