feat: 添加公共组件title

This commit is contained in:
lilinyuan
2024-03-26 16:30:53 +08:00
parent 103b24fdb3
commit f782587b79

View File

@@ -0,0 +1,33 @@
<template>
<div class="base-title">
<span></span>
<span>{{ title }}</span>
</div>
</template>
<script setup>
const props = defineProps({
title: {
type: String,
default: ''
}
})
</script>
<style lang="scss" scoped>
.base-title {
display: flex;
justify-content: flex-start;
align-items: center;
margin: 15px 0;
font-weight: bold;
>span:first-child {
display: inline-block;
width: 10px;
height: 20px;
background: #BEA266;
margin-right: 5px;
}
}
</style>