<div class="detail-preview" :style='{"width":"1200px","padding":"0 0 20px","margin":"20px auto 0","position":"relative"}'> <div class="attr" :style='{"padding":"20px","borderColor":"#52b646","borderRadius":"12px","flexWrap":"wrap","background":"#fff","borderWidth":"3px","display":"flex","position":"relative","borderStyle":"dotted dashed solid double","justifyContent":"center"}'> <el-carousel :style='{"width":"100%","margin":"0 0 20px 0","height":"400px","order":"1"}' trigger="click" indicator-position="inside" arrow="always" type="card" direction="horizontal" height="400px" :autoplay="true" :interval="3000" :loop="true"> <el-carousel-item :style='{"borderRadius":"10px","width":"50%","height":"100%"}' v-for="item in detailBanner" :key="item.id"> <el-image :style='{"objectFit":"cover","width":"100%","height":"100%"}' v-if="item.substr(0,4)=='http'" :src="item" fit="cover" class="image"></el-image> <el-image :style='{"objectFit":"cover","width":"100%","height":"100%"}' v-else :src="baseUrl + item" fit="cover" class="image"></el-image> </el-carousel-item> </el-carousel>
时间: 2023-06-28 20:06:24 浏览: 121
这是一个 Vue.js 组件,包含了一个轮播图和一些样式定义。其中,轮播图使用了 Element UI 的 `el-carousel` 组件和 `el-image` 组件。该组件具有自动轮播、卡片式展示、指示器在内部、向左和向右箭头、循环播放等功能。该组件的样式包括了边框、圆角、背景色、边框宽度和边框样式等。
阅读全文