<template>
	<view class="">
		<template  v-if="detailsInfo.length">
			<CellInfo v-for="(item,index) in detailsInfo" :key="index"
				:label="item.label" 
				:value="item.content"
				:icon="item.icon"
			></CellInfo>
		</template>
		<template v-else>
			<CellInfo v-for="(item,index) in detailsInfo" :key="index"
				:label="item.label" 
			></CellInfo>
		</template>
	</view>
</template>

<script>
	import CellInfo from '@/components/CellInfo.vue'
	export default {
		components:{
			CellInfo
		},
		props:{
			detailsInfo: {
				type:Array,
				default:[]
			}
		}
	}
</script>

<style>
</style>
