UNPKG

@zebra-ui/swiper

Version:

专为多端设计的高性能swiper轮播组件库,支持多种复杂的 3D swiper轮播效果。

39 lines (33 loc) 775 B
import type { SwiperInterface } from '../../swiper-class' export interface ScrollbarDragEl { classList: { value: string } style: Record<string, any> } export interface ScrollbarRect { value: DOMRect | Record<string, number> } export interface ScrollbarProps { swiperRef: Ref<SwiperInterface | null> } export interface ScrollbarListenerMethod { funcName: string callback: (e: Event) => void } export interface ScrollbarExpose { classList: any style: Record<string, any> dragElRef: ScrollbarDragEl scrollbarRect: ScrollbarRect addEventListener: ( name: string, callback: (e: Event) => void, funcName: string ) => void removeEventListener: ( name: string, callback: (e: Event) => void, funcName: string ) => void }