UNPKG

@zebra-ui/swiper

Version:

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

62 lines (54 loc) 1.2 kB
import type { SwiperInterface } from '../../swiper-class' export interface PaginationBullet { classList: { value: string } style?: Record<string, any> } export interface PaginationFraction { current: { classList: { value: string } content: string | number } total: { classList: { value: string } content: string | number } } export interface PaginationProgressbar { classList: { value: string } style: Record<string, any> } export interface PaginationData { bullets: PaginationBullet[] fractions: PaginationFraction | null progressbar: PaginationProgressbar | null } export interface PaginationProps { swiperRef: Ref<SwiperInterface | null> } export interface PaginationListenerMethod { funcName: string callback: (e: Event, index?: number) => void } export interface PaginationExpose { classList: any paginationData: PaginationData style: Record<string, any> addEventListener: ( name: string, callback: (e: Event, index?: number) => void, funcName: string ) => void removeEventListener: ( name: string, callback: (e: Event, index?: number) => void, funcName: string ) => void }