Skip to content

Commit 8296adc

Browse files
committed
add active class to navigator for custom styling
1 parent fd90450 commit 8296adc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CatCarousel.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
<div
6161
v-for="index in maxSlide"
6262
:key="index"
63-
:class="['cat-carousel__indicators__item']"
63+
class="cat-carousel__indicators__item"
64+
:class="{ 'active': (track + 1) === index }"
6465
:style="[indicatorsItemSizeStyle, selectedIndicator(index) && activeIndicatorStyle]"
6566
/>
6667
</div>

0 commit comments

Comments
 (0)