add nova
This commit is contained in:
21
nova/resources/js/components/Checkbox.vue
Normal file
21
nova/resources/js/components/Checkbox.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<input
|
||||
type="checkbox"
|
||||
class="checkbox"
|
||||
:disabled="disabled"
|
||||
:checked="checked"
|
||||
@change="handleChange"
|
||||
@click.stop
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
checked: { type: Boolean, default: false },
|
||||
disabled: { type: Boolean, default: false },
|
||||
})
|
||||
|
||||
const emit = defineEmits(['input'])
|
||||
|
||||
const handleChange = e => emit('input', e)
|
||||
</script>
|
||||
Reference in New Issue
Block a user