<!--
 * @Author: ch
 * @Date: 2022-05-04 17:50:33
 * @LastEditors: ch
 * @LastEditTime: 2022-05-04 22:15:26
 * @Description: file content
-->

<template>
  <div class="home-banner">
    <el-carousel height="360px" indicator-position="outside">
      <el-carousel-item v-for="item in bannerList" :key="item.id">
        <el-image :src="item.picture"></el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  name: "HomtBanner",
  data() {
    return {
      bannerList: [
        {
          picture:
            "https://msb-edu-dev.oss-cn-beijing.aliyuncs.com/uc/account-avatar/banner4.jpg",
        },
        {
          picture:
            "https://msb-edu-dev.oss-cn-beijing.aliyuncs.com/uc/account-avatar/2banner.png",
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
.home-banner {
  /deep/.el-carousel {
    .el-carousel__container {
      i {
        font-size: 18px;
      }
    }
    .el-carousel__arrow {
      width: 45px;
      height: 45px;
    }
    .el-carousel__arrow--left {
      left: calc(50% - 380px) !important;
    }
    .el-carousel__arrow--right {
      right: calc(50% - 550px) !important;
    }
    .el-image {
      width: 100%;
    }
  }
}
</style>
