forked from FoundKeyGang/FoundKey
add return type to toggle in checkbox.vue
This commit is contained in:
parent
16e9cf91f7
commit
f236653c26
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ const emit = defineEmits<{
|
||||||
|
|
||||||
let button = $ref<HTMLElement>();
|
let button = $ref<HTMLElement>();
|
||||||
const checked = toRefs(props).modelValue;
|
const checked = toRefs(props).modelValue;
|
||||||
const toggle = () => {
|
const toggle = (): void => {
|
||||||
if (props.disabled) return;
|
if (props.disabled) return;
|
||||||
emit('update:modelValue', !checked.value);
|
emit('update:modelValue', !checked.value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue