feat: make totop optional and normal

This commit is contained in:
2022-08-10 11:40:02 -04:00
parent de40d01939
commit b739e46fe7
5 changed files with 23 additions and 11 deletions

17
layouts/withtop.vue Normal file
View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
import Default from "./default.vue";
</script>
<template>
<Default>
<slot />
<template #top-button> <ButtonToTop /> </template>
</Default>
</template>
<style>
div#__nuxt {
display: grid;
grid-template-columns: auto 0;
}
</style>