diff options
Diffstat (limited to 'apps/workflowengine/src/mixins/valueMixin.js')
-rw-r--r-- | apps/workflowengine/src/mixins/valueMixin.js | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/apps/workflowengine/src/mixins/valueMixin.js b/apps/workflowengine/src/mixins/valueMixin.js index b34a2e13b5f..1293cd2483c 100644 --- a/apps/workflowengine/src/mixins/valueMixin.js +++ b/apps/workflowengine/src/mixins/valueMixin.js @@ -4,32 +4,19 @@ */ const valueMixin = { - props: { - value: { - type: String, - default: '', - }, - check: { - type: Object, - default: () => { return {} }, - }, - }, data() { return { - newValue: '', + newValue: [], } }, watch: { - value: { - immediate: true, - handler(value) { - this.updateInternalValue(value) - }, + modelValue() { + this.updateInternalValue() }, }, methods: { - updateInternalValue(value) { - this.newValue = value + updateInternalValue() { + this.newValue = this.modelValue }, }, } |