From c2a1fe5b1f76958686867080bbe4b5ddcfb512de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 15 Apr 2020 10:39:16 +0800 Subject: [PATCH] docs: Update Table edit row example (#23270) --- components/table/demo/edit-row.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/demo/edit-row.md b/components/table/demo/edit-row.md index 34c1ec5b14..628047d27a 100644 --- a/components/table/demo/edit-row.md +++ b/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); };