From 60c515c1255085d73845d2b2cc315823ee18e7b8 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Tue, 2 Aug 2022 02:06:01 +0800 Subject: [PATCH] feat(theme): add `doc-footer-before` slot (#1050) (#1052) Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- docs/guide/theme-introduction.md | 1 + src/client/theme-default/Layout.vue | 1 + src/client/theme-default/components/VPContent.vue | 1 + src/client/theme-default/components/VPDoc.vue | 4 +--- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/guide/theme-introduction.md b/docs/guide/theme-introduction.md index 2e0b4be07ba5..d0b198b35921 100644 --- a/docs/guide/theme-introduction.md +++ b/docs/guide/theme-introduction.md @@ -188,6 +188,7 @@ export default { Full list of slots available in the default theme layout: - When `layout: 'doc'` (default) is enabled via frontmatter: + - `doc-footer-before` - `doc-before` - `doc-after` - `aside-top` diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index 9008519a858b..a4ae10b090a2 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -46,6 +46,7 @@ provide('close-sidebar', closeSidebar) + diff --git a/src/client/theme-default/components/VPContent.vue b/src/client/theme-default/components/VPContent.vue index 5f8ea22ecadb..dddf39ca93f9 100644 --- a/src/client/theme-default/components/VPContent.vue +++ b/src/client/theme-default/components/VPContent.vue @@ -35,6 +35,7 @@ useCopyCode() + diff --git a/src/client/theme-default/components/VPDoc.vue b/src/client/theme-default/components/VPDoc.vue index 9f07347d68e8..0ae50b641eb3 100644 --- a/src/client/theme-default/components/VPDoc.vue +++ b/src/client/theme-default/components/VPDoc.vue @@ -38,13 +38,11 @@ const pageName = computed(() =>
-
- + -