Files
quinn-wx/components/swiper/type.d.ts
2022-11-17 17:05:46 +08:00

53 lines
1.2 KiB
TypeScript

export interface TdSwiperProps {
animation?: {
type: StringConstructor;
value?: 'slide';
};
autoplay?: {
type: BooleanConstructor;
value?: boolean;
};
current?: {
type: NumberConstructor;
value?: number;
};
defaultCurrent?: {
type: NumberConstructor;
value?: number;
};
direction?: {
type: StringConstructor;
value?: 'horizontal' | 'vertical';
};
duration?: {
type: NumberConstructor;
value?: number;
};
height?: {
type: NumberConstructor;
value?: number;
};
interval?: {
type: NumberConstructor;
value?: number;
};
loop?: {
type: BooleanConstructor;
value?: boolean;
};
navigation?: {
type: ObjectConstructor;
value?: SwiperNavigation;
};
paginationPosition?: {
type: StringConstructor;
value?: 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
};
}
export interface SwiperNavigation {
minShowNum?: number;
showSlideBtn?: boolean;
type?: SwiperNavigationType;
}
export declare type SwiperNavigationType = 'dots' | 'dots-bar' | 'fraction';