<template name="dream">
	<!--文章-->
	<view v-if="item.type == 1">
		<news :item="item.data" :config="config"></news>
	</view>
	<!--普通图片-->
	<view v-else-if="item.type == 2">
		<pic :item="item.data" :config="config"></pic>
	</view>
	<!--四宫格图片-->
	<view v-else-if="item.type == 3">
		<picGrid :item="item.data" :config="config"></picGrid>
	</view>
	<!--视频-->
	<view v-else-if="item.type == 4">
		<vod :item="item.data" :config="config"></vod>
	</view>
	<!--短视频-->
	<view v-else-if="item.type == 5">
		<vodShort :item="item.data" :config="config"></vodShort>
	</view>
</template>

<script>
import news from "@/pages/dream/view/news.vue";
import pic from "@/pages/dream/view/pic.vue";
import picGrid from "@/pages/dream/view/picGrid.vue";
import vod from "@/pages/dream/view/vod.vue";
import vodShort from "@/pages/dream/view/vodShort.vue";
export default {
	name: "dream",
	props: {
		config : {
			type : Object,
			value : null
		},
		item : {
			type    : Object,
			value	: null
		},
	},
	methods:{
		stopFun : function(){return false;}
	},
	components:{
		news,pic,picGrid,vod,vodShort
	}
}
</script>

<style>

</style>
