index.vue 547 字节
<template>
	<view class="Title">
		{{ title }}
	</view>
</template>

<script>
	export default {
		name: 'Title',
		props: {
			title: {
				type: [String],
				default: '标题'
			}
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.Title{
		color: #2D81FF;
		font-size: 28rpx;
		position: relative;
		padding: 15rpx 20rpx;
		&::before{
			content: '';
			position: absolute;
			height: 26rpx;
			width: 5rpx;
			background-color: #2D81FF;
			left: 0;
			top: 50%;
			transform: translateY(-50%);
		}
	}
</style>