Skip to content

Commit eaf4f79

Browse files
committed
fix: 修复指示器位置demo中指示器状态无法同步到父元素的问题
1 parent 5478cf5 commit eaf4f79

File tree

1 file changed

+1
-1
lines changed
  • docs/features/indicator-position

1 file changed

+1
-1
lines changed

docs/features/indicator-position/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="carousel-item">page 2</div>
1010
<div class="carousel-item">page 3</div>
1111
<template #indicator="page">
12-
<DCarouselIndicator :count="page.count" v-model="page.pageIndex" style="justify-content: flex-start; padding-left: 20px;"></DCarouselIndicator>
12+
<DCarouselIndicator :count="page.count" v-model="page.pageIndex" @update:modelValue="page.setPageIndex" style="justify-content: flex-start; padding-left: 20px;"></DCarouselIndicator>
1313
</template>
1414
</DCarousel>
1515
</template>

0 commit comments

Comments
 (0)