[new feature] SwipeCell: add stop-propagation prop (#3952)

This commit is contained in:
neverland
2019-07-24 20:27:56 +08:00
committed by GitHub
parent 632e4c1d31
commit 04616b8a5f
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ export default createComponent({
disabled: Boolean,
leftWidth: Number,
rightWidth: Number,
stopPropagation: Boolean,
name: {
type: [Number, String],
default: ''
@@ -121,7 +122,7 @@ export default createComponent({
this.touchMove(event);
if (this.direction === 'horizontal') {
preventDefault(event, true);
preventDefault(event, this.stopPropagation);
this.swipeMove(this.deltaX + this.startOffset);
}
},