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

31 lines
768 B
Vue
Raw Normal View History

2023-12-30 01:00:58 +01:00
<template>
<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>
<f-switch
id="max_today"
:model-value="modelValue.max_today"
label="Nur Daten bis heute erlauben"
size="sm"
name="max_today"
inline
@update:modelValue="$emit('update:modelValue', {...modelValue, max_today: $event})"
></f-switch>
</template>
2024-07-03 16:37:58 +02:00
<script lang="js" setup>
2023-12-30 01:00:58 +01:00
const props = defineProps({
modelValue: {},
2023-12-31 14:29:50 +01:00
meta: {},
payload: {},
2023-12-30 01:00:58 +01:00
});
const emit = defineEmits(['update:modelValue']);
</script>