fix modal open
This commit is contained in:
@@ -59,9 +59,15 @@ export default {
|
|||||||
modelValue: Object
|
modelValue: Object
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
|
let vm = this
|
||||||
this.name = this.modelValue && this.modelValue.name ? this.modelValue.name : this.name
|
this.name = this.modelValue && this.modelValue.name ? this.modelValue.name : this.name
|
||||||
this.text = this.modelValue && this.modelValue.text ? this.modelValue.text : this.text
|
this.text = this.modelValue && this.modelValue.text ? this.modelValue.text : this.text
|
||||||
if (this.modelValue.open) this.modalBox = true
|
if (this.modelValue.open) {
|
||||||
|
this.modalBox = true
|
||||||
|
setTimeout(function () {
|
||||||
|
vm.delayModal = true
|
||||||
|
}, 200)
|
||||||
|
}
|
||||||
console.log('mounted textarea')
|
console.log('mounted textarea')
|
||||||
this.$emit('update:modelValue', this.modelValue)
|
this.$emit('update:modelValue', this.modelValue)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user