fix 修复非编辑列触发提示框问题

This commit is contained in:
xuliangzhan
2022-12-16 17:04:24 +08:00
parent 96a79bd6d5
commit eb022fabf6

View File

@@ -2605,8 +2605,14 @@ const Methods = {
const { row, column } = params
const cell = evnt.currentTarget
this.handleTargetEnterEvent(tooltipStore.column !== column || tooltipStore.row !== row)
if (isEnableConf(editConfig)) {
if ((editOpts.mode === 'row' && actived.row === row) || (actived.row === row && actived.column === column)) {
// 单元格处于编辑状态时不触发提示框
if (column.editRender && isEnableConf(editConfig)) {
// 如果是行编辑模式
if (editOpts.mode === 'row' && actived.row === row) {
return
}
// 如果是单元格编辑模式
if (actived.row === row && actived.column === column) {
return
}
}