lu-lowcode-package-form 0.10.79 → 0.10.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +202 -202
- package/dist/index.es.js +15045 -15041
- package/package.json +1 -1
- package/src/components/form-container/layout/form-row.jsx +3 -3
package/package.json
CHANGED
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
2
2
|
import { nanoid } from 'nanoid';
|
3
3
|
import { Form, Row, Col } from 'antd';
|
4
4
|
|
5
|
-
const LayoutFormRow = ({ children, layout, onTableAddRow, onTableRemoveRow, form, initializeFormRender,recordFieldsChange, mode }) => {
|
5
|
+
const LayoutFormRow = ({ children, layout, onTableAddRow, onTableRemoveRow, form, initializeFormRender,recordFieldsChange, mode,getTableWithIds,removeLastFieldsValues }) => {
|
6
6
|
layout = layout || '1';
|
7
7
|
const getColSpan = (layoutStr) => {
|
8
8
|
const layoutArray = layoutStr.split(',').map(Number);
|
@@ -44,7 +44,7 @@ const LayoutFormRow = ({ children, layout, onTableAddRow, onTableRemoveRow, form
|
|
44
44
|
}
|
45
45
|
let childComponent = null
|
46
46
|
if (componentName == 'Field.Table')
|
47
|
-
childComponent = React.cloneElement(child, { onTableAddRow: onTableAddRow, onTableRemoveRow: onTableRemoveRow, form: form, fieldName: name, initializeFormRender, mode,recordFieldsChange })
|
47
|
+
childComponent = React.cloneElement(child, { onTableAddRow: onTableAddRow, onTableRemoveRow: onTableRemoveRow, form: form, fieldName: name, initializeFormRender, mode,recordFieldsChange ,getTableWithIds,removeLastFieldsValues })
|
48
48
|
else if (componentName === "Field.WithSingleSelect" || componentName === "Field.WithMultipleSelect" || componentName === "Show.WithTable") {
|
49
49
|
childComponent = <Form.Item
|
50
50
|
hidden={hidden}
|
@@ -75,7 +75,7 @@ const LayoutFormRow = ({ children, layout, onTableAddRow, onTableRemoveRow, form
|
|
75
75
|
>
|
76
76
|
{({ getFieldsValue }) => {
|
77
77
|
const fieldsValue = getFieldsValue();
|
78
|
-
let element = React.cloneElement(child, { onTableAddRow: onTableAddRow, onTableRemoveRow: onTableRemoveRow, form: form, fieldName: identifier, onCustomChange, fieldsValue, initializeFormRender,recordFieldsChange, shouldUpdateKey: shouldUpdateKey.current[identifier] })
|
78
|
+
let element = React.cloneElement(child, { onTableAddRow: onTableAddRow, onTableRemoveRow: onTableRemoveRow, form: form, fieldName: identifier, onCustomChange, fieldsValue, initializeFormRender,recordFieldsChange,getTableWithIds,removeLastFieldsValues , shouldUpdateKey: shouldUpdateKey.current[identifier] })
|
79
79
|
return componentName === "Show.WithTable" ? <>{element}</> : <Form.Item
|
80
80
|
style={{ marginBottom: 0 }}
|
81
81
|
label=""
|