diff --git a/src/swipe-cell/index.js b/src/swipe-cell/index.js index 5e0dc3c95..94a4d5c5f 100644 --- a/src/swipe-cell/index.js +++ b/src/swipe-cell/index.js @@ -48,6 +48,10 @@ export default createComponent({ } }, + mounted() { + this.bindTouchEvent(this.$el); + }, + methods: { getWidthByRef(ref) { if (this.$refs[ref]) { @@ -227,14 +231,7 @@ export default createComponent({ }; return ( -
+
{this.genLeftPart()} {this.slots()}