Browse Source

docs: Update Table edit row example (#23270)

pull/23274/head
二货机器人 5 years ago
committed by GitHub
parent
commit
c2a1fe5b1f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/demo/edit-row.md

2
components/table/demo/edit-row.md

@ -85,7 +85,7 @@ const EditableTable = () => {
const isEditing = (record: Item) => record.key === editingKey;
const edit = (record: Item) => {
form.setFieldsValue({ ...record });
form.setFieldsValue({ name: '', age: '', address: '', ...record });
setEditingKey(record.key);
};

Loading…
Cancel
Save