Skip to content

Commit

Permalink
fix: SlideCurrentNo should be fixed in slide, close #1037
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 7, 2023
1 parent 6a0facc commit 735e7a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/builtin/SlideCurrentNo.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { inject } from 'vue'
import { injectionSlidevContext } from '../constants'
import { injectionCurrentPage } from '../constants'
const $slidev = inject(injectionSlidevContext)
const $page = inject(injectionCurrentPage)
</script>

<template>
<span>{{ $slidev.nav.currentPage }}</span>
<span>{{ $page }}</span>
</template>

0 comments on commit 735e7a8

Please sign in to comment.