From 926f3b6950e22a9f315ec9893569028e0858e55a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 26 Feb 2024 07:22:34 +0100 Subject: [PATCH] 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; +}