<template>
    <div class="imgNewsBigBox">
        <!--组件皮肤1-->
        <div v-if="skinId==1">
            <news1Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--组件皮肤2-->
        <div v-if="skinId==2">
            <news2Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--组件皮肤3-->
        <div v-if="skinId==3">
            <news3Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--组件皮肤4-->
        <div v-if="skinId==4">
            <news4Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--组件皮肤5-->
        <div v-if="skinId==5">
            <news5Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            />
        </div>
        <!--组件皮肤6-->
        <div v-if="skinId==6">
            <news6Style 
                :titleLink="componentTitle1" 
                :templateData="templateData[0].componentData.data"
                :componentStyle="templateData[0].component_style"
            /> 
        </div>
    </div>
</template>

<script setup>
//组件皮肤1
import news1Style from '@/components/template/component/list/1200x410/1.vue'
//组件皮肤2
import news2Style from '@/components/template/component/list/1200x410/2.vue'
//组件皮肤3
import news3Style from '@/components/template/component/list/1200x410/3.vue'
//组件皮肤4
import news4Style from '@/components/template/component/list/1200x410/4.vue'
//组件皮肤5
import news5Style from '@/components/template/component/list/1200x410/5.vue'
//组件皮肤6
import news6Style from '@/components/template/component/list/1200x410/6.vue'

//暂无数据
import nodata from '@/components/template/component/public/nodata.vue'
//引入vue
import {ref} from 'vue';
const props = defineProps({
    skinId: Number,//皮肤id
    templateData:Object,//新闻数据
});
//该通栏下只有一个组件
const componentTitle1 = {
    alias:props.templateData[0].componentData.data.alias,
    aLIas_pinyin:props.templateData[0].componentData.data.pinyin,
    is_url: props.templateData[0].componentData.data.is_url ?? 0,//如果is_url为空 则默认为0
    children_count: props.templateData[0].componentData.data.children_count ?? 0,//如果children_count为空 则默认为0
    cid:props.templateData[0].componentData.data.category_id
}
</script>

<style lang="less" scoped>
//基本样式 start ---------------------------------------->
.imgNewsBigBox{
    width: 1200px;
    height: 410px;
    position: relative;
    margin: 0 auto;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: content-box;
    
}
//基本样式 end ---------------------------------------->
</style>