This commit is contained in:
parent
f8809926c1
commit
271bd1a15e
|
@ -3,7 +3,7 @@
|
||||||
:id="id"
|
:id="id"
|
||||||
class="mr-2 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
class="mr-2 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
:checked="modelValue === 'true'"
|
:checked="modelValue === 'true' || modelValue === true"
|
||||||
:class="$attrs.class"
|
:class="$attrs.class"
|
||||||
@change="$emit('change', $event)"
|
@change="$emit('change', $event)"
|
||||||
@input="$emit('update:modelValue', $event.target.checked)"
|
@input="$emit('update:modelValue', $event.target.checked)"
|
||||||
|
|
Loading…
Reference in a new issue