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.
25 lines
876 B
25 lines
876 B
import * as React from 'react';
|
|
import { Settings } from '@ant-design/react-slick';
|
|
export declare type CarouselEffect = 'scrollx' | 'fade';
|
|
export declare type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
|
effect?: CarouselEffect;
|
|
style?: React.CSSProperties;
|
|
prefixCls?: string;
|
|
slickGoTo?: number;
|
|
dotPosition?: DotPosition;
|
|
children?: React.ReactNode;
|
|
dots?: boolean | {
|
|
className?: string;
|
|
};
|
|
}
|
|
export interface CarouselRef {
|
|
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
next: () => void;
|
|
prev: () => void;
|
|
autoPlay: (palyType?: 'update' | 'leave' | 'blur') => void;
|
|
innerSlider: any;
|
|
}
|
|
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;
|
|
export default Carousel;
|