Оформлены туллтипы в правом меню

This commit is contained in:
Alex committed 2023-10-11 16:48:05 +03:00
1 parent fbcc174937
commit 40116ccde8
2 files changed
+29 -16

No files matched your search

+4 -8
View File
@@ -8,6 +8,7 @@
<v-btn <v-btn
v-bind="props" v-bind="props"
append-icon="mdi-login" append-icon="mdi-login"
@click="$emit('toDrawer')"
> >
<template v-slot:prepend> <template v-slot:prepend>
<v-icon color="white"></v-icon> <v-icon color="white"></v-icon>
@@ -106,11 +107,6 @@ export default {
} }
const logging=async()=>{ const logging=async()=>{
if (!v$.value.$error) { if (!v$.value.$error) {
await accountStore.logging(anon) await accountStore.logging(anon)
} }
@@ -118,13 +114,13 @@ export default {
console.log(true); console.log(true);
} }
} }
onMounted(() => { onMounted(() => {
v$.value.$validate() v$.value.$validate()
}) })
defineEmits(['toDrawer'])
return { return {
accountStore, accountStore,
AppStore, AppStore,
+25 -8
View File
@@ -110,9 +110,15 @@
:to="x.path" :to="x.path"
color="navigation"> color="navigation">
<template v-slot:prepend> <template v-slot:prepend>
<v-icon :icon="x.ico"/> <v-icon :icon="x.ico"/>
</template> <v-tooltip
v-if="rail"
activator="parent"
location="top">
{{ x.name }}
</v-tooltip>
</template>
</v-list-item> </v-list-item>
<v-list-group v-else <v-list-group v-else
@@ -124,6 +130,12 @@
v-bind="props" v-bind="props"
:title="x.name" :title="x.name"
:prepend-icon="x.ico" /> :prepend-icon="x.ico" />
<v-tooltip
v-if="rail"
activator="parent"
location="top">
{{ x.name }}
</v-tooltip>
</template> </template>
<v-list-item v-for="(child, k) in x.submenu" <v-list-item v-for="(child, k) in x.submenu"
@@ -147,6 +159,12 @@
<template v-slot:prepend> <template v-slot:prepend>
<v-icon <v-icon
:icon="x.imagecode" /> :icon="x.imagecode" />
<v-tooltip
v-if="rail"
activator="parent"
location="top">
{{ x.name }}
</v-tooltip>
</template> </template>
</v-list-item> </v-list-item>
</v-list> </v-list>
@@ -357,7 +375,7 @@
<script> <script>
import { ref, computed } from 'vue' import { ref, computed, onMounted} from 'vue'
import uf from '@/utils/universal_functions' import uf from '@/utils/universal_functions'
import { useAccountStore } from '@/store/AccountStore' import { useAccountStore } from '@/store/AccountStore'
import { useMainmenuStore } from '@/store/MainmenuStore' import { useMainmenuStore } from '@/store/MainmenuStore'
@@ -446,18 +464,17 @@ export default {
} }
] ]
const imageSrc = computed(() => { const imageSrc = computed(() => {
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href; return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
}) })
const getcard = async () => { const getcard = async () => {
menuGetUserDialog.value = true menuGetUserDialog.value = true
}
} // onMounted(() => {
// drawer.value = accountStore.cod2user ? true : false
// })
return { return {
theme, theme,