diff options
author | Li Jin <dragon-fly@qq.com> | 2021-04-19 23:41:33 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-04-19 23:41:33 +0800 |
commit | 5d3b07801456d16dcc2c75dcccd48d508a6b60cc (patch) | |
tree | 2df1a154bf58d93f2475df02afbd15f1a8ba2963 /doc/docs/.vuepress/theme/components/Page.vue | |
parent | ea82666506b57d6e905b7f2e5fe78498fe5a7abd (diff) | |
download | yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.tar.gz yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.tar.bz2 yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.zip |
first commit for Yuescript document site.
Diffstat (limited to 'doc/docs/.vuepress/theme/components/Page.vue')
-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> | ||