diff --git a/src/components/Table/src/components/editable/EditableCell.vue b/src/components/Table/src/components/editable/EditableCell.vue index 97aa1ee116f..6517882ed18 100644 --- a/src/components/Table/src/components/editable/EditableCell.vue +++ b/src/components/Table/src/components/editable/EditableCell.vue @@ -249,7 +249,14 @@ function handleCancel() { isEdit.value = false; currentValueRef.value = defaultValueRef.value; - table.emit?.('edit-cancel', unref(currentValueRef)); + const { column, index, record } = props; + const { key, dataIndex } = column; + table.emit?.('edit-cancel', { + record, + index, + key: dataIndex || key, + value: unref(currentValueRef), + }); } function onClickOutside() {