From 0c0ea1cc2cf1cc2cc7b555e1f876bba1beb01b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?0o=E5=BC=A0=E4=B8=8D=E6=AD=AAo0?= Date: Mon, 11 Jul 2022 11:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20=E4=BF=AE=E5=A4=8Dda?= =?UTF-8?q?tePicker=20=E6=94=B9=E5=8F=98modelValue=E5=90=8E=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E4=B8=8D=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/datePicker/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/package/component/src/component/datePicker/index.vue b/package/component/src/component/datePicker/index.vue index 0df320d7..1e6efb4b 100644 --- a/package/component/src/component/datePicker/index.vue +++ b/package/component/src/component/datePicker/index.vue @@ -353,6 +353,7 @@ onMounted(() => { // 计算结果日期 const dateValue = computed(() => { + currentDay.value = new Date(props.modelValue).getTime(); if (currentDay.value === -1) { $emits("update:modelValue", ""); return "";