File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/client/internals Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import PrintSlideClick from './PrintSlideClick.vue'
8
8
const props = defineProps <{ route: RouteRecordRaw }>()
9
9
10
10
const clicksElements = ref (props .route .meta ?.__clicksElements || [])
11
+ const clicks = computed (() => props .route .meta ?.clicks ?? clicksElements .value .length )
11
12
12
13
const route = computed (() => props .route )
13
14
const nav = useNav (route )
@@ -16,6 +17,6 @@ const nav = useNav(route)
16
17
<template >
17
18
<PrintSlideClick v-model:clicks-elements =" clicksElements" :clicks =" 0" :nav =" nav" :route =" route" />
18
19
<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" />
20
21
</template >
21
22
</template >
You can’t perform that action at this time.
0 commit comments