<template>
    <div class="channelMenuBox">
        <div class="channelMenuSector">
            <!--组件皮肤1-->
            <div v-if="skinId==1">
                <menu1Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
            <!--组件皮肤2-->
            <div v-if="skinId==2">
                <menu2Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
            <!--组件皮肤3-->
            <div v-if="skinId==3">
                <menu3Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
            <!--组件皮肤4-->
            <div v-if="skinId==4">
                <menu4Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
            <!--组件皮肤5-->
            <div v-if="skinId==5">
                <menu5Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
            <!--组件皮肤6-->
            <div v-if="skinId==6">
                <menu6Style :navigateData="navigateData" :routeId="routeId" :componentStyle="templateData[0].component_style"/>
            </div>
        </div>
    </div>
</template>

<script setup>
//组件皮肤1
import menu1Style from '~/components/template/component/menu/1200x100/channel/1.vue'
//组件皮肤2
import menu2Style from '~/components/template/component/menu/1200x100/channel/2.vue'
//组件皮肤3
import menu3Style from '~/components/template/component/menu/1200x100/channel/3.vue'
//组件皮肤4
import menu4Style from '~/components/template/component/menu/1200x100/channel/4.vue'
//组件皮肤5
import menu5Style from '~/components/template/component/menu/1200x100/channel/5.vue'
//组件皮肤6
import menu6Style from '~/components/template/component/menu/1200x100/channel/6.vue'

//获得新闻数据
const props = defineProps({
    skinId: Number,//皮肤id
    templateData: Object,//模板数据
    navigateData: Array,//导航数据
    routeId: Number
});
</script>

<style lang="less" scoped>
//基本样式 start ---------------------------------------->
.channelMenuBox {
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
    box-sizing: content-box;
    .channelMenuSector {
        width: 1200px;
        height: 100px;
        margin: 0 auto;
        position: relative;
        .templateEditBtnBox {
            right: 0;
        }
    }
}
//基本样式 end ---------------------------------------->
</style>