21 lines
598 B
Vue
21 lines
598 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
label: string
|
|
checked: boolean
|
|
disabled: boolean
|
|
partial?: boolean
|
|
}>()
|
|
|
|
defineEmits<{ change: [] }>()
|
|
</script>
|
|
|
|
<template>
|
|
<input class="batch-delete-checkbox" type="checkbox" :aria-label="label" :title="label"
|
|
:checked="checked" :disabled="disabled" :indeterminate="partial ?? false" @change.stop="$emit('change')" @click.stop />
|
|
</template>
|
|
|
|
<style scoped>
|
|
.batch-delete-checkbox { width: 15px; height: 15px; vertical-align: middle; cursor: pointer; accent-color: #b33a2e; }
|
|
.batch-delete-checkbox:disabled { cursor: not-allowed; }
|
|
</style>
|