From 8f89e503a633376f8b8f26d4ef80951132df88c0 Mon Sep 17 00:00:00 2001 From: ArcPen Date: Fri, 29 Aug 2025 21:28:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(time-picker):=20=E9=AA=8C=E8=AF=81=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E7=9A=84=E6=97=B6=E9=97=B4=E4=B8=8D=E4=B8=BA=E8=A2=AB?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closed #5939 --- packages/components/time-picker/time-picker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/time-picker/time-picker.tsx b/packages/components/time-picker/time-picker.tsx index a8ae8a38b8..673a85be19 100755 --- a/packages/components/time-picker/time-picker.tsx +++ b/packages/components/time-picker/time-picker.tsx @@ -72,7 +72,7 @@ export default defineComponent({ const handleInputBlur = (value: string, context: SelectInputBlurContext) => { if (allowInput.value) { - const isValidTime = validateInputValue(currentValue.value, format.value); + const isValidTime = validateInputValue(currentValue.value, format.value, props.disableTime); if (isValidTime) { setInnerValue(formatInputValue(currentValue.value, format.value)); } @@ -82,7 +82,7 @@ export default defineComponent({ const handleClickConfirm = (e: MouseEvent) => { props?.onConfirm?.({ e }); - const isValidTime = validateInputValue(currentValue.value, format.value); + const isValidTime = validateInputValue(currentValue.value, format.value, props.disableTime); if (isValidTime) setInnerValue(currentValue.value); isShowPanel.value = false; };