<template>
  <div :class="['manyPictureSectorBox', {buildingBorder: this.$store.state.template.previewStatus==false}]">
    <div :class="['manyPictureSectorBoxTitle', {componentBorder: $store.state.template.previewStatus==false}]">
      <editBtn :id="id" :sort="0" :type="7" :size="1"/>
      <convertBtn :id="id" :sort="0" :type="2"/>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 1">
        <title1Style />
      </div>
    </div>
    <div class="manyPictureImgBox">
      <editBtn :id="id" :sort="1" :type="6"/>
      <convertBtn :id="id" :sort="1" :type="7"/>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[1].component_style == 1">
        <staticHtml1Style />
      </div>
    </div>
    <div class="manyPictureNewsBox">
      <div :class="['manyPictureNewsItem', {componentBorder: $store.state.template.previewStatus==false}]">
        <editBtn :id="id" :sort="2" :type="1" :size="5"/>
        <convertBtn :id="id" :sort="2" :type="6"/>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[2].component_style == 1">
          <list1Style />
        </div>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[2].component_style == 2">
          <list2Style />
        </div>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[2].component_style == 3">
          <list3Style />
        </div>
      </div>
      <div :class="['manyPictureNewsItem', {componentBorder: $store.state.template.previewStatus==false}]">
        <editBtn :id="id" :sort="3" :type="1" :size="5"/>
        <convertBtn :id="id" :sort="3" :type="6"/>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[3].component_style == 1">
          <list1Style />
        </div>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[3].component_style == 2">
          <list2Style />
        </div>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[3].component_style == 3">
          <list3Style />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//编辑按钮
import editBtn from '../../../public/editBtn.vue'
import convertBtn from '../../../public/convertBtn.vue'
//标题组件
import title1Style from '../components/title/1.vue'
//静态组件
import staticHtml1Style from '../components/staticHtml/1.vue'
//新闻列表组件
import list1Style from '../components/list/1.vue'
import list2Style from '../components/list/2.vue'
import list3Style from '../components/list/3.vue'


export default {
  components: {
    editBtn,
    convertBtn,
    title1Style,
    staticHtml1Style,
    list1Style,
    list2Style,
    list3Style
  },
  props: {
    id:{
      type:Number,
      default:0
    }
  },
  data() {
    return {
      
    };
  },
  methods: {
    
  },
  mounted() {
    
  },
};
</script>

<style scoped lang="less">
  .manyPictureSectorBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:100%;
    position: relative;
    height: 475px;
    .componentBorder{
      border: 2px dashed #999;
    }
    .manyPictureImgBox {
      width: 80%;
      position: relative;
    }
    .manyPictureSectorBoxTitle {
      width: 80%;
      //border: 2px dashed #999;
      height: 41px;
      position: relative;
    }
    .manyPictureSectorBox {
      width: 80%;
      //border: 1px dashed #999;
    }
    .manyPictureNewsBox {
      width: 80%;
      //border: 1px dashed #999;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .manyPictureNewsItem {
        width: 50%;
        //border: 2px dashed #999;
        box-sizing: border-box;
        position: relative;
      }
      .manyPictureNewsItem:nth-child(1) {
        padding-right: 10px;
      }
      .manyPictureNewsItem:nth-child(2) {
        padding-left: 10px;
      }
    }
  }
</style>

