forked from srxl/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"
|
: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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue