Skip to content

Commit a7e9a88

Browse files
committed
fix: 解决指示器点过之后分页失效问题
1 parent eaf4f79 commit a7e9a88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

carousel/src/carousel.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export default defineComponent({
6060
formattedPageIndex.value = formatPageIndex(pageIndex.value, count)
6161
})
6262

63+
watch(formattedPageIndex, (newVal: number) => {
64+
pageIndex.value = newVal
65+
})
66+
6367
return () => {
6468
return (
6569
<div class="devui-carousel">

0 commit comments

Comments
 (0)