<template>
    <div class="newsAllPictureSectorBox">
        <div class="newsAllPictureSector">
            <sector1Style 
                :titleLink="componentTitle1" 
                :componentStyle="templateData[0].component_style"
                :templateData="templateData[0].componentData.data" />
        </div>
    </div>
</template>

<script setup>
import sector1Style from '@/components/template/component/list/1200x380/1.vue'
const props = defineProps({
    skinId: Number,//皮肤id
    templateData:Object,//新闻数据
});
//该通栏下只有1个组件
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>
.newsAllPictureSectorBox {
    width: 1200px;
    height: 380px;
    margin: 0 auto;
    margin-bottom: 30px;

    .newsAllPictureSector {
        width: 100%;
        height: 380px;
    }
}
</style>