<template>
  <div class="commentSectorBox">
    <div class="commentSectorBoxTitle">
      <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="commentSectorBoxContent">
      <div class="tabsCalendarNewsBox">
        <editBtn :id="id" :sort="1" :type="1" :size="5"/>
        <convertBtn :id="id" :sort="1" :type="5"/>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[1].component_style == 1">
          <tabs1Style />
        </div>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[1].component_style == 2">
          <tabs2Style />
        </div>
      </div>
      <div class="calendarBox">
        <editBtn :id="id" :sort="2" :type="8" :size="1"/>
        <convertBtn :id="id" :sort="2" :type="8"/>
        <div v-if="this.$store.state.template.pageData.index[id].content.componentList[2].component_style == 1">
          <form1Style />
        </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'
//tabs组件
import tabs1Style from './components/tabs/1.vue'
import tabs2Style from './components/tabs/2.vue'
//留言组件
import form1Style from './components/form/1.vue'

export default {
  components: {
    editBtn,
    convertBtn,
    title1Style,
    tabs1Style,
    tabs2Style,
    form1Style
  },
  props: {
    id: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      
    };
  },
  methods: {
    
    
  },
  mounted() {
    
  },
};
</script>

<style scoped lang="less">
  .commentSectorBox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    .commentSectorBoxTitle {
      width: 80%;
      border: 2px dashed #999;
      height: 41px;
      position: relative;
    }
    .commentSectorBoxContent {
      width: 80%;
      display: flex;
      .tabsCalendarNewsBox {
        width: 70%;
        box-sizing: border-box;
        padding-right: 20px;
        border: 2px dashed #999;
        position: relative;
      }
      .calendarBox {
        position: relative;
        width: 30%;
        //border: 2px dashed #999;
      }
    }
  }
</style>
