forked from AkkomaGang/akkoma-fe
fix opacity control
This commit is contained in:
parent
53cde52027
commit
48fd8a66ad
1 changed files with 4 additions and 3 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue