diff options
Diffstat (limited to '')
| -rw-r--r-- | doc/docs/.vuepress/theme/components/Page.vue | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/docs/.vuepress/theme/components/Page.vue b/doc/docs/.vuepress/theme/components/Page.vue new file mode 100644 index 0000000..04ec7cb --- /dev/null +++ b/doc/docs/.vuepress/theme/components/Page.vue | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | <template> | ||
| 2 | <main class="page"> | ||
| 3 | <slot name="top" /> | ||
| 4 | |||
| 5 | <Content class="theme-default-content" /> | ||
| 6 | <PageEdit /> | ||
| 7 | |||
| 8 | <PageNav v-bind="{ sidebarItems }" /> | ||
| 9 | |||
| 10 | <slot name="bottom" /> | ||
| 11 | </main> | ||
| 12 | </template> | ||
| 13 | |||
| 14 | <script> | ||
| 15 | import PageEdit from '@theme/components/PageEdit.vue' | ||
| 16 | import PageNav from '@theme/components/PageNav.vue' | ||
| 17 | |||
| 18 | export default { | ||
| 19 | components: { PageEdit, PageNav }, | ||
| 20 | props: ['sidebarItems'] | ||
| 21 | } | ||
| 22 | </script> | ||
| 23 | |||
| 24 | <style lang="stylus"> | ||
| 25 | @require '../styles/wrapper.styl' | ||
| 26 | |||
| 27 | .page | ||
| 28 | padding-bottom 2rem | ||
| 29 | display block | ||
| 30 | |||
| 31 | </style> | ||
