2022-12-29 17:53:22 +08:00

43 lines
781 B
Vue

<template>
<div class="logo" :style="style">
<img alt="logo" src="@/assets/logo.svg" />
<span class="title" v-if="!collapsed">Plusone Admin</span>
</div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
const props = defineProps({
collapsed: Boolean,
inverted: Boolean,
})
const style = computed(() => {
return props.inverted ? { color: '#ffffff' } : { color: 'unset' }
})
</script>
<style scoped>
.logo {
padding: 20px 16px;
display: inline-flex;
background-color: var(--n-color);
color: #ffffff;
height: 32px;
}
.logo > img {
width: 32px;
}
.logo > .title {
font-size: 22px;
height: 32px;
line-height: 32px;
text-align: center;
width: 100%;
font-weight: 500;
}
</style>