1 | import * as React from 'react';
|
2 | import { CarouselPropsType } from './PropsType';
|
3 | declare type IFrameOverFlow = 'visible' | 'hidden';
|
4 | export interface CarouselProps extends CarouselPropsType {
|
5 | className?: string;
|
6 | prefixCls?: string;
|
7 | beforeChange?: (from: number, to: number) => void;
|
8 | afterChange?: (current: number) => void;
|
9 | swipeSpeed?: number;
|
10 | easing?: () => void;
|
11 | style?: React.CSSProperties;
|
12 | dotStyle?: React.CSSProperties;
|
13 | dotActiveStyle?: React.CSSProperties;
|
14 | frameOverflow?: IFrameOverFlow;
|
15 | cellSpacing?: number;
|
16 | slideWidth?: string | number;
|
17 | }
|
18 | export interface CarouselState {
|
19 | selectedIndex?: number;
|
20 | }
|
21 | export default class Carousel extends React.Component<CarouselProps, CarouselState> {
|
22 | static defaultProps: {
|
23 | prefixCls: string;
|
24 | dots: boolean;
|
25 | arrows: boolean;
|
26 | autoplay: boolean;
|
27 | infinite: boolean;
|
28 | cellAlign: string;
|
29 | selectedIndex: number;
|
30 | dotStyle: {};
|
31 | dotActiveStyle: {};
|
32 | };
|
33 | constructor(props: CarouselProps);
|
34 | onChange: (index: number) => void;
|
35 | render(): JSX.Element;
|
36 | }
|
37 | export {};
|