Skip to content

Commit

Permalink
fix(theme): move doc-footer-before slot into the footer
Browse files Browse the repository at this point in the history
close #2082
  • Loading branch information
yyx990803 committed Mar 15, 2023
1 parent 5f3aac9 commit b0160bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/theme-default/components/VPDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ const pageName = computed(() =>
<main class="main">
<Content class="vp-doc" :class="pageName" />
</main>
<slot name="doc-footer-before" />
<VPDocFooter />
<VPDocFooter>
<template #doc-footer-before><slot name="doc-footer-before" /></template>
</VPDocFooter>
<slot name="doc-after" />
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/client/theme-default/components/VPDocFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const showFooter = computed(() => {

<template>
<footer v-if="showFooter" class="VPDocFooter">
<slot name="doc-footer-before" />

<div v-if="hasEditLink || hasLastUpdated" class="edit-info">
<div v-if="hasEditLink" class="edit-link">
<VPLink class="edit-link-button" :href="editLink.url" :no-icon="true">
Expand Down

0 comments on commit b0160bc

Please sign in to comment.