Browse Source

refactor: ♻️ 调整轮播

pull/8/head
姜鑫 3 years ago
parent
commit
748fe3fb0a
  1. 4
      src/components/ScrollList/ScrollList.vue

4
src/components/ScrollList/ScrollList.vue

@ -1,11 +1,11 @@
<template> <template>
<div class="flex relative items-stretch rounded-[10px] bg-[#E9E9E9] mx-10"> <div class="flex relative items-stretch rounded-[10px] bg-[#E9E9E9] mx-10">
<div class="swiper-container w-[calc(100%-104px)] my-[30px]">
<div class="swiper-container w-[calc(100%-104px)] my-[30px] pl-6">
<Swiper <Swiper
v-if="chunkList.length" v-if="chunkList.length"
rewind
:autoplay="chunkList.length > 1 ? { delay: 15000 } : false" :autoplay="chunkList.length > 1 ? { delay: 15000 } : false"
:modules="modules" :modules="modules"
:slides-offset-before="24"
style="height: 879px" style="height: 879px"
@swiper="swiperInit" @swiper="swiperInit"
> >

Loading…
Cancel
Save