From fc2a15c75e273f8b40647784001f24e313fb1449 Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 12 Jun 2018 23:54:36 +0800 Subject: [PATCH] feat: add role for Fieldset, use more generic wrapper for Field --- packages/veui/src/components/Form/Field.vue | 10 +++++----- packages/veui/src/components/Form/Fieldset.vue | 10 +++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/veui/src/components/Form/Field.vue b/packages/veui/src/components/Form/Field.vue index 4ed086a3a..78ab5e856 100644 --- a/packages/veui/src/components/Form/Field.vue +++ b/packages/veui/src/components/Form/Field.vue @@ -9,16 +9,16 @@ 'veui-field-required': isRequired }" > - +
{{ label }} - +
- {{ tip }} -

{{ tip }} +

{{ validity.message }}

+ >{{ validity.message }}
diff --git a/packages/veui/src/components/Form/Fieldset.vue b/packages/veui/src/components/Form/Fieldset.vue index bd861b99f..6f0b5403f 100644 --- a/packages/veui/src/components/Form/Fieldset.vue +++ b/packages/veui/src/components/Form/Fieldset.vue @@ -1,5 +1,13 @@