<template>
  <div class="swiper-image">
    <swiper v-if="list.length > 0">
      <swiper-slide v-for="item in list" :key="item.image">
        <pure-image :bg-color="item.color" :bg-image="item.image"></pure-image>
      </swiper-slide>
    </swiper>
    <div class="slide-sign">
      <img :src="require('@/assets/images/apartment/slideSign.png')" alt="">
    </div>
  </div>
</template>

<script>
export default {
  name: 'SwiperImage',
  components: {
    PureImage: () => import('./PureImage.vue')
  },
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.swiper-image {
  position: relative;
  width: 100%;
  height: 100%;

  .slide-sign {
    position: absolute;
    z-index: 100;
    right: 20px;
    top: 50%;
    width: 64px;
    height: 56px;
    animation: slidefade 2s infinite;

    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
