forked from verdnatura/salix-front
change prop name
This commit is contained in:
parent
2e85b9c063
commit
0890de3771
|
@ -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)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue