<template>
    <div class="headLineBigBox">
        <!--头条组件皮肤1-->
        <div v-if="skinId==1">
            <style1 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--头条组件皮肤2-->
        <div v-if="skinId==2">
            <style2 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--头条组件皮肤3-->
        <div v-if="skinId==3">
            <style3 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--头条组件皮肤4-->
        <div v-if="skinId==4">
            <style4 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--头条组件皮肤5-->
        <div v-if="skinId==5">
            <style5 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--头条组件皮肤6-->
        <div v-if="skinId==6">
            <style6 
                :templateData="templateData[0].componentData.data.textnum" 
                :componentStyle="templateData[0].component_style"
            />
        </div>
    </div>
</template>

<script setup>
//头条组件皮肤1
import style1 from '@/components/template/component/headLine/1200x140/1.vue'
//头条组件皮肤2
import style2 from '@/components/template/component/headLine/1200x140/2.vue'
// 头条组件皮肤3
import style3 from '@/components/template/component/headLine/1200x140/3.vue'
//头条组件皮肤4
import style4 from '@/components/template/component/headLine/1200x140/4.vue'
//头条组件皮肤5
import style5 from '@/components/template/component/headLine/1200x140/5.vue'
//头条组件皮肤6
import style6 from '@/components/template/component/headLine/1200x140/6.vue'

//暂无数据
import nodata from '@/components/template/component/public/nodata.vue'
const props = defineProps({
    skinId: Number,//皮肤id
    templateData:Object,//新闻数据
});
</script>

<style lang="less" scoped>
//基本样式 start ---------------------------------------->
.headLineBigBox {
    width: 1200px;
    height: 110px;
    position: relative;
    margin: 0 auto;
    margin-bottom: 30px;
    .templateEditBtnBox {
        right: 0;
    }
}
//基本样式 end ---------------------------------------->
</style>