mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Doc] use v-slot in demos (#3573)
This commit is contained in:
@@ -70,12 +70,9 @@
|
||||
<van-swipe-item>3</van-swipe-item>
|
||||
<van-swipe-item>4</van-swipe-item>
|
||||
|
||||
<div
|
||||
class="custom-indicator"
|
||||
slot="indicator"
|
||||
>
|
||||
{{ current + 1 }}/4
|
||||
</div>
|
||||
<template v-slot:indicator>
|
||||
<div class="custom-indicator">{{ current + 1 }}/4</div>
|
||||
</template>
|
||||
</van-swipe>
|
||||
</demo-block>
|
||||
</demo-section>
|
||||
|
Reference in New Issue
Block a user