Fix TextField Meta
This commit is contained in:
parent
f1d4d3e428
commit
0eb8928b22
|
@ -1,20 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<f-switch
|
<f-switch id="fieldrequired" :model-value="modelValue.required" label="Erforderlich" size="sm" name="fieldrequired"
|
||||||
id="fieldrequired"
|
inline @update:modelValue="$emit('update:modelValue', { ...modelValue, required: $event })"></f-switch>
|
||||||
v-model="modelValue.required"
|
|
||||||
label="Erforderlich"
|
|
||||||
size="sm"
|
|
||||||
name="fieldrequired"
|
|
||||||
inline
|
|
||||||
@update:modelValue="$emit('update:modelValue', {...modelValue, required: $event})"
|
|
||||||
></f-switch>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {},
|
||||||
validator: (v) => v === true || v === false,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue']);
|
const emit = defineEmits(['update:modelValue']);
|
||||||
|
|
Loading…
Reference in New Issue