2021-10-11 15:45:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<v-menu
|
|
|
|
|
|
bottom
|
|
|
|
|
|
left
|
|
|
|
|
|
offset-y
|
|
|
|
|
|
origin="top right"
|
|
|
|
|
|
transition="scale-transition"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template v-slot:activator="{ attrs, on }">
|
|
|
|
|
|
<v-btn
|
|
|
|
|
|
class="ml-2"
|
|
|
|
|
|
min-width="0"
|
|
|
|
|
|
text
|
|
|
|
|
|
v-bind="attrs"
|
|
|
|
|
|
v-on="on"
|
|
|
|
|
|
>
|
|
|
|
|
|
<v-badge
|
|
|
|
|
|
bordered
|
|
|
|
|
|
color="red"
|
|
|
|
|
|
overlap
|
|
|
|
|
|
>
|
|
|
|
|
|
<template v-slot:badge>
|
|
|
|
|
|
<span>5</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<v-icon>mdi-bell</v-icon>
|
|
|
|
|
|
</v-badge>
|
|
|
|
|
|
</v-btn>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<v-list
|
|
|
|
|
|
flat
|
|
|
|
|
|
nav
|
|
|
|
|
|
>
|
|
|
|
|
|
<app-bar-item
|
|
|
|
|
|
v-for="(n, i) in notifications"
|
|
|
|
|
|
:key="i"
|
|
|
|
|
|
link
|
|
|
|
|
|
>
|
|
|
|
|
|
<v-list-item-content>
|
|
|
|
|
|
<v-list-item-title>{{ n }} </v-list-item-title>
|
|
|
|
|
|
</v-list-item-content>
|
|
|
|
|
|
</app-bar-item>
|
|
|
|
|
|
</v-list>
|
|
|
|
|
|
</v-menu>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'DefaultNotifications',
|
|
|
|
|
|
|
|
|
|
|
|
data: () => ({
|
|
|
|
|
|
notifications: [
|
2021-10-18 18:46:11 +08:00
|
|
|
|
'临时消息1,请检查邮箱',
|
|
|
|
|
|
'临时消息2,请检查邮箱',
|
|
|
|
|
|
'临时消息3,请检查邮箱',
|
|
|
|
|
|
'临时消息4,请检查邮箱',
|
|
|
|
|
|
'临时消息5,请检查邮箱',
|
2021-10-11 15:45:59 +08:00
|
|
|
|
],
|
|
|
|
|
|
}),
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|