[new feature] SwipeCell: add stop-propagation prop (#3952)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user