<template>
  <el-checkbox
    @update:model-value="(val: any) => $emit('update:value', val)"
    @change="$emit('change')"
    :model-value="value"
    :label="label"
    style="height: auto"
  />
</template>

<script lang="ts" setup>
import { ElCheckbox } from "element-plus";

defineProps<{
  value?: boolean;
  label?: string;
}>();
defineEmits<{ (e: "update:value", val: boolean): void; (e: "change"): void }>();
</script>
