2020-12-31 11:47:52 +08:00
|
|
|
<template>
|
2021-01-05 23:58:16 +08:00
|
|
|
<div class="layout-logo" v-if="!getThemeConfig.isCollapse">vue-admin-wonderful</div>
|
|
|
|
<div class="layout-logo-size" v-else>
|
|
|
|
<img src="/@/assets/logo-docs-mini.svg" class="layout-logo-size-img" />
|
|
|
|
</div>
|
2020-12-31 11:47:52 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-01-05 23:58:16 +08:00
|
|
|
import { computed } from "vue";
|
|
|
|
import { useStore } from "/@/store/index.ts";
|
2020-12-31 11:47:52 +08:00
|
|
|
export default {
|
|
|
|
name: "layoutLogo",
|
2021-01-05 23:58:16 +08:00
|
|
|
setup() {
|
|
|
|
const store = useStore();
|
|
|
|
const getThemeConfig = computed(() => {
|
|
|
|
return store.state.themeConfig;
|
|
|
|
});
|
|
|
|
return {
|
|
|
|
getThemeConfig,
|
|
|
|
};
|
|
|
|
},
|
2020-12-31 11:47:52 +08:00
|
|
|
};
|
2021-01-05 23:58:16 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.layout-logo {
|
|
|
|
height: 50px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-01-06 18:41:05 +08:00
|
|
|
box-shadow: rgb(0 21 41 / 3%) 0px 1px 4px;
|
2021-01-05 23:58:16 +08:00
|
|
|
color: var(--color-primary);
|
|
|
|
font-size: 16px;
|
|
|
|
animation: logoAnimation 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
.layout-logo-size {
|
|
|
|
width: 100%;
|
|
|
|
height: 50px;
|
|
|
|
display: flex;
|
|
|
|
animation: logoAnimation 0.3s ease-in-out;
|
|
|
|
&-img {
|
|
|
|
width: 30px;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|