From e8b5f98260b78881a092ac63259059a0971a116c Mon Sep 17 00:00:00 2001 From: keven1024 Date: Wed, 22 Apr 2026 08:40:14 +0800 Subject: [PATCH] feat(front): add error handling to InputGroupField component with aria attributes for accessibility --- front/components/Field/InputGroupField.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/front/components/Field/InputGroupField.vue b/front/components/Field/InputGroupField.vue index 2d6ece9..700497b 100644 --- a/front/components/Field/InputGroupField.vue +++ b/front/components/Field/InputGroupField.vue @@ -6,7 +6,7 @@ const props = defineProps<{ label?: string rules?: RuleExpression }>() -const { value, setValue } = useField(props.name, props?.rules) +const { value, setValue, errorMessage } = useField(props.name, props?.rules) const addInput = ref('') @@ -17,22 +17,28 @@ const addInput = ref('')
- +
+

{{ errorMessage }}