docs: fix carousel scoped slots example

This commit is contained in:
Giga 2024-08-30 15:43:12 +04:00
parent 85b10641c2
commit ae9332c2ec

View File

@ -244,8 +244,8 @@ You can get the reactive slot props like `carouselRef, canScrollNext..Prev, scro
<template> <template>
<Carousel v-slot="{ canScrollNext, canScrollPrev }"> <Carousel v-slot="{ canScrollNext, canScrollPrev }">
... ...
<CarouselPrevious v-if="canScrollPrev" /> <CarouselPrevious v-if="canScrollPrev.value" />
<CarouselNext v-if="canScrollNext" /> <CarouselNext v-if="canScrollNext.value" />
</Carousel> </Carousel>
</template> </template>
``` ```