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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.11.23",
3
+ "version": "0.11.24",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -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