Shivam Mishra
2024-10-02 13:06:30 +05:30
committed by GitHub
parent e0bf2bd9d4
commit 42f6621afb
661 changed files with 15939 additions and 31194 deletions

View File

@@ -9,7 +9,7 @@ export default {
WootMessageEditor,
},
props: {
value: {
modelValue: {
type: Object,
default: () => null,
},
@@ -41,21 +41,23 @@ export default {
computed: {
action_name: {
get() {
if (!this.value) return null;
return this.value.action_name;
if (!this.modelValue) return null;
return this.modelValue.action_name;
},
set(value) {
const payload = this.value || {};
const payload = this.modelValue || {};
this.$emit('update:modelValue', { ...payload, action_name: value });
this.$emit('input', { ...payload, action_name: value });
},
},
action_params: {
get() {
if (!this.value) return null;
return this.value.action_params;
if (!this.modelValue) return null;
return this.modelValue.action_params;
},
set(value) {
const payload = this.value || {};
const payload = this.modelValue || {};
this.$emit('update:modelValue', { ...payload, action_params: value });
this.$emit('input', { ...payload, action_params: value });
},
},