|
@@ -202,7 +202,7 @@ export default {
|
|
|
this.close('modal');
|
|
this.close('modal');
|
|
|
},
|
|
},
|
|
|
todestroy(){
|
|
todestroy(){
|
|
|
- this.canDestroy? this.destroy=false:"";
|
|
|
|
|
|
|
+ this.canDestroy? "":this.destroy=false;
|
|
|
},
|
|
},
|
|
|
close(target) {
|
|
close(target) {
|
|
|
this.$emit('close', target);
|
|
this.$emit('close', target);
|
|
@@ -222,11 +222,11 @@ export default {
|
|
|
this.onOkBtn.call(this);
|
|
this.onOkBtn.call(this);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- cancelBtnClick(autoClose) {
|
|
|
|
|
|
|
+ cancelBtnClick(autoClose) {
|
|
|
|
|
+ this.$emit('cancel-btn-click');
|
|
|
if(!autoClose){
|
|
if(!autoClose){
|
|
|
return
|
|
return
|
|
|
- }
|
|
|
|
|
- this.$emit('cancel-btn-click');
|
|
|
|
|
|
|
+ }
|
|
|
if (typeof this.onCancelBtn === 'function') {
|
|
if (typeof this.onCancelBtn === 'function') {
|
|
|
if (this.onCancelBtn.call(this) === false) {return};
|
|
if (this.onCancelBtn.call(this) === false) {return};
|
|
|
}
|
|
}
|