UICarousel
UICarousel
A slideshow component for cycling through elements.
<template> <UICarousel :showArrow="true" :autoPlay="true" direction="horizontal" dotPlacement="bottom" :itemsPerView="1" effect="slide" @onUpdatedIndex="handleIndexChange" > <template v-for="item in items" :key="item.id"> <img :src="item.src" /> </template> </UICarousel></template>Props
showArrow(boolean): Show navigation arrowsautoPlay(boolean): Enable automatic slidingdirection(‘horizontal’ | ‘vertical’): Slide directiondotPlacement(‘left’ | ‘right’ | ‘bottom’ | ‘top’): Dot indicator placementdotType(‘dot’ | ‘line’): Dot indicator styleeffect(‘slide’ | ‘fade’ | ‘card’ | ‘custom’): Transition effectitemsPerView(number): Number of items to showspaceBetweenItems(number): Space between itemsdraggable(boolean): Enable drag navigationloop(boolean): Enable infinite loopcenteredItems(boolean): Center items in containermousewheel(boolean): Enable mousewheel navigationshowDots(boolean): Show dot indicatorsinterval(number): Autoplay interval in millisecondstouchable(boolean): Enable touch navigation
Events
onUpdatedIndex: Emitted when active slide changes