<template>
	<div style="padding-top:5px;padding-bottom:5px">
		<el-tabs type="border-card">
			<el-tab-pane v-for="(item,index) in dataList" :label="item.name" :key="index">
				<home-news-list :classifyId='item.portalNewsId' v-if="item.type=='0'"/>
				<homeCarousel :classifyId='item.portalNewsId' v-else></homeCarousel>
			</el-tab-pane>
		</el-tabs>
	</div>
</template>

<script>
const HomeNewsList = () => import("./HomeNewsList.vue")
const HomeCarousel = () => import("./HomeCarousel.vue")
export default {
	name: 'indexNewsColumn',
	components: {HomeNewsList,HomeCarousel},
	props:['dataList']
}
</script>

<style scoped>

</style>
