<template>
	<view class="u-class">
		<view class="title" :title="title">
			{{title}}
			<image class="icon" src="/static/index/card-title-icon.png"></image>
		</view>
		<view class="content">
			<slot />
		</view>
	</view>
</template>

<script>
	export default {
		name:"u-class",
		props: {
			title: {
				type: String,
				default: ''
			},
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.u-class {
		.title {
			font-size: 36rpx;
			
			font-weight: bold;
			color: #333333;
			padding: 0 32rpx 0 40rpx;
			position: relative;

			.icon {
				width: 7rpx;
				height: 30rpx;
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%);
			}
		}
		.content {
			padding: 16rpx 0;
			margin-bottom: 32rpx;
		}
	}

</style>
