返回 slidev
NoteStatic.vue
根目录 / packages / client / internals / NoteStatic.vue
1 <script setup lang="ts">
2 import type { ClicksContext } from '@slidev/types'
3 import { useSlideInfo } from '../composables/useSlideInfo'
4 import NoteDisplay from './NoteDisplay.vue'
5
6 const props = defineProps<{
7 no: number
8 class?: string
9 clicksContext?: ClicksContext
10 autoScroll?: boolean
11 }>()
12
13 const { info } = useSlideInfo(props.no)
14 </script>
15
16 <template>
17 <NoteDisplay
18 :class="props.class"
19 :note="info?.note"
20 :note-html="info?.noteHTML"
21 :clicks-context="clicksContext"
22 :auto-scroll="autoScroll"
23 />
24 </template>
25
25 lines Plain Text