From e8fa564bc2afe79ef318b5e03f3e20ceabeec5cb Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 4 Jan 2024 18:13:31 -0300 Subject: [PATCH] Agregar * a inputs de campos required via css --- src/components/common/VnInput.vue | 17 ++++++++--------- src/components/common/VnSelectCreate.vue | 16 +--------------- src/components/common/VnSelectFilter.vue | 17 ++++++++--------- src/pages/Entry/EntryCreate.vue | 7 ++++--- 4 files changed, 21 insertions(+), 36 deletions(-) diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index bfd0dea40..9684dcc32 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -12,14 +12,6 @@ const $props = defineProps({ type: Boolean, default: false, }, - label: { - type: String, - default: '', - }, - required: { - type: Boolean, - default: false, - }, }); const value = computed({ @@ -47,8 +39,8 @@ const styleAttrs = computed(() => { ref="vnInputRef" v-model="value" v-bind="{ ...$attrs, ...styleAttrs }" - :label="required ? label + ' *' : label" type="text" + :class="{ required: $attrs.required }" > + + diff --git a/src/components/common/VnSelectCreate.vue b/src/components/common/VnSelectCreate.vue index cdfb0bfbd..bdc3f5cc8 100644 --- a/src/components/common/VnSelectCreate.vue +++ b/src/components/common/VnSelectCreate.vue @@ -20,14 +20,6 @@ const $props = defineProps({ type: Array, default: () => ['developer'], }, - label: { - type: String, - default: '', - }, - required: { - type: Boolean, - default: false, - }, }); const role = useRole(); @@ -52,13 +44,7 @@ const toggleForm = () => {