fix modal open

This commit is contained in:
2024-11-15 07:57:51 +01:00
parent 09beabe34f
commit f73e173294

View File

@@ -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)
}, },