| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <v-menu offset-y>
- <template v-slot:activator="{ on, attrs }">
- <v-tooltip bottom>
- <template v-slot:activator="{ on, attrs }">
- <v-btn
- icon
- v-bind="attrs"
- v-on="on"
- >
- <v-icon class="ot_white--text" small>
- fa-bell
- </v-icon>
- </v-btn>
- </template>
- <span>{{ $t('notification') }}</span>
- </v-tooltip>
- </template>
- <v-list dense>
- <template v-for="(item, index) in properties.menu">
- <v-list-item :key="item.title">
- <v-list-item-title v-text="$t(item.title)" />
- </v-list-item>
- <v-divider
- v-if="index < properties.menu.length - 1"
- :key="index"
- />
- </template>
- </v-list>
- </v-menu>
- </template>
- <script lang="ts">
- import { $useMenu } from '@/use/layout/menu'
- import { defineComponent, reactive, Ref } from '@nuxtjs/composition-api'
- import { UnwrapRef } from '@vue/composition-api'
- import { AnyJson } from '~/types/interfaces'
- export default defineComponent({
- setup () {
- const menu:Ref<any> = $useMenu.setUpContext().useConfigurationMenuConstruct()
- const properties:UnwrapRef<AnyJson> = reactive({
- menu
- })
- return {
- properties
- }
- }
- })
- </script>
- <style scoped>
- </style>
|