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; +}