<template>
    <div class="channelMenuBox">
        <div class="channelMenuSector">
            <div v-if="templateData[0].component_style.toString()=='1'">
                <menu1Style :skinId="skinId" :navigateData="navigateData" :routeId="routeId"/>
            </div>
            <div v-if="templateData[0].component_style.toString()=='2'">
                <menu2Style :skinId="skinId" :navigateData="navigateData" :routeId="routeId"/>
            </div>
        </div>
    </div>
</template>

<script setup>
//样式1
import menu1Style from '@/components/template/component/menu/1200x100/1.vue'
//样式2
import menu2Style from '@/components/template/component/menu/1200x100/2.vue'
//获得新闻数据
const props = defineProps({
    skinId: Number,//皮肤id
    templateData: Object,//模板数据
    navigateData: Array,//导航数据
    routeId: Number//导航对应的cid
});
</script>

<style lang="less" scoped>
.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;
        }
    }
}
</style>