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

22 lines
475 B
Vue
Raw Normal View History

2023-12-26 20:20:32 +01:00
<template>
2023-12-31 14:29:50 +01:00
<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>
2023-12-26 20:20:32 +01:00
</template>
2024-07-03 16:37:58 +02:00
<script lang="js" setup>
2023-12-26 20:20:32 +01:00
const props = defineProps({
2023-12-27 23:25:34 +01:00
modelValue: {},
2023-12-31 14:29:50 +01:00
meta: {},
payload: {},
2023-12-26 20:20:32 +01:00
});
const emit = defineEmits(['update:modelValue']);
</script>