- 所有主题的 avue-logo 背景改为白色,并添加 0 2px 8px rgba(0,0,0,0.06) 阴影效果 - 各主题顶部栏背景及文字颜色调整,提升整体对比度与视觉统一性 - 统一调整下拉菜单、面包屑、图标等元素颜色为 rgba(0,0,0,0.85) 或 0.65,增强易读性 - 修正部分输入框和色彩选择器的边框及背景颜色,增强一致性 - index.html 添加 favicon.ico 作为页面图标 - 新增图标悬停显示浅灰圆形背景效果示例页面 icon-hover-demo.html - icon-hover-demo.html 包含核心 CSS 代码和 Element Plus 的示例用法,方便复用和参考
49 lines
976 B
Vue
49 lines
976 B
Vue
<template>
|
|
<div class="avue-logo" @click="goHome" style="cursor: pointer">
|
|
<transition name="fade">
|
|
<span v-if="getScreen(isCollapse)" class="avue-logo_subtitle" key="0">
|
|
<img class="logo-img" src="/img/logo.png" />
|
|
</span>
|
|
</transition>
|
|
<transition-group name="fade">
|
|
<template v-if="getScreen(!isCollapse)">
|
|
<span class="logo-title" key="1">{{ website.indexTitle }}</span>
|
|
</template>
|
|
</transition-group>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex';
|
|
|
|
export default {
|
|
name: 'logo',
|
|
data() {
|
|
return {};
|
|
},
|
|
created() {},
|
|
computed: {
|
|
...mapGetters(['isCollapse', 'tagWel']),
|
|
},
|
|
methods: {
|
|
goHome() {
|
|
this.$router.push(this.tagWel);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
.logo-title {
|
|
font-size: 17px;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.logo-img {
|
|
width: 40px;
|
|
margin-top: 5px;
|
|
}
|
|
</style>
|