0
0
Fork 0

change prop name

This commit is contained in:
William Buezas 2024-04-30 16:21:06 -03:00
parent 2e85b9c063
commit 0890de3771
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
emitDate: { emitDateFormat: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
@ -43,7 +43,7 @@ const value = computed({
set(value) { set(value) {
emit( emit(
'update:modelValue', 'update:modelValue',
props.emitDate ? new Date(value) : joinDateAndTime(value, time.value) props.emitDateFormat ? new Date(value) : joinDateAndTime(value, time.value)
); );
}, },
}); });