From de44186164d8147d68ddca1f09129e0f8fb7b69b Mon Sep 17 00:00:00 2001 From: Lightling Date: Wed, 19 Mar 2025 18:28:38 -0400 Subject: [PATCH] field editor validation & chips label --- src/components/InputChips.vue | 23 +++++++++++++++-------- src/views/Editor/FieldEditor.vue | 26 +++++++++++++++++++++++--- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/components/InputChips.vue b/src/components/InputChips.vue index a061c22..d0bbd2c 100644 --- a/src/components/InputChips.vue +++ b/src/components/InputChips.vue @@ -6,6 +6,9 @@ import InputGroup from 'primevue/inputgroup' import InputText from 'primevue/inputtext' const model = defineModel() +const props = defineProps<{ + label?: string, +}>() const entry = ref('') const preventSubmit = computed(() => entry.value === '' || model.value?.includes(entry.value)) const emits = defineEmits<{ @@ -40,13 +43,9 @@ const onSubmit = (event: Event) => { diff --git a/src/views/Editor/FieldEditor.vue b/src/views/Editor/FieldEditor.vue index ddc82df..eb3420c 100644 --- a/src/views/Editor/FieldEditor.vue +++ b/src/views/Editor/FieldEditor.vue @@ -1,6 +1,7 @@