UNPKG

@zebra-ui/swiper

Version:

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

43 lines (37 loc) 1.19 kB
import type { ComputedRef, Ref } from 'vue' export interface ClassList { value: string contains(className: string): boolean containsMultiple(classNames: string): boolean add(...classNames: string[]): void remove(...classNames: string[]): void toggle(className: string): void } export interface StyleEvent { type: 'change' | 'remove' | 'reset' property?: string value?: string | number oldValue?: string | number oldStyles?: Record<string, string | number> } export interface StyleAdapter { setProperty(prop: string, value: string | number): this getPropertyValue(prop: string): string removeProperty(prop: string): string | number addListener(callback: (event: StyleEvent) => void): this removeListener(callback: (event: StyleEvent) => void): this setStyles(styles: Record<string, string | number>): this getAllStyles(): Record<string, string | number> toCssText(): string fromCssText(cssText: string): this reset(): this } export interface UseClassReturn { classList: ClassList classNames: ComputedRef<string> className: string } export interface UseStyleReturn { style: StyleAdapter styles: Ref<Record<string, string | number>> }