import * as React from 'react'; import type { Settings } from '@ant-design/react-slick'; import SlickCarousel from '@ant-design/react-slick'; import classNames from 'classnames'; import { ConfigContext } from '../config-provider'; import useStyle from './style'; export type CarouselEffect = 'scrollx' | 'fade'; export type DotPosition = 'top' | 'bottom' | 'left' | 'right'; // Carousel export interface CarouselProps extends Omit { effect?: CarouselEffect; style?: React.CSSProperties; prefixCls?: string; rootClassName?: string; id?: string; slickGoTo?: number; dotPosition?: DotPosition; children?: React.ReactNode; dots?: boolean | { className?: string }; waitForAnimate?: boolean; } export interface CarouselRef { goTo: (slide: number, dontAnimate?: boolean) => void; next: () => void; prev: () => void; autoPlay: (palyType?: 'update' | 'leave' | 'blur') => void; innerSlider: any; } interface ArrowType extends React.ButtonHTMLAttributes { currentSlide?: number; slideCount?: number; } const ArrowButton: React.FC = ({ currentSlide, slideCount, ...rest }) => (