src/books/content/components/carousel.vue
@@ -1,18 +1,6 @@ <template> <div> <el-carousel :interval="3000" :type="imgList?.length > 2 ? 'card' : ''" indicator-position="none" :height="settingHeight != '' ? settingHeight : '350px'" > <el-carousel-item v-for="(item, i) in imgList" :key="i"> <div class="imgCarousel"> <el-image :src="item.url" :preview-src-list="srcList" :fit="'fill'"/> <span v-if="item.name" class="medium">{{ item.name }}</span> </div> </el-carousel-item> </el-carousel> </div> </template> <script>