mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-03 02:18:40 +08:00
fix(table): event editCancel loss params
修复table的editCancel事件缺少部分参数的问题
This commit is contained in:
parent
8eba7fb527
commit
8d22231a5f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user