vue-directional-carousel
Version:
This is a Vue 3 component that allows you to set the direction of image movement not only vertically and horizontally but also in different directions (left, right, up, down).
10 lines (9 loc) • 548 B
TypeScript
import { type Ref } from 'vue';
import { type VerticalCarouselProps, type CarouselComputedItemsType } from '@/types/props';
export default function useCarouselEvent(props: VerticalCarouselProps, computedItems: CarouselComputedItemsType, renderItems: CarouselComputedItemsType, currentIndex: Ref<number>, defaultTransition: Ref<string>, transition: Ref<string>, isTransitioning: Ref<boolean>): {
clickNext: () => void;
clickPrev: () => void;
clickDot: (index: number) => void;
pauseSlide: () => void;
resumeSlide: () => void;
};