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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user