refactor(SwipeCell): remove deprecated on-close

This commit is contained in:
chenjiahan
2020-08-09 20:52:55 +08:00
parent 448584a146
commit 8031c690dd
4 changed files with 2 additions and 43 deletions
-5
View File
@@ -20,9 +20,6 @@ export default createComponent({
],
props: {
// @deprecated
// should be removed in next major version, use beforeClose instead
onClose: Function,
disabled: Boolean,
leftWidth: [Number, String],
rightWidth: [Number, String],
@@ -177,8 +174,6 @@ export default createComponent({
name: this.name,
instance: this,
});
} else if (this.onClose) {
this.onClose(position, this, { name: this.name });
} else {
this.close(position);
}