Ignore left-over issues
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-15 19:58:16 +00:00
parent f707197f42
commit d2dd7d5280
6 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,8 @@
<script lang="ts" setup>
const props = defineProps(["modelValue"]);
const props = defineProps<{modelValue: boolean}>();
const emits = defineEmits<{
(e: "update:modelValue", value: boolean): void
}>();
</script>
<template>
@ -7,6 +10,6 @@ const props = defineProps(["modelValue"]);
type="checkbox"
:checked="modelValue"
class="dark:bg-slate-900"
@change="$emit('update:modelValue', ($event.target as HTMLInputElement)?.checked)"
@change="emits('update:modelValue', ($event.target as HTMLInputElement)?.checked)"
>
</template>