feat: Add Prop autoClose
to Modal
This commit is contained in:
parent
473d8975f7
commit
d7987d1e0a
1 changed files with 7 additions and 1 deletions
|
@ -122,6 +122,10 @@
|
|||
type: Number,
|
||||
default: 1000
|
||||
},
|
||||
autoClose: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
@ -252,7 +256,9 @@
|
|||
if (this.loading) {
|
||||
this.buttonLoading = true;
|
||||
} else {
|
||||
this.visible = false;
|
||||
if (this.autoClose) {
|
||||
this.visible = false;
|
||||
}
|
||||
this.$emit('input', false);
|
||||
}
|
||||
this.$emit('on-ok');
|
||||
|
|
Loading…
Add table
Reference in a new issue