add show field names prop

This commit is contained in:
Pete Matsyburka
2024-01-24 23:20:53 +02:00
parent 5d598e8268
commit e84be523c6
9 changed files with 82 additions and 19 deletions
+6 -1
View File
@@ -4,7 +4,7 @@
<label
:for="field.uuid"
class="label text-2xl"
>{{ field.name || t('date') }}
>{{ field.name && showFieldNames ? field.name : t('date') }}
<template v-if="!field.required">({{ t('optional') }})</template>
</label>
<button
@@ -46,6 +46,11 @@ export default {
type: Object,
required: true
},
showFieldNames: {
type: Boolean,
required: false,
default: true
},
modelValue: {
type: String,
required: false,