fix: 修复EditCellTable 可编辑单元格当columns.ellipsis=true时,回调中取不到key的值。 (#1598)

This commit is contained in:
wentmac 2022-01-18 21:47:47 +08:00 committed by GitHub
parent 5fc28f92d5
commit e82bafa43e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@
result = await beforeEditSubmit({
record: pick(record, keys),
index,
key: key as string,
key: dataKey as string,
value,
});
} catch (e) {
@ -281,7 +281,7 @@
set(record, dataKey, value);
//const record = await table.updateTableData(index, dataKey, value);
needEmit && table.emit?.('edit-end', { record, index, key, value });
needEmit && table.emit?.('edit-end', { record, index, key: dataKey, value });
isEdit.value = false;
}