[improvement] update eslint config (#2288)

This commit is contained in:
neverland
2018-12-14 14:24:23 +08:00
committed by GitHub
parent d2751ffdfa
commit 16e4889a92
141 changed files with 6387 additions and 7536 deletions
+3 -3
View File
@@ -130,14 +130,14 @@ export default create({
const { deltaX } = this;
if ((deltaX < 0 && (-deltaX > this.rightWidth || !this.rightWidth)) ||
(deltaX > 0 && (deltaX > this.leftWidth || deltaX > 0 && !this.leftWidth))) {
(deltaX > 0 && ((deltaX > this.leftWidth || deltaX > 0) && !this.leftWidth))) {
return;
}
if (this.direction === 'horizontal') {
event.preventDefault();
this.swipeMove(deltaX);
};
}
},
endDrag() {
@@ -148,7 +148,7 @@ export default create({
this.draging = false;
if (this.swiping) {
this.swipeLeaveTransition(this.offset > 0 ? -1 : 1);
};
}
},
onClick(position = 'outside') {
@@ -2,7 +2,7 @@
exports[`drag and show left part 1`] = `
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0, 0);">
<div class="van-swipe-cell__left"></div>
<div class="van-swipe-cell__right"></div>
</div>
@@ -11,7 +11,7 @@ exports[`drag and show left part 1`] = `
exports[`drag and show left part 2`] = `
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(100px, 0, 0);">
<div class="van-swipe-cell__left"></div>
<div class="van-swipe-cell__right"></div>
</div>
@@ -20,7 +20,7 @@ exports[`drag and show left part 2`] = `
exports[`drag and show left part 3`] = `
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(100px, 0, 0);">
<div class="van-swipe-cell__left"></div>
<div class="van-swipe-cell__right"></div>
</div>
@@ -29,7 +29,7 @@ exports[`drag and show left part 3`] = `
exports[`drag and show left part 4`] = `
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(100px, 0, 0);">
<div class="van-swipe-cell__left"></div>
<div class="van-swipe-cell__right"></div>
</div>
@@ -38,7 +38,7 @@ exports[`drag and show left part 4`] = `
exports[`drag and show left part 5`] = `
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(-100px, 0, 0);">
<div class="van-swipe-cell__left"></div>
<div class="van-swipe-cell__right"></div>
</div>