We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e27b9 commit b238b49Copy full SHA for b238b49
src/form/table.tsx
@@ -120,6 +120,8 @@ export default function InternalTable({
120
...restProps
121
} = tableProps;
122
123
+ const formInstance = Form.useFormInstance();
124
+
125
const convertRawToTableCol = (raw?: ColumnType[]): ColumnsType<FormListFieldData> => {
126
if (!raw?.length) return [];
127
return raw.map(
@@ -201,7 +203,7 @@ export default function InternalTable({
201
203
202
204
return (
205
<Form.Item name={currentNamePath} rules={rules} {...formItemProps}>
- {render?.(record, currentNamePath)}
206
+ {render?.(record, currentNamePath, formInstance)}
207
</Form.Item>
208
);
209
},
0 commit comments