feat(SwipeCell): add open event (#4986)

This commit is contained in:
neverland
2019-11-12 21:03:48 +08:00
committed by GitHub
parent 2c6b5408d3
commit 9d21b53731
4 changed files with 35 additions and 3 deletions
+5
View File
@@ -59,6 +59,11 @@ export default createComponent({
const offset = position === 'left' ? this.computedLeftWidth : -this.computedRightWidth;
this.swipeMove(offset);
this.resetSwipeStatus();
this.$emit('open', {
position,
detail: this.name
});
},
close() {