Skip to content
Snippets Groups Projects
Commit 48fd8a66 authored by HJ's avatar HJ :fire:
Browse files

fix opacity control

parent 53cde520
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1385Migration to Vue 3 (again)
......@@ -14,7 +14,7 @@
:modelValue="present"
:disabled="disabled"
class="opt"
@change="$emit('update:modelValue', !present ? fallback : undefined)"
@update:modelValue="$emit('update:modelValue', !present ? fallback : undefined)"
/>
<input
:id="name"
......@@ -37,11 +37,12 @@ export default {
Checkbox
},
props: [
'name', 'value', 'fallback', 'disabled'
'name', 'modelValue', 'fallback', 'disabled'
],
emits: ['update:modelValue'],
computed: {
present () {
return typeof this.value !== 'undefined'
return typeof this.modelValue !== 'undefined'
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment