Fix TextField Meta

This commit is contained in:
philipp lang 2023-12-27 23:25:34 +01:00
parent f1d4d3e428
commit 0eb8928b22
1 changed files with 3 additions and 12 deletions

View File

@ -1,20 +1,11 @@
<template>
<f-switch
id="fieldrequired"
v-model="modelValue.required"
label="Erforderlich"
size="sm"
name="fieldrequired"
inline
@update:modelValue="$emit('update:modelValue', {...modelValue, required: $event})"
></f-switch>
<f-switch id="fieldrequired" :model-value="modelValue.required" label="Erforderlich" size="sm" name="fieldrequired"
inline @update:modelValue="$emit('update:modelValue', { ...modelValue, required: $event })"></f-switch>
</template>
<script setup>
const props = defineProps({
modelValue: {
validator: (v) => v === true || v === false,
},
modelValue: {},
});
const emit = defineEmits(['update:modelValue']);