全局属性-子菜单-小标题组件

This commit is contained in:
zhujiyan
2024-05-06 19:55:01 +08:00
parent edcaa9587a
commit c584d2fce8

View File

@@ -0,0 +1,32 @@
<template>
<div class="nav_title" :style="{ borderLeft: `4px solid ${borderColor}` }">
<p><slot name="nav_name"></slot></p>
</div>
</template>
<script>
import { useConfig } from '@/stores/config'
export default {
components: {},
data() {
return {
borderColor: ''
}
},
mounted() {
const configStore = useConfig()
this.borderColor = configStore.getColorVal('elementUiPrimary')
},
methods: {}
}
</script>
<style lang="scss" scoped>
.nav_title {
padding-left: 8px;
margin-top: 10px;
p {
font-size: 15px;
color: #212121;
font-weight: 600;
}
}
</style>