<template>
  <div id="zhanshi">
    <el-col class="zhanshi">
      <el-col :span="24" class="topTitle">
        {{ title }}
      </el-col>
      <el-col :span="24" class="image">
        <el-carousel trigger="click" height="340px">
          <el-carousel-item v-for="(item, index) in imageList" :key="index">
            <el-image class="beijing" :src="src"></el-image>
            <el-col class="imageList">
              <el-image :src="item.pic" style="width:345px;height:280px;"></el-image>
            </el-col>
          </el-carousel-item>
        </el-carousel>
      </el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'zhanshi',
  props: {
    imageList: null,
  },
  components: {},
  data: () => ({
    title: '数据展示',
    src: require('@/assets/beijing1.gif'),
  }),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.zhanshi {
  width: 550px;
  height: 420px;
  padding: 20px;
}
.topTitle {
  float: left;
  background-color: #fff;
  font-size: 22px;
  height: 30px;
  color: #215299;
  margin: 0 0 10px 0;
}
.image {
  height: 340px;
  overflow: hidden;
}
.beijing {
  position: absolute;
  width: 100%;
  height: 340px;
}
.imageList {
  text-align: center;
  padding: 20px 0 0 0;
}
</style>
