fix: table actions in fixed column (#5945)

This commit is contained in:
Netfan
2025-04-14 19:56:52 +08:00
committed by GitHub
parent f0e9e55af2
commit 9700150653
3 changed files with 16 additions and 11 deletions

View File

@@ -212,7 +212,12 @@ setupVbenVxeTable({
Popconfirm,
{
getPopupContainer(el) {
return el.closest('tbody') || document.body;
return (
el
.closest('.vxe-table--viewport-wrapper')
?.querySelector('.vxe-table--main-wrapper')
?.querySelector('tbody') || document.body
);
},
placement: 'topLeft',
title: $t('ui.actionTitle.delete', [attrs?.nameTitle || '']),