From 26dfa623143012097f7d07710e6dd0cae1b6f9ab Mon Sep 17 00:00:00 2001 From: LuckyFBB <976060700@qq.com> Date: Tue, 17 Jun 2025 12:02:25 +0800 Subject: [PATCH] fix(form): add formInstance for no deps Form.Item --- src/form/table.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/form/table.tsx b/src/form/table.tsx index e48c7046c..b85890587 100644 --- a/src/form/table.tsx +++ b/src/form/table.tsx @@ -120,6 +120,8 @@ export default function InternalTable({ ...restProps } = tableProps; + const formInstance = Form.useFormInstance(); + const convertRawToTableCol = (raw?: ColumnType[]): ColumnsType => { if (!raw?.length) return []; return raw.map( @@ -201,7 +203,7 @@ export default function InternalTable({ return ( - {render?.(record, currentNamePath)} + {render?.(record, currentNamePath, formInstance)} ); },