@zebra-ui/swiper
Version:
专为多端设计的高性能swiper轮播组件库,支持多种复杂的 3D swiper轮播效果。
44 lines (38 loc) • 1.11 kB
TypeScript
import { DefineComponent } from 'vue'
import type { App } from 'vue'
import type { SwiperOptions } from './types/swiper-options'
import type { SwiperEvents } from './types/swiper-events'
export interface SwiperItemProps {
tag?: string
swiperSlideIndex?: number
zoom?: boolean
lazy?: boolean
virtualIndex?: string | number
customStyle?: Record<string, any>
}
export const ZSwiper: DefineComponent<
Partial<SwiperOptions> & {
customStyle?: Record<string, any>
} & {
[K in keyof SwiperEvents as `on${Capitalize<K>}`]?: SwiperEvents[K]
}
>
export const ZSwiperItem: DefineComponent<SwiperItemProps>
declare const _default: {
install(app: App): void
}
declare module '@vue/runtime-core' {
export interface GlobalComponents {
ZSwiper: DefineComponent<
Partial<SwiperOptions> & {
customStyle?: Record<string, any>
} & {
[K in keyof SwiperEvents as `on${Capitalize<K>}`]?: SwiperEvents[K]
}
>
ZSwiperItem: DefineComponent<SwiperItemProps>
'z-swiper': typeof ZSwiper
'z-swiper-item': typeof ZSwiperItem
}
}
export default _default