pack: prettier now use space instead of tab
This commit is contained in:
1 parent
2f55889ef8
commit
ab7df03aa3
31 files changed
+705
-706
No files matched your search
@@ -3,12 +3,12 @@ import HeaderLayout from '@/renderer/components/layout/HeaderLayout.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-layout>
|
||||
<HeaderLayout />
|
||||
<v-main>
|
||||
<slot />
|
||||
</v-main>
|
||||
</v-layout>
|
||||
</v-app>
|
||||
<v-app>
|
||||
<v-layout>
|
||||
<HeaderLayout />
|
||||
<v-main>
|
||||
<slot />
|
||||
</v-main>
|
||||
</v-layout>
|
||||
</v-app>
|
||||
</template>
|
||||
@@ -6,41 +6,41 @@ const route = useRoute()
|
||||
const titleKey: string = (route?.meta?.titleKey || 'title.main') as string
|
||||
|
||||
const handleRoute = (path: string): void => {
|
||||
router.push(path)
|
||||
router.push(path)
|
||||
}
|
||||
|
||||
const isCurrentRoute = (path: string): boolean => {
|
||||
return path === route.path
|
||||
return path === route.path
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<v-app-bar color="primary" density="compact">
|
||||
<v-app-bar-title>{{ $t(titleKey) }}</v-app-bar-title>
|
||||
<template #append>
|
||||
<v-btn
|
||||
prepend-icon="mdi-home"
|
||||
variant="text"
|
||||
:class="{ active: isCurrentRoute('/') }"
|
||||
@click="handleRoute('/')"
|
||||
>
|
||||
{{ $t('title.main') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
prepend-icon="mdi-fit-to-screen-outline"
|
||||
variant="text"
|
||||
:class="{ active: isCurrentRoute('/second') }"
|
||||
@click="handleRoute('/second')"
|
||||
>
|
||||
{{ $t('title.second') }}
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-app-bar color="primary" density="compact">
|
||||
<v-app-bar-title>{{ $t(titleKey) }}</v-app-bar-title>
|
||||
<template #append>
|
||||
<v-btn
|
||||
prepend-icon="mdi-home"
|
||||
variant="text"
|
||||
:class="{ active: isCurrentRoute('/') }"
|
||||
@click="handleRoute('/')"
|
||||
>
|
||||
{{ $t('title.main') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
prepend-icon="mdi-fit-to-screen-outline"
|
||||
variant="text"
|
||||
:class="{ active: isCurrentRoute('/second') }"
|
||||
@click="handleRoute('/second')"
|
||||
>
|
||||
{{ $t('title.second') }}
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
</template>
|
||||
<style scoped>
|
||||
.v-btn {
|
||||
opacity: 0.4;
|
||||
opacity: 0.4;
|
||||
}
|
||||
.active {
|
||||
opacity: 1 !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user