Commit 1274596f by zhaochengxiang

nothing

parent e0302c82
......@@ -397,7 +397,7 @@ const UpdateField = (props) => {
}
})
const newData = [...data];
const newData = [...dataRef.current];
const index = newData.findIndex((item) => editingKeyRef.current === item.name);
//判断字段名称是否唯一
......@@ -542,26 +542,7 @@ const UpdateField = (props) => {
row: (editable&&editingKey===null&&keyword==='')?DragableBodyRow:null,
},
}}
onRow={(record, index) => {
let attr = {
index,
id: `field-${record.name}`,
};
if (!isEditing(record)) {
attr = {
index,
id: `field-${record.name}`,
onClick: (event) => {
event.stopPropagation();
editItem(record);
},
moveRow
};
}
return attr;
}}
onRow={onTableRow}
/>
</Form>
</DndProvider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment