<template>
  <div id="newsList">
    <el-row>
      <el-col :span="24" class="top">
        <div class="w_1200">
          <top :info="info" :Color="Color"></top>
        </div>
      </el-col>
      <el-col :sapn="24" class="banner">
        <banner :info="info"></banner>
      </el-col>
      <el-col :span="24" class="menu">
        <menuInfo :menuList="menuList" :backColor="backColor"></menuInfo>
      </el-col>
      <el-col :span="24" class="main">
        <div class="w_1200">
          <el-col :span="5" class="mainNav">
            <listLeft v-if="sideMenu" :sideMenu="sideMenu" :Color="Color"></listLeft>
          </el-col>
          <el-col :span="listSpan" class="mainList">
            <newsInfo :newsList="newsList" :Color="Color" :title="title" v-on="$listeners" v-bind="$attrs"></newsInfo>
          </el-col>
        </div>
      </el-col>
      <el-col :span="24" class="foot">
        <down :info="info" :backColor="backColor"></down>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import top from '@/layout/index/top.vue';
import banner from '@/layout/index/banner.vue';
import menuInfo from '@/layout/index/menuInfo.vue';
import listLeft from '@/layout/list/listLeft.vue';
import newsInfo from '@/layout/list/newsInfo.vue';
import down from '@/layout/index/down.vue';
export default {
  name: 'newsList',
  props: {
    info: null, //头部信息
    Color: null, //头部电话字体颜色
    backColor: null, //导航菜单背景颜色
    newsList: null, //列表信息
    menuList: null, //菜单
    sideMenu: null, //侧菜单
    title: null, //标题
    listSpan: { type: Number, default: 18 }, //全屏还是左右
  },
  components: {
    top, //头部
    banner, //banner
    menuInfo, //导航
    listLeft, //二级左侧导航
    newsInfo, //二级右侧新聞列表（帶有圖片）
    down, //底部信息
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.top {
  height: 120px;
  overflow: hidden;
}
.banner {
  height: 300px;
  overflow: hidden;
}
.menu {
  height: 50px;
  overflow: hidden;
}
.main {
  height: 1060px;
  margin: 50px 0 0 0;
  overflow: hidden;
}
.mainList {
  // width: 746px;
  margin: 0 0 0 20px;
}
.foot {
  height: 133px;
  background-color: #0457c7;
  overflow: hidden;
}
</style>
