File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
docs/features/leetcode-card Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export default defineComponent({
90
90
{ slots . indicator ? (
91
91
slots . indicator ( {
92
92
count,
93
- pageIndex : pageIndex . value ,
93
+ pageIndex : formattedPageIndex . value ,
94
94
setPageIndex
95
95
} )
96
96
) : (
Original file line number Diff line number Diff line change 13
13
<template #pagination></template>
14
14
<template #indicator="page">
15
15
<DCarouselIndicator>
16
- <div v-for="item of Array.from(new Array(3).keys())" :class="['leetcode-indicator-item', page.pageIndex === item && 'active']" @click="page.setPageIndex(item)"></div>
16
+ <div v-for="item of Array.from(new Array(3).keys())" :class="['leetcode-indicator-item', page.pageIndex === item+1 && 'active']" @click="page.setPageIndex(item+1 )"></div>
17
17
</DCarouselIndicator>
18
18
</template>
19
19
</DCarousel>
65
65
<template #pagination></template>
66
66
<template #indicator="page">
67
67
<DCarouselIndicator>
68
- <div v-for="item of Array.from(new Array(3).keys())" :class="['leetcode-indicator-item', page.pageIndex === item && 'active']" @click="page.setPageIndex(item)"></div>
68
+ <div v-for="item of Array.from(new Array(3).keys())" :class="['leetcode-indicator-item', page.pageIndex === item+1 && 'active']" @click="page.setPageIndex(item+1 )"></div>
69
69
</DCarouselIndicator>
70
70
</template>
71
71
</DCarousel>
You can’t perform that action at this time.
0 commit comments