优化header用户信息区域背景色显示方式
This commit is contained in:
parent
d042079a9f
commit
91ba49e4f0
@ -37,10 +37,11 @@
|
|||||||
:options="mobileDropdownOptions"
|
:options="mobileDropdownOptions"
|
||||||
:show-arrow="true"
|
:show-arrow="true"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
v-model:show="isMobileDropdownOpen"
|
||||||
@select="handleMobileDropdownSelect"
|
@select="handleMobileDropdownSelect"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
>
|
>
|
||||||
<div class="mobile-user-info-wrapper">
|
<div class="mobile-user-info-wrapper" :class="{ 'mobile-user-info-wrapper--active': isMobileDropdownOpen }">
|
||||||
<div class="mobile-user-info">
|
<div class="mobile-user-info">
|
||||||
{{ teamUserText }}
|
{{ teamUserText }}
|
||||||
</div>
|
</div>
|
||||||
@ -111,6 +112,7 @@ const route = useRoute();
|
|||||||
const team = getTeam();
|
const team = getTeam();
|
||||||
const instance = getCurrentInstance();
|
const instance = getCurrentInstance();
|
||||||
const showTeamSwitcher = ref(false);
|
const showTeamSwitcher = ref(false);
|
||||||
|
const isMobileDropdownOpen = ref(false);
|
||||||
|
|
||||||
// Naive UI 主题配置 - 使用标准方式配置 tooltip 和 menu
|
// Naive UI 主题配置 - 使用标准方式配置 tooltip 和 menu
|
||||||
const themeOverrides = {
|
const themeOverrides = {
|
||||||
@ -359,14 +361,14 @@ n-config-provider {
|
|||||||
max-width: calc(100% - 80px);
|
max-width: calc(100% - 80px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-user-info-wrapper:hover {
|
|
||||||
background: rgba(0, 0, 0, 0.04);
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-user-info-wrapper:active {
|
.mobile-user-info-wrapper:active {
|
||||||
background: rgba(0, 0, 0, 0.06);
|
background: rgba(0, 0, 0, 0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-user-info-wrapper--active {
|
||||||
|
background: rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
.mobile-user-info {
|
.mobile-user-info {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user