adrema/resources/js/views/formtemplate/CheckboxField.vue

28 lines
703 B
Vue
Raw Normal View History

2023-12-26 01:05:45 +01:00
<template>
2023-12-26 20:20:32 +01:00
<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-textarea
id="description"
label="Beschreibung"
size="sm"
name="description"
:model-value="modelValue.description"
@update:modelValue="$emit('update:modelValue', {...modelValue, description: $event})"
></f-textarea>
2023-12-26 01:05:45 +01:00
</template>
<script setup>
const props = defineProps({
modelValue: {},
});
const emit = defineEmits(['update:modelValue']);
</script>