fix opacity control

This commit is contained in:
Henry Jameson 2022-03-27 14:18:02 +03:00
parent 53cde52027
commit 48fd8a66ad
1 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@
:modelValue="present" :modelValue="present"
:disabled="disabled" :disabled="disabled"
class="opt" class="opt"
@change="$emit('update:modelValue', !present ? fallback : undefined)" @update:modelValue="$emit('update:modelValue', !present ? fallback : undefined)"
/> />
<input <input
:id="name" :id="name"
@ -37,11 +37,12 @@ export default {
Checkbox Checkbox
}, },
props: [ props: [
'name', 'value', 'fallback', 'disabled' 'name', 'modelValue', 'fallback', 'disabled'
], ],
emits: ['update:modelValue'],
computed: { computed: {
present () { present () {
return typeof this.value !== 'undefined' return typeof this.modelValue !== 'undefined'
} }
} }
} }