<template>
    <div class="newsTextTabsSectorBox">
        <div class="newsTextTabsSector">
            <div v-if="skinId == 6">
                <content1Style 
                    :titleLink="componentTitle" 
                    :templateData="templateData[0].componentData.data"
                    :componentStyle="templateData[0].component_style" />
            </div>
        </div>
    </div>
</template>

<script setup>
//左侧组件
import content1Style from '~/components/template/component/list/1200x480/6/3.vue'
// 右侧组件

//暂无数据
import nodata from '@/components/template/component/public/nodata.vue'
const props = defineProps({
    skinId: Number,//皮肤id
    templateData: Object,//新闻数据
    testData: Object,//接口数据
});
//该栏目下有两个组件 此时需要提供children_count来判断是否跳转到频道页
const componentTitle = {
    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 ---------------------------------------->
.newsTextTabsSectorBox {
    width: 100%;
    height: 480px;
    margin-bottom: 30px;
    margin-top: 20px;
    box-sizing: content-box;

    .newsTextTabsSector {
        width: 1200px;
        height: 480px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

//基本样式 end ----------------------------------------></style>