Skip to content

Commit dcb13c7

Browse files
committed
bug fixed
修复单元格编辑开启虚拟滚动后,没有根据 field 更新的问题
1 parent 0939543 commit dcb13c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/ve-table/src/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,11 +1706,11 @@ export default {
17061706
};
17071707
},
17081708

1709-
// set editing cell value
1710-
setEditingCellValue(value) {
1709+
// update editing cell value
1710+
updateEditingCellValue(value) {
17111711
const { editingCell } = this;
1712-
let { row } = editingCell;
1713-
row[editingCell.colKey] = value;
1712+
let { row, column } = editingCell;
1713+
row[column.field] = value;
17141714
this.editingCell.row = row;
17151715
},
17161716

@@ -2215,7 +2215,7 @@ export default {
22152215
},
22162216
// edit input value change
22172217
[EMIT_EVENTS.EDIT_INPUT_VALUE_CHANGE]: (value) => {
2218-
this.setEditingCellValue(value);
2218+
this.updateEditingCellValue(value);
22192219
},
22202220
},
22212221
};

0 commit comments

Comments
 (0)