<template>
  <div class="imgTitleSectorBox">
    <div class="imgSectorBox">
      <editBtn :id="id" :sort="0" :type="3" :size="1"/>
      <convertBtn :id="id" :sort="0" :type="3"/>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 1">
        <useStyle1 />
      </div>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 2">
        <useStyle2 />
      </div>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 3">
        <useStyle3 />
      </div>
      <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 4">
        <useStyle4 />
      </div>
    </div>
  </div>
</template>

<script>
import editBtn from '../../public/editBtn.vue'
import convertBtn from '../../public/convertBtn.vue'
import useStyle1 from './components/advertisement/1.vue'
import useStyle2 from './components/advertisement/2.vue'
import useStyle3 from './components/advertisement/3.vue'
import useStyle4 from './components/advertisement/4.vue'

export default {
  components: {
    editBtn,
    convertBtn,
    useStyle1,
    useStyle2,
    useStyle3,
    useStyle4
  },
  props: {
    id:{
      type:Number,
      default:0
    }
  },
  data() {
    return {
      
    };
  },
};
</script>

<style scoped lang="less">
  .imgTitleSectorBox {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .imgSectorBox {
      //border: 2px dashed #999;
      width: 80%;
      height: 60px;
      position: relative;
    }
  }
</style>
