mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
hide indicators when one swipe page
This commit is contained in:
parent
cdb67fe606
commit
0f4df29fd7
@ -3,7 +3,10 @@
|
||||
<div class="van-swipe__items">
|
||||
<slot></slot>
|
||||
</div>
|
||||
<div class="van-swipe__indicators" v-if="showIndicators">
|
||||
<div
|
||||
class="van-swipe__indicators"
|
||||
v-if="showIndicators && swipes.length > 1"
|
||||
>
|
||||
<span class="van-swipe__indicator" v-for="(item, index) in swipes.length" :key="index" :class="{
|
||||
'van-swipe__indicator--active': currIndex === index
|
||||
}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user