Migrate remaining v-model syntax vue3
This commit is contained in:
@@ -26,11 +26,11 @@ export default {
|
|||||||
name: 'FormNotificationsMessageActions',
|
name: 'FormNotificationsMessageActions',
|
||||||
components: { },
|
components: { },
|
||||||
props: {
|
props: {
|
||||||
value: { required: false }
|
modelValue: { required: false }
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
content: this.value ?? {}
|
content: this.modelValue ?? {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -46,7 +46,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {},
|
watch: {
|
||||||
|
modelValue (val) {
|
||||||
|
this.content = val
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
if(this.compVal === undefined || this.compVal === null){
|
if(this.compVal === undefined || this.compVal === null){
|
||||||
|
|||||||
@@ -47,12 +47,12 @@ export default {
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
form: { type: Object, required: true },
|
form: { type: Object, required: true },
|
||||||
value: { required: false }
|
modelValue: { required: false }
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
query: this.value
|
query: this.modelValue
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -106,8 +106,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
value () {
|
modelValue () {
|
||||||
this.query = this.value
|
this.query = this.modelValue
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user