diff options
| author | 2023-04-19 17:30:39 +0800 | |
|---|---|---|
| committer | 2023-04-19 17:30:39 +0800 | |
| commit | 3adc965dd09490b7efa1cce9f09b0a3b30970277 (patch) | |
| tree | f813abb07d7b003984aa74e3154752b6ffc3ccd5 /docs/layouts | |
| parent | c7c9ca6f0c8eddf6d34cd40779f3b2d9463f3a46 (diff) | |
| download | HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.tar.gz HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.zip | |
✨优化文档
Diffstat (limited to 'docs/layouts')
| -rw-r--r-- | docs/layouts/default.vue | 5 | ||||
| -rw-r--r-- | docs/layouts/page.vue | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/docs/layouts/default.vue b/docs/layouts/default.vue new file mode 100644 index 0000000..c45640e --- /dev/null +++ b/docs/layouts/default.vue @@ -0,0 +1,5 @@ +<template> + <DocsPageLayout> + <slot /> + </DocsPageLayout> +</template> diff --git a/docs/layouts/page.vue b/docs/layouts/page.vue new file mode 100644 index 0000000..c6168d4 --- /dev/null +++ b/docs/layouts/page.vue @@ -0,0 +1,26 @@ +<script setup lang="ts"> +const { config } = useDocus() +</script> + +<template> + <div class="page-layout"> + <Container + :fluid="config?.main?.fluid" + :padded="config?.main?.padded" + > + <article> + <slot /> + </article> + </Container> + </div> +</template> + +<style lang="ts" scoped> +css({ + '.page-layout': { + display: 'flex', + flexDirection: 'column', + position: 'relative' + } +}) +</style> |
