Skip to content

Commit 021db40

Browse files
authored
fix(export): use custom clicks count (#1181)
1 parent 7202902 commit 021db40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/internals/PrintSlide.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import PrintSlideClick from './PrintSlideClick.vue'
88
const props = defineProps<{ route: RouteRecordRaw }>()
99
1010
const clicksElements = ref(props.route.meta?.__clicksElements || [])
11+
const clicks = computed(() => props.route.meta?.clicks ?? clicksElements.value.length)
1112
1213
const route = computed(() => props.route)
1314
const nav = useNav(route)
@@ -16,6 +17,6 @@ const nav = useNav(route)
1617
<template>
1718
<PrintSlideClick v-model:clicks-elements="clicksElements" :clicks="0" :nav="nav" :route="route" />
1819
<template v-if="!isClicksDisabled">
19-
<PrintSlideClick v-for="i of (clicksElements.length)" :key="i" :clicks="i" :nav="nav" :route="route" />
20+
<PrintSlideClick v-for="i of clicks" :key="i" :clicks="i" :nav="nav" :route="route" />
2021
</template>
2122
</template>

0 commit comments

Comments
 (0)