-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b714a9c
commit 72b0db9
Showing
22 changed files
with
209 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/layout/components/navbar/components/right/components/messageBox.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<el-dropdown class="message-box" max-height="500px" trigger="click"> | ||
<div class="flex-center pointer"> | ||
<el-badge is-dot> | ||
<el-icon-bell class="message-icon"></el-icon-bell> | ||
</el-badge> | ||
</div> | ||
<template #dropdown> | ||
<div class="message-tabs"> | ||
<div class="message-header"> | ||
<el-link>全部已读</el-link> | ||
<el-link>查看更多</el-link> | ||
</div> | ||
<el-tabs model-value="notify"> | ||
<el-tab-pane label="通知" name="notify"> | ||
<div v-for="o in 4" :key="o" class="text notify-item"> | ||
{{ 'List item ' + o }}<div class="date">2022/08/08</div> | ||
</div> | ||
</el-tab-pane> | ||
<el-tab-pane label="消息" name="message">Config</el-tab-pane> | ||
<el-tab-pane label="待办" name="agenda">Role</el-tab-pane> | ||
</el-tabs> | ||
</div> | ||
|
||
</template> | ||
</el-dropdown> | ||
</template> | ||
<script setup lang="ts" name="messageBox"> | ||
</script> | ||
<style lang="scss" scoped> | ||
@use 'element-plus/theme-chalk/src/mixins/function.scss' as *; | ||
.message-box { | ||
.flex-center { | ||
padding: 0 10px; | ||
.message-icon { | ||
height: 25px; | ||
line-height: 25px; | ||
font-size: 1.2em; | ||
} | ||
} | ||
} | ||
.message-tabs { | ||
padding: 15px 10px; | ||
height: 300px; | ||
font-size: 1rem; | ||
.message-header { | ||
display: flex; | ||
justify-content: space-between; | ||
:deep(.el-link) { | ||
font-size: .85em !important | ||
} | ||
} | ||
:deep(.el-tabs__header) { | ||
margin-bottom: 0; | ||
} | ||
.notify-item { | ||
padding: 5px 0; | ||
border-bottom: 1px solid #eeeeee; | ||
.date { | ||
font-size: 12px; | ||
color: getCssVar('text-color', 'placeholder'); | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<el-space class="right"> | ||
<div></div> | ||
<me-dark-switch class="item no-hover"></me-dark-switch> | ||
<message-box class="item"></message-box> | ||
<me-locale-select class="item"></me-locale-select> | ||
<me-size-select class="item"></me-size-select> | ||
<el-space class="item pointer"> | ||
<el-avatar size="small" src="" /> | ||
admin | ||
</el-space> | ||
</el-space> | ||
</template> | ||
<script setup lang="ts" name="right"> | ||
import MeDarkSwitch from "@/components/meDarkSwitch.vue"; | ||
import MeLocaleSelect from "@/components/meLocaleSelect.vue"; | ||
import MeSizeSelect from "@/components/meSizeSelect.vue"; | ||
import MessageBox from "./components/messageBox.vue"; | ||
</script> | ||
<style lang="scss" scoped> | ||
@use 'element-plus/theme-chalk/src/mixins/function.scss' as *; | ||
.right { | ||
font-size: 1rem; | ||
height: 100%; | ||
.item { | ||
height: 100%; | ||
} | ||
.item:hover { | ||
background-color: getCssVar('bg-color', 'page'); | ||
} | ||
.no-hover:hover { | ||
background-color: unset; | ||
} | ||
&:deep(.el-space__item) { | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
} | ||
} | ||
</style> |
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions
10
src/layout/components/header/index.vue → src/layout/components/navbar/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.