feat: Add Prop autoClose to Modal

This commit is contained in:
yison 2019-03-20 20:21:36 +08:00
parent 473d8975f7
commit d7987d1e0a

View file

@ -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');