import React from 'react'; import XBaseLayout, { XBaseLayoutProps } from "../base/XBaseLayout"; import XFlex from "./XFlex"; import { SwiperSlide } from "swiper/react"; import "swiper/css"; import { Carousel } from "antd"; export interface XCarouselProps extends XBaseLayoutProps { mode?: 'default' | 'swiper' | 'carousel'; /** * 显示下标 */ visibleIndex?: number; /** * 左箭头 */ leftArrow: React.ReactNode; /** * 右箭头 */ rightArrow: React.ReactNode; /** * 轮播回调 * @param index 下标 */ onIndexChange?: (index: any) => {}; } /** * 一组轮播图滑动或者自动显示 * @name 轮播 * @groupName 折叠显示 */ export default class XCarousel extends XBaseLayout { static ComponentName: string; static Carousel: typeof Carousel; static SwiperSlide: typeof SwiperSlide; static defaultProps: { visibleIndex: number; boxWrapper: typeof XFlex; lazyChildren: boolean; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: XCarouselProps); /** * 获取显示下标 */ GetVisibleIndex(): any; /** * 设置显示下标 * @param index 下标 */ SetVisibleIndex(index: number): void; renderEx(): React.JSX.Element; renderLayout(): React.JSX.Element; }