UNPKG

@fesjs/fes-design

Version:
16 lines (15 loc) 721 B
import type { CarouselProps } from './carousel'; export default function useCarousel(props: CarouselProps): { slideChildren: import("vue").Ref<import("./interface").CarouselItemData[], import("./interface").CarouselItemData[]>; addItem: (item: import("./interface").CarouselItemData) => void; removeItem: (uid: number) => void; resetItemPosition: (oldIndex?: unknown) => void; setActiveItem: (itemIndex: string | number) => void; prev: () => void; next: () => void; prefixCls: string; wrapperRef: import("vue").Ref<any, any>; direction: import("vue").ComputedRef<"" | "vertical" | "horizontal">; rootProps: CarouselProps; activeIndex: import("vue").Ref<number, number>; };