1
0
mirror of synced 2025-12-09 07:08:22 +08:00

修复自定义列报错问题

This commit is contained in:
xuliangzhan
2024-04-24 15:32:59 +08:00
parent 3ed5b412f4
commit 59232e5ec0
4 changed files with 15 additions and 3 deletions

View File

@@ -4505,7 +4505,11 @@ export default defineComponent({
// 如果点击自定义列容器
} else {
if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-clear').flag) {
tablePrivateMethods.preventEvent(evnt, 'event.clearCustom', {}, () => $xetable.closeCustom())
tablePrivateMethods.preventEvent(evnt, 'event.clearCustom', {}, () => {
if ($xetable.closeCustom) {
$xetable.closeCustom()
}
})
}
}
}