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">
|
<div class="van-swipe__items">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</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="{
|
<span class="van-swipe__indicator" v-for="(item, index) in swipes.length" :key="index" :class="{
|
||||||
'van-swipe__indicator--active': currIndex === index
|
'van-swipe__indicator--active': currIndex === index
|
||||||
}">
|
}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user