<!--图片滚动-->
<template>
  <a-carousel arrows>
    <template #prevArrow>
      <div class="custom-slick-arrow" style="left: 10px; z-index: 1">
        <left-circle-outlined />
      </div>
    </template>
    <template #nextArrow>
      <div class="custom-slick-arrow" style="right: 10px">
        <right-circle-outlined />
      </div>
    </template>
    <div key="1">
      <img :src="require('@/assets/image/banner/banner01.jpg')" />
    </div>
    <div key="2">
      <img :src="require('@/assets/image/banner/banner02.jpg')" style="width: 100%;height:100%;object-fit: cover;"/>
    </div>
    <div key="3">
      <img :src="require('@/assets/image/banner/banner03.jpg')" style="width: 100%;height:100%;object-fit: contain;"/>
    </div>
    <div key="4">
      <img :src="require('@/assets/image/banner/banner04.jpg')" />
    </div>
    <div key="5">
      <img :src="require('@/assets/image/banner/banner05.jpg')" />
    </div>
  </a-carousel>
</template>
<script>
  import {
    message
  } from 'ant-design-vue';

  import {
    defineComponent,
    onMounted,
    ref,
    watch,
    reactive,
    onUnmounted,
    computed
  } from "vue";

  export default defineComponent({

    setup(props) {
      //当前仓库的信息汇总
      onMounted(() => {

      });
      onUnmounted(() => {

      });
      return {
      };
    }
  });
</script>
<style scoped>
  /* For demo */
  :deep(.slick-slide) {
    text-align: center;
    height: 60%;
    max-height: 600px;
    line-height: 160px;
    /* background: #364d79; */
    background:#fff;
    overflow: hidden;
  }

  :deep(.slick-arrow.custom-slick-arrow) {
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #fff;
    background-color: rgba(5, 45, 61, 0.11);
    transition: ease all 0.3s;
    opacity: 0.3;
    z-index: 1;
  }

  :deep(.slick-arrow.custom-slick-arrow:before) {
    display: none;
  }

  :deep(.slick-arrow.custom-slick-arrow:hover) {
    color: #fff;
    opacity: 0.5;
  }

  :deep(.slick-slide h3) {
    color: #fff;
  }
  img {
      width: 100%; /* 设置图片宽度为100% */
      height: 100%; /* 设置图片高度为100% */
      /* objectfit: contain; */ /* 使图片保持宽高比并填满容器 contain */
       objectfit: cover; /* 使图片填充整个容器 */
  }
</style>
