diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 72d9bb2bc..fe0866292 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -15,7 +15,7 @@ const props = defineProps({ type: Boolean, default: false, }, - emitDate: { + emitDateFormat: { type: Boolean, default: false, }, @@ -43,7 +43,7 @@ const value = computed({ set(value) { emit( 'update:modelValue', - props.emitDate ? new Date(value) : joinDateAndTime(value, time.value) + props.emitDateFormat ? new Date(value) : joinDateAndTime(value, time.value) ); }, });