Skip to content

Commit

Permalink
Merge pull request #56 from beclab/fix/ui
Browse files Browse the repository at this point in the history
fix: banner navigation onclick
  • Loading branch information
icebergtsn authored Dec 17, 2024
2 parents 77b7b23 + 8d6e35d commit 132d629
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/src/components/base/BtBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@
v-if="size > 1"
class="cursor-pointer banner-navigation row justify-start items-center"
>
<template v-for="item in size" :key="item">
<template v-for="(item, index) in size" :key="item">
<div
:class="
item - 1 === currentSlide
? 'navigation-active'
: 'navigation-normal'
index === currentSlide ? 'navigation-active' : 'navigation-normal'
"
@click="changeActive(item)"
@click="changeActive(index)"
/>
</template>
</div>
Expand Down

0 comments on commit 132d629

Please sign in to comment.