Migrate remaining v-model syntax vue3

This commit is contained in:
Julien Nahum 2024-01-17 14:34:46 +01:00
parent dc3608f085
commit b4d0008766
2 changed files with 11 additions and 7 deletions

View File

@ -26,11 +26,11 @@ export default {
name: 'FormNotificationsMessageActions',
components: { },
props: {
value: { required: false }
modelValue: { required: false }
},
data () {
return {
content: this.value ?? {}
content: this.modelValue ?? {}
}
},
@ -46,7 +46,11 @@ export default {
}
},
watch: {},
watch: {
modelValue (val) {
this.content = val
}
},
created () {
if(this.compVal === undefined || this.compVal === null){

View File

@ -47,12 +47,12 @@ export default {
props: {
form: { type: Object, required: true },
value: { required: false }
modelValue: { required: false }
},
data () {
return {
query: this.value
query: this.modelValue
}
},
@ -106,8 +106,8 @@ export default {
},
watch: {
value () {
this.query = this.value
modelValue () {
this.query = this.modelValue
}
},