1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

chore: cleans up v-model for toggle

This commit is contained in:
Amir Raminfar
2023-10-05 20:35:20 -07:00
parent 3ca2308be8
commit ae1c0207de

View File

@@ -1,11 +1,6 @@
<template>
<label class="label inline-flex cursor-pointer gap-4 font-normal">
<input
type="checkbox"
class="toggle toggle-primary hover:bg-primary-focus"
:checked="modelValue"
@click="toggle()"
/>
<input type="checkbox" class="toggle toggle-primary hover:bg-primary-focus" v-model="modelValue" />
<slot />
</label>
</template>
@@ -14,6 +9,4 @@
const { modelValue } = defineModels<{
modelValue: boolean;
}>();
const toggle = useToggle(modelValue);
</script>