import React from 'react'; import "./Swiper.scss"; export interface MtSwiperProps { children?: React.ReactNode; /**唯一标记*/ label?: string; /** 自定义类名 */ customClass?: string; /** 当前显示index,初始状态激活的幻灯片的索引,从 0 开始 */ activeIndex?: number; /** 修改activeIndex的值向上传递 */ onChangeActiveIndex?: ((index: number) => void) | null; /** swiper 的高度 fill-auto的时候为自动设置填充最大的高度; auto: 自动设置对应高度 */ height?: string; /** 指示器的触发方式 hover | click */ trigger?: string; /** 指示器的位置 outside | none | inside */ indicatorPosition?: string; /** 指示器的背景色 */ indicatorBg?: string; /** 指示器的未选中状态的背景色 */ indicatorNoActiveColor?: string; /** 是否自动切换 */ autoplay?: boolean; /** 自动切换的时间间隔,单位为毫秒 */ interval?: number; /** 切换箭头的显示时机 hover | always | never */ arrow?: string; /** 鼠标悬浮时暂停自动切换 */ pauseOnHover?: boolean; /** 左侧按钮class **/ leftSlideBtnClass?: string; /** 左侧按钮 */ leftSlideBtn?: null | React.ReactNode; /** 右侧按钮class **/ rightSlideBtnClass?: string; /** 右侧按钮 */ rightSlideBtn?: null | React.ReactNode; /** 允许鼠标或者手势左右滑动 */ allowSlide?: boolean; /** click item */ onclickItem?: ((index: number) => void) | null; /** item改变触发 */ onChangeItem?: ((newIndex: number, oldIndex: number) => void) | null; } declare const MtSwiper: React.FC; export default MtSwiper;