Skip to content

Commit

Permalink
fix(table): event editCancel loss params
Browse files Browse the repository at this point in the history
修复table的editCancel事件缺少部分参数的问题
  • Loading branch information
mynetfan committed Jun 22, 2021
1 parent 8eba7fb commit 8d22231
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8d22231

Please sign in to comment.