<template>
	<view class="classification">
		<view class="classificationList" v-for="(item,index) in classification" :key="index">
			<view class="img">
				<image :src="item.imgUrl" mode="widthFix" class="image"></image>
			</view>
			<view class="name">
				{{item.name}}
			</view>
		</view>
	</view>
</template>

<script>
export default{
	props:{
		classification:{
			type:Array,
			default:()=>[]
		}
	}
}
</script>

<style lang="scss" scoped>
	.classification{
		display: flex;
		padding: 20rpx;
		.classificationList{
			width: 20%;
			display: flex;
			justify-content: center;
			flex-wrap: wrap;
			.img{
				width: 100rpx;
				height: 100rpx;
				background: #fff;
				border-radius: 50%;
				// border: 1px solid #ddd;
				display: flex;
				align-items: center;
				justify-content: center;
				.image{
					width: 80%;
				}
			}
			.name{
				width: 100%;
				font-size: 24rpx;
				color: #666;
				text-align: center;
				// margin-top: 10rpx;
			}
		}
	}
</style>