<template>
  <card title="校长寄语">
    <template #header-aside><nuxt-link to="">查看更多+</nuxt-link></template>
    <van-swipe class="my-swipe" :autoplay="3000" :vertical="true" indicator-color="white">
      <template v-for="(item, index) in list">
        <van-swipe-item :key="index"><img :src="item.src" class="banner-img" /></van-swipe-item>
      </template>
    </van-swipe>
  </card>
</template>

<script>
import Card from '@/components/Card'
export default {
  components: { Card },
  data() {
    return {
      list: []
    }
  },
  fetch() {
    this.list = [
      { src: '/images/home_publish_banner.png', href: '' },
      { src: '/images/home_publish_banner.png', href: '' }
    ]
  }
}
</script>

<style lang="scss" scoped>
.my-swipe {
  height: 1.36rem;
}
.banner-img {
  display: block;
  width: 100%;
  height: 1.36rem;
  object-fit: cover;
}
::v-deep .van-swipe__indicators--vertical {
  left: auto;
  right: 0;
}
</style>
