feat(layouts): 添加侧边栏/头部的反转模式来增加对比度

This commit is contained in:
元家怿
2022-04-27 16:39:20 +08:00
committed by Soybean
parent a782461453
commit 861c8b9852
15 changed files with 56 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<template>
<dark-mode-container class="flex h-full" @mouseleave="resetFirstDegreeMenus">
<dark-mode-container class="flex h-full" :inverted="theme.sider.inverted" @mouseleave="resetFirstDegreeMenus">
<div class="flex-1 flex-col-stretch h-full">
<global-logo :show-title="false" :style="{ height: theme.header.height + 'px' }" />
<n-scrollbar class="flex-1-hidden">

View File

@@ -8,6 +8,7 @@
:options="routeStore.menus"
:expanded-keys="expandedKeys"
:indent="18"
:inverted="theme.sider.inverted"
@update:value="handleUpdateMenu"
@update:expanded-keys="handleUpdateExpandedKeys"
/>

View File

@@ -1,5 +1,5 @@
<template>
<dark-mode-container class="flex-col-stretch h-full">
<dark-mode-container class="flex-col-stretch h-full" :inverted="theme.sider.inverted">
<global-logo v-if="!isHorizontalMix" :show-title="showTitle" :style="{ height: theme.header.height + 'px' }" />
<vertical-menu />
</dark-mode-container>