feat(theme): add footer-content slot (#299)
This commit is contained in:
parent
8154a4f55c
commit
3f7fa4133c
@ -24,18 +24,20 @@ onMounted(() => {
|
||||
:class="{ 'has-sidebar': hasSidebar }"
|
||||
vp-footer
|
||||
>
|
||||
<div class="container">
|
||||
<p
|
||||
v-if="theme.footer.message"
|
||||
class="message"
|
||||
v-html="theme.footer.message"
|
||||
/>
|
||||
<p
|
||||
v-if="theme.footer.copyright"
|
||||
class="copyright"
|
||||
v-html="theme.footer.copyright"
|
||||
/>
|
||||
</div>
|
||||
<slot name="footer-content">
|
||||
<div class="container">
|
||||
<p
|
||||
v-if="theme.footer.message"
|
||||
class="message"
|
||||
v-html="theme.footer.message"
|
||||
/>
|
||||
<p
|
||||
v-if="theme.footer.copyright"
|
||||
class="copyright"
|
||||
v-html="theme.footer.copyright"
|
||||
/>
|
||||
</div>
|
||||
</slot>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
|
||||
@ -171,7 +171,11 @@ useCloseSidebarOnEscape(isSidebarOpen, closeSidebar)
|
||||
</VPContent>
|
||||
</slot>
|
||||
<VPBackToTop />
|
||||
<VPFooter />
|
||||
<VPFooter>
|
||||
<template #footer-content>
|
||||
<slot name="footer-content" />
|
||||
</template>
|
||||
</VPFooter>
|
||||
|
||||
<slot name="layout-bottom" />
|
||||
</template>
|
||||
|
||||
@ -60,7 +60,11 @@ const { theme } = useData()
|
||||
</div>
|
||||
</slot>
|
||||
</div>
|
||||
<VPFooter />
|
||||
<VPFooter>
|
||||
<template #footer-content>
|
||||
<slot name="footer-content" />
|
||||
</template>
|
||||
</VPFooter>
|
||||
<slot name="layout-bottom" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user