1
0
Fork 0
forked from srxl/akkoma-fe

fix opacity control

This commit is contained in:
Henry Jameson 2022-03-27 14:18:02 +03:00
parent 53cde52027
commit 48fd8a66ad

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'
} }
} }
} }