You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

import * as React from 'react';
import { CarouselPropsType } from './PropsType';
declare type IFrameOverFlow = 'visible' | 'hidden';
export interface CarouselProps extends CarouselPropsType {
className?: string;
prefixCls?: string;
beforeChange?: (from: number, to: number) => void;
afterChange?: (current: number) => void;
swipeSpeed?: number;
easing?: () => void;
style?: React.CSSProperties;
dotStyle?: React.CSSProperties;
dotActiveStyle?: React.CSSProperties;
frameOverflow?: IFrameOverFlow;
cellSpacing?: number;
slideWidth?: string | number;
}
export interface CarouselState {
selectedIndex?: number;
}
export default class Carousel extends React.Component<CarouselProps, CarouselState> {
static defaultProps: {
prefixCls: string;
dots: boolean;
arrows: boolean;
autoplay: boolean;
infinite: boolean;
cellAlign: string;
selectedIndex: number;
dotStyle: {};
dotActiveStyle: {};
};
constructor(props: CarouselProps);
onChange: (index: number) => void;
render(): JSX.Element;
}
export {};