From 2c2baca69fe336a6305aa5e705151cf9a2dbc73d Mon Sep 17 00:00:00 2001 From: Syngnat Date: Wed, 1 Apr 2026 14:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(data-grid):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E7=BC=96=E8=BE=91=E6=97=B6=E6=97=A5=E5=8E=86?= =?UTF-8?q?=E6=AE=8B=E7=95=99=E4=B8=8A=E6=AC=A1=E9=80=89=E6=8B=A9=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Form.Item 默认 preserve={true},DatePicker 卸载后表单仍保留旧 dayjs 值 - 再次进入编辑时 DatePicker 读取到残留值,导致日历面板显示上次选择的日期圆圈 - 设置 preserve={false} 确保每次编辑态卸载后清除字段值,消除残留标记 - refs #290 --- frontend/src/components/DataGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/DataGrid.tsx b/frontend/src/components/DataGrid.tsx index e50a2ce..53112ac 100644 --- a/frontend/src/components/DataGrid.tsx +++ b/frontend/src/components/DataGrid.tsx @@ -637,7 +637,7 @@ const EditableCell: React.FC = React.memo(({ if (editable) { childNode = editing ? ( - + {isDateTimeField ? ( pickerType === 'time' ? (