<template>
    <div class="imgNewsBigBox">
        <div v-if="skinId==7">
            <news1Style 
                :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/1200x480/7/1.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: 480px;
    margin-bottom: 30px;
    position: relative;
    margin: 0 auto;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: content-box;
}
//基本样式 end ---------------------------------------->
</style>
