<template>
	<view>
		<view class="flex align-center">
			<view class="lineBar" :style="{'background':bgColor}">

			</view>
			<view class="text">
				{{title}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "titleSection",
		props: {
			title: {
				type: String,
				default: ""
			},
			bgColor: {
				type: String,
				default: ""
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.lineBar {
		content: " ";
		width: 3px;
		height: 15px;
		margin: 10px;
	}
</style>