[new feature] SwipeCell: add name prop (#3680)

This commit is contained in:
neverland
2019-06-28 16:03:10 +08:00
committed by GitHub
parent a6ce44fbb0
commit 08358c89eb
5 changed files with 42 additions and 15 deletions
+6 -2
View File
@@ -20,7 +20,11 @@ export default createComponent({
onClose: Function,
disabled: Boolean,
leftWidth: Number,
rightWidth: Number
rightWidth: Number,
name: {
type: [String, Number],
default: ''
}
},
data() {
@@ -141,7 +145,7 @@ export default createComponent({
}
if (this.onClose) {
this.onClose(position, this);
this.onClose(position, this, { name: this.name });
} else {
this.swipeMove(0);
}