|
4 | 4 |
|
5 | 5 | import { AntdComponent } from './component';
|
6 | 6 |
|
| 7 | +export interface Settings { |
| 8 | + accessibility?: boolean; |
| 9 | + adaptiveHeight?: boolean; |
| 10 | + arrows?: boolean; |
| 11 | + autoplaySpeed?: number; |
| 12 | + autoplay?: boolean; |
| 13 | + centerMode?: boolean; |
| 14 | + centerPadding?: string; |
| 15 | + className?: string; |
| 16 | + cssEase?: string; |
| 17 | + dotsClass?: string; |
| 18 | + dots?: boolean; |
| 19 | + draggable?: boolean; |
| 20 | + easing?: string; |
| 21 | + edgeFriction?: number; |
| 22 | + fade?: boolean; |
| 23 | + focusOnSelect?: boolean; |
| 24 | + infinite?: boolean; |
| 25 | + initialSlide?: number; |
| 26 | + pauseOnDotsHover?: boolean; |
| 27 | + pauseOnFocus?: boolean; |
| 28 | + pauseOnHover?: boolean; |
| 29 | + responsive?: ResponsiveObject[]; |
| 30 | + rows?: number; |
| 31 | + rtl?: boolean; |
| 32 | + slide?: string; |
| 33 | + slidesPerRow?: number; |
| 34 | + slidesToScroll?: number; |
| 35 | + slidesToShow?: number; |
| 36 | + speed?: number; |
| 37 | + swipeToSlide?: boolean; |
| 38 | + swipe?: boolean; |
| 39 | + touchMove?: boolean; |
| 40 | + touchThreshold?: number; |
| 41 | + useCSS?: boolean; |
| 42 | + useTransform?: boolean; |
| 43 | + variableWidth?: boolean; |
| 44 | + vertical?: boolean; |
| 45 | + verticalSwiping?: boolean; |
| 46 | + waitForAnimate?: boolean; |
| 47 | +} |
| 48 | +export interface ResponsiveObject { |
| 49 | + breakpoint: number; |
| 50 | + settings: 'unslick' | Settings; |
| 51 | +} |
7 | 52 | export declare class Carousel extends AntdComponent {
|
8 | 53 | /**
|
9 | 54 | * Callback function called after the current index changes
|
@@ -52,6 +97,8 @@ export declare class Carousel extends AntdComponent {
|
52 | 97 | */
|
53 | 98 | vertical: boolean;
|
54 | 99 |
|
| 100 | + responsive: ResponsiveObject[]; |
| 101 | + |
55 | 102 | /**
|
56 | 103 | * Go to slide index, if dontAnimate=true, it happens without animation
|
57 | 104 | * @param slideNumber slide number to go
|
|
0 commit comments