Skip to content

Commit 098abdf

Browse files
committed
fix: export slide numbering
1 parent 1f97165 commit 098abdf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

global-bottom.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
<script setup lang="ts">
2+
import { useSlideContext } from '@slidev/client'
3+
4+
const { $nav } = useSlideContext()
5+
</script>
6+
17
<template>
28
<footer style="font-size: 0.5em" class="absolute top-7 right-4 pr-8 right-0 text-right text-gray-400 flex z-1">
39
<div>
4-
<SlideCurrentNo />&nbsp;/&nbsp;<SlidesTotal />
10+
{{ $nav.currentPage }}&nbsp;/&nbsp;{{ $nav.total }}
511
</div>
612
</footer>
713
</template>

0 commit comments

Comments
 (0)