From 5aee16b540914799bdd16fedf031ac0334aff614 Mon Sep 17 00:00:00 2001 From: allenve Date: Tue, 24 Oct 2023 10:27:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20input-date=20=E9=9D=99=E6=80=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/StaticHoc.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/amis/src/renderers/Form/StaticHoc.tsx b/packages/amis/src/renderers/Form/StaticHoc.tsx index d2042eada..601d11262 100644 --- a/packages/amis/src/renderers/Form/StaticHoc.tsx +++ b/packages/amis/src/renderers/Form/StaticHoc.tsx @@ -150,11 +150,12 @@ export function supportStatic() { } function renderStaticDateTypes(props: any) { - const {render, type, inputFormat, timeFormat, format, value} = props; + const {render, type, inputFormat, valueFormat, timeFormat, format, value} = + props; return render('static-input-date', { type: 'date', value, format: type === 'time' && timeFormat ? timeFormat : inputFormat, - valueFormat: format + valueFormat: valueFormat || format }); }