From 1e7c8e03dfb04639831565c9382dec6a04cb03ed Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 21 Feb 2024 09:19:06 +0100 Subject: [PATCH 01/12] refs #6907 feat: fix_input_clearable_hover --- src/components/common/VnInput.vue | 44 ++++++++++++------- src/pages/Customer/Card/CustomerBasicData.vue | 1 - 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index 8a01e0bee..0f7ea4e93 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -1,5 +1,5 @@ diff --git a/src/pages/Customer/Card/CustomerBasicData.vue b/src/pages/Customer/Card/CustomerBasicData.vue index 458d50082..cf0ceaf51 100644 --- a/src/pages/Customer/Card/CustomerBasicData.vue +++ b/src/pages/Customer/Card/CustomerBasicData.vue @@ -69,7 +69,6 @@ const filterOptions = { v-model="data.socialName" :label="t('customer.basicData.socialName')" :rules="validate('client.socialName')" - autofocus />
From f075041da3401f5f79e43832ed083f008cabada5 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 21 Feb 2024 09:21:22 +0100 Subject: [PATCH 02/12] refs #6907 fix: revert autofocus property --- src/pages/Customer/Card/CustomerBasicData.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Customer/Card/CustomerBasicData.vue b/src/pages/Customer/Card/CustomerBasicData.vue index cf0ceaf51..458d50082 100644 --- a/src/pages/Customer/Card/CustomerBasicData.vue +++ b/src/pages/Customer/Card/CustomerBasicData.vue @@ -69,6 +69,7 @@ const filterOptions = { v-model="data.socialName" :label="t('customer.basicData.socialName')" :rules="validate('client.socialName')" + autofocus />
From 926f3b6950e22a9f315ec9893569028e0858e55a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 26 Feb 2024 07:22:34 +0100 Subject: [PATCH 03/12] refs #6907 feat: add mouseEvent VnInputDate --- src/components/common/VnInputDate.vue | 47 +++++++++++++-------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 8e0ef2890..ff1dfb2fb 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -16,6 +16,8 @@ const props = defineProps({ default: false, }, }); +const focus = ref(false); + const emit = defineEmits(['update:modelValue']); const value = computed({ get() { @@ -50,33 +52,30 @@ const styleAttrs = computed(() => { } : {}; }); +function maxDate(date) { + const today = formatDate(new Date()); + return date <= today; +}