From 6b9d9da515b8f034d9e6dcc23f87ea2844c44b3c Mon Sep 17 00:00:00 2001 From: LoopZhou <13745660+LoopZhou@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:18:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(datetimepicker):=20onConfirm=E9=9D=9E?= =?UTF-8?q?=E5=BF=85=E5=A1=AB=20(#1061)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/date-time-picker/date-time-picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/date-time-picker/date-time-picker.vue b/src/date-time-picker/date-time-picker.vue index f6aed1035..7c74434a3 100644 --- a/src/date-time-picker/date-time-picker.vue +++ b/src/date-time-picker/date-time-picker.vue @@ -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)); };