lu-lowcode-package-form 0.11.23 → 0.11.24
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 +47 -47
- package/dist/index.es.js +440 -439
- package/package.json +1 -1
- package/src/components/field/table/index.jsx +1 -1
package/package.json
CHANGED
@@ -202,7 +202,7 @@ const Table = ({ children, onTableAddRow, disabled, readonly, onTableRemoveRow,
|
|
202
202
|
{disabled != true && readonly != true && <TableAction subTableHead={index == 0} key={`row_${index}_action`} subTable={true} subTableIndex={index} label={"操作"}>
|
203
203
|
{isAllowCopy && <CopyOutlined className="fcursor-pointer" onClick={() => {
|
204
204
|
let tableValues = form.getFieldValue(fieldName)
|
205
|
-
const copyRow = {...tableValues[index]}
|
205
|
+
const copyRow = {...tableValues[index],__id:nanoid()}
|
206
206
|
tableValues.splice(index + 1, 0, copyRow)
|
207
207
|
form?.setFieldValue(fieldName, tableValues)
|
208
208
|
|