mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Swipe): update demo (#10061)
This commit is contained in:
parent
92fb70d6e8
commit
0002f1b1af
@ -120,8 +120,8 @@ export default {
|
||||
<van-swipe-item>2</van-swipe-item>
|
||||
<van-swipe-item>3</van-swipe-item>
|
||||
<van-swipe-item>4</van-swipe-item>
|
||||
<template #indicator="{ active }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/4</div>
|
||||
<template #indicator="{ active, total }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/{{ total }}</div>
|
||||
</template>
|
||||
</van-swipe>
|
||||
|
||||
|
@ -128,8 +128,8 @@ export default {
|
||||
<van-swipe-item>2</van-swipe-item>
|
||||
<van-swipe-item>3</van-swipe-item>
|
||||
<van-swipe-item>4</van-swipe-item>
|
||||
<template #indicator="{ active }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/4</div>
|
||||
<template #indicator="{ active, total }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/{{ total }}</div>
|
||||
</template>
|
||||
</van-swipe>
|
||||
|
||||
|
@ -90,8 +90,8 @@ const onChange = (index: number) => Toast(t('message') + index);
|
||||
<van-swipe-item>2</van-swipe-item>
|
||||
<van-swipe-item>3</van-swipe-item>
|
||||
<van-swipe-item>4</van-swipe-item>
|
||||
<template #indicator="{ active }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/4</div>
|
||||
<template #indicator="{ active, total }">
|
||||
<div class="custom-indicator">{{ active + 1 }}/{{ total }}</div>
|
||||
</template>
|
||||
</van-swipe>
|
||||
</demo-block>
|
||||
|
Loading…
x
Reference in New Issue
Block a user