mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
fix: delete unused doc css
This commit is contained in:
@@ -51,12 +51,10 @@
|
||||
this.wrap = this.$refs.cell.querySelector('.van-cell-wrapper');
|
||||
this.leftElm = this.$refs.left;
|
||||
this.leftWrapElm = this.leftElm.parentNode;
|
||||
this.leftDefaultTransform = this.translate3d(-this.leftWidth - 1);
|
||||
this.leftWrapElm.style.webkitTransform = this.leftDefaultTransform;
|
||||
|
||||
this.rightElm = this.$refs.right;
|
||||
this.rightWrapElm = this.rightElm.parentNode;
|
||||
this.rightDefaultTransform = this.translate3d(this.rightWidth);
|
||||
this.rightWrapElm.style.webkitTransform = this.rightDefaultTransform;
|
||||
},
|
||||
methods: {
|
||||
@@ -100,14 +98,12 @@
|
||||
}, 0);
|
||||
},
|
||||
startDrag(evt) {
|
||||
console.log('startDrag')
|
||||
evt = evt.changedTouches ? evt.changedTouches[0] : evt;
|
||||
this.dragging = true;
|
||||
this.start.x = evt.pageX;
|
||||
this.start.y = evt.pageY;
|
||||
},
|
||||
onDrag(evt) {
|
||||
console.log('onDrag')
|
||||
if (this.opened) {
|
||||
!this.swiping && this.swipeMove(0);
|
||||
this.opened = false;
|
||||
@@ -132,7 +128,6 @@
|
||||
this.swipeMove(offsetLeft);
|
||||
},
|
||||
endDrag() {
|
||||
console.log('endDrag')
|
||||
if (!this.swiping) return;
|
||||
this.swipeLeaveTransition(this.offsetLeft > 0 ? -1 : 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user