gulp dist build
This commit is contained in:
@@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
|
||||
import { SwiperOptions, Swiper as SwiperClass } from '../types/';
|
||||
|
||||
interface Swiper extends SwiperOptions {
|
||||
interface SwiperProps extends SwiperOptions {
|
||||
/**
|
||||
* Swiper container tag
|
||||
*
|
||||
@@ -41,6 +41,9 @@ interface Swiper extends SwiperOptions {
|
||||
* Event will be fired when swiper updates the hash
|
||||
*/
|
||||
onHashSet?: (swiper: SwiperClass) => void;/**
|
||||
* Event will be fired on key press
|
||||
*/
|
||||
onKeyPress?: (swiper: SwiperClass, keyCode: string) => void;/**
|
||||
* Event will be fired in the beginning of lazy loading of image
|
||||
*/
|
||||
onLazyImageLoad?: (swiper: SwiperClass, slideEl: HTMLElement, imageEl: HTMLElement) => void;
|
||||
@@ -48,9 +51,9 @@ interface Swiper extends SwiperOptions {
|
||||
* Event will be fired when lazy loading image will be loaded
|
||||
*/
|
||||
onLazyImageReady?: (swiper: SwiperClass, slideEl: HTMLElement, imageEl: HTMLElement) => void;/**
|
||||
* Event will be fired on key press
|
||||
* Event will be fired on mousewheel scroll
|
||||
*/
|
||||
onKeyPress?: (swiper: SwiperClass, keyCode: string) => void;/**
|
||||
onScroll?: (swiper: SwiperClass, event: WheelEvent) => void;/**
|
||||
* Event will be fired on navigation hide
|
||||
*/
|
||||
onNavigationHide?: (swiper: SwiperClass) => void;
|
||||
@@ -58,9 +61,6 @@ interface Swiper extends SwiperOptions {
|
||||
* Event will be fired on navigation show
|
||||
*/
|
||||
onNavigationShow?: (swiper: SwiperClass) => void;/**
|
||||
* Event will be fired on mousewheel scroll
|
||||
*/
|
||||
onScroll?: (swiper: SwiperClass, event: WheelEvent) => void;/**
|
||||
* Event will be fired after pagination rendered
|
||||
*/
|
||||
onPaginationRender?: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
|
||||
@@ -416,7 +416,7 @@ interface SlideData {
|
||||
isNext: boolean;
|
||||
}
|
||||
|
||||
interface SwiperSlide {
|
||||
interface SwiperSlideProps {
|
||||
/**
|
||||
* Slide tag
|
||||
*
|
||||
@@ -446,7 +446,7 @@ interface SwiperSlide {
|
||||
children?: React.ReactNode | ((slideData: SlideData) => React.ReactNode);
|
||||
}
|
||||
|
||||
interface Swiper
|
||||
interface SwiperProps
|
||||
extends Omit<
|
||||
React.HTMLAttributes<HTMLElement>,
|
||||
| 'onProgress'
|
||||
@@ -459,9 +459,9 @@ interface Swiper
|
||||
| 'onDoubleClick'
|
||||
| 'onScroll'
|
||||
> {}
|
||||
interface SwiperSlide extends React.HTMLAttributes<HTMLElement> {}
|
||||
interface SwiperSlideProps extends React.HTMLAttributes<HTMLElement> {}
|
||||
|
||||
declare const Swiper: React.FunctionComponent<Swiper>;
|
||||
declare const SwiperSlide: React.VoidFunctionComponent<SwiperSlide>;
|
||||
declare const Swiper: React.FunctionComponent<SwiperProps>;
|
||||
declare const SwiperSlide: React.VoidFunctionComponent<SwiperSlideProps>;
|
||||
|
||||
export { Swiper, SwiperSlide };
|
||||
export { Swiper, SwiperSlide, SwiperProps, SwiperSlideProps };
|
||||
|
||||
Reference in New Issue
Block a user