From 1a0020b43ea217acf53f57b0385f7ba34a3aa389 Mon Sep 17 00:00:00 2001 From: lyp Date: Tue, 24 Dec 2024 09:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/route/proj/ProjNew.tsx | 1 + src/route/proj/edit/ProjEditStep2.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/route/proj/ProjNew.tsx b/src/route/proj/ProjNew.tsx index 86233f2..d8691c2 100644 --- a/src/route/proj/ProjNew.tsx +++ b/src/route/proj/ProjNew.tsx @@ -333,6 +333,7 @@ export default function ProjNew() { locale={locale} // style={{ width: '100%' }} style={{ height: '50px', width: '800px', fontSize: 16, background: '#eeeeee', }} + disabledDate={(current) => current && current > dayjs().endOf('day')} /> diff --git a/src/route/proj/edit/ProjEditStep2.tsx b/src/route/proj/edit/ProjEditStep2.tsx index 7ce7bdd..5f88aeb 100644 --- a/src/route/proj/edit/ProjEditStep2.tsx +++ b/src/route/proj/edit/ProjEditStep2.tsx @@ -638,6 +638,7 @@ export default function ProjEditStep2(props: any) { locale={locale} // style={{ width: '100%' }} style={{ height: '50px', width: '411px', fontSize: '16px' }} + disabledDate={(current) => current && current > dayjs().endOf('day')} />