diff options
| author | 2023-04-19 17:30:39 +0800 | |
|---|---|---|
| committer | 2023-04-19 17:30:39 +0800 | |
| commit | 3adc965dd09490b7efa1cce9f09b0a3b30970277 (patch) | |
| tree | f813abb07d7b003984aa74e3154752b6ffc3ccd5 /docs/components/app/AppLayout.vue | |
| parent | c7c9ca6f0c8eddf6d34cd40779f3b2d9463f3a46 (diff) | |
| download | HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.tar.gz HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.zip | |
✨优化文档
Diffstat (limited to 'docs/components/app/AppLayout.vue')
| -rw-r--r-- | docs/components/app/AppLayout.vue | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/components/app/AppLayout.vue b/docs/components/app/AppLayout.vue new file mode 100644 index 0000000..97a8d26 --- /dev/null +++ b/docs/components/app/AppLayout.vue @@ -0,0 +1,38 @@ +<script setup lang="ts"> +const { config } = useDocus() + +useHead({ + titleTemplate: config.value.titleTemplate, + meta: [ + { name: 'twitter:card', content: 'summary_large_image' } + ] +}) + +watch( + () => config.value.titleTemplate, + () => useHead({ titleTemplate: config.value.titleTemplate }) +) + +useContentHead(config.value as any) +</script> + +<template> + <div class="app-layout"> + <AppLoadingBar /> + <AppHeader /> + <main> + <slot /> + </main> + <AppFooter /> + </div> +</template> + +<style lang="ts" scoped> +css({ + '.app-layout': { + main: { + minHeight: 'calc(100vh - {docus.header.height} - {docus.footer.height})', + } + } +}) +</style> |
