<div class="wrapper" :class="cname"> <swiper :options="options"> <swiper-slide v-for="(item, index) in items" :key="index"> <slot :src="item"></slot> </swiper-slide> <div class="swiper-pagination" v-if="options.pagination" slot="pagination"></div> </swiper></div>name: "sliderComponent",props: { cname: { type: String, default: "" }, options: { type: Object, default () { return { autoplay: { delay: 3000, disableOnInteraction: false, //stopOnLastSlide: false }, loop: true, pagination: { el: '.swiper-pagination' }, observeParents:true, observer:true } } },
qq_醉殇_0
Helenr