refactor(layouts): layout/header 反转色样式补充

This commit is contained in:
元家怿
2022-04-29 15:53:12 +08:00
parent 401f0c748d
commit 01d0bcbfd0
9 changed files with 30 additions and 13 deletions

View File

@ -1,6 +1,6 @@
<template>
<n-dropdown :options="options" @select="handleDropdown">
<hover-container class="px-12px" content-class="hover:text-primary">
<hover-container class="px-12px" :inverted="theme.header.inverted">
<icon-custom-avatar class="text-32px" />
<span class="pl-8px text-16px font-medium">{{ auth.userInfo.userName }}</span>
</hover-container>
@ -8,12 +8,13 @@
</template>
<script lang="ts" setup>
import { useAuthStore } from '@/store';
import { useAuthStore, useThemeStore } from '@/store';
import { iconifyRender } from '@/utils';
type DropdownKey = 'user-center' | 'logout';
const auth = useAuthStore();
const theme = useThemeStore();
const options = [
{