Comparing version 1.0.4 to 1.0.5
@@ -52,5 +52,5 @@ /** | ||
private transitionEndHandler(event?); | ||
swipeTo(toIndex: number, transition: Transition): void; | ||
swipePrev(transition: Transition): void; | ||
swipeNext(transition: Transition): void; | ||
swipeTo(toIndex: number, transition?: Transition): void; | ||
swipePrev(transition?: Transition): void; | ||
swipeNext(transition?: Transition): void; | ||
getCurrentIndex(): number; | ||
@@ -57,0 +57,0 @@ private _swipeTo(); |
{ | ||
"name": "fex-swiper", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "a H5 swiper powered by FEX", | ||
@@ -5,0 +5,0 @@ "main": "dist/swiper.umd.js", |
@@ -364,3 +364,3 @@ /** | ||
public swipeTo(toIndex: number, transition: Transition) { | ||
public swipeTo(toIndex: number, transition?: Transition) { | ||
if (this.sliding) { | ||
@@ -400,3 +400,3 @@ return; | ||
public swipePrev(transition: Transition) { | ||
public swipePrev(transition?: Transition) { | ||
var currentIndex = this.currentPage.index; | ||
@@ -406,3 +406,3 @@ this.swipeTo(currentIndex - 1, transition); | ||
public swipeNext(transition: Transition) { | ||
public swipeNext(transition?: Transition) { | ||
var currentIndex = this.currentPage.index; | ||
@@ -409,0 +409,0 @@ this.swipeTo(currentIndex + 1, transition); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184578