You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<script lang="ts" setup>
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { useHead, useRoute } from '#imports'
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
const { te, t } = useI18n()
|
|
|
|
|
|
|
|
useHead({
|
|
|
|
title: route.meta?.title && te(route.meta.title as string) ? `${t(route.meta.title as string)} | NocoDB` : 'NocoDB',
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
export default {
|
|
|
|
name: 'Default',
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="w-full h-full">
|
|
|
|
<teleport v-if="$slots.sidebar" to="#nc-sidebar-left">
|
|
|
|
<slot name="sidebar" />
|
|
|
|
</teleport>
|
|
|
|
|
|
|
|
<a-layout-content>
|
|
|
|
<slot />
|
|
|
|
</a-layout-content>
|
|
|
|
</div>
|
|
|
|
</template>
|