mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
add done parameter
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
safeClose() {
|
||||
getSafeClose() {
|
||||
const currentId = this.uid;
|
||||
return () => {
|
||||
this.$nextTick(() => {
|
||||
@@ -138,8 +138,8 @@
|
||||
}
|
||||
this.action = action;
|
||||
if (typeof this.beforeClose === 'function') {
|
||||
this.close = this.safeClose();
|
||||
this.beforeClose(action, this);
|
||||
this.close = this.getSafeClose();
|
||||
this.beforeClose(action, this, this.close);
|
||||
} else {
|
||||
this.doClose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user