<template>
	<div :class="['sc-title', border && 'bordering']">
		<slot></slot>
	</div>
</template>

<script>
	export default {
		props: {
			border: { type: Boolean, default: false }
		},

		data() {
			return {}
		}
	}
</script>

<style scoped>
.sc-title {
  position: relative;
  padding-left: 19px;
  line-height: 22px;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.sc-title::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 3px;
  height: 18px;
  background: var(--el-color-primary);
}

.bordering {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--el-border-color-light);
}
</style>