Skip to content

Commit

Permalink
fix(datetimepicker): onConfirm非必填 (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopZhou authored Aug 29, 2023
1 parent edfaf5e commit 6b9d9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-time-picker/date-time-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default defineComponent({
});
const onConfirm = () => {
props.onConfirm(dayjs(curDate.value).format(props.format));
props.onConfirm?.(dayjs(curDate.value).format(props.format));
setDateTimePickerValue(dayjs(curDate.value).format(props.format));
};
Expand Down

0 comments on commit 6b9d9da

Please sign in to comment.