!3723 fix(#I68TU8): update table script for resize function

* fix: 修复列调整宽度报错问题
This commit is contained in:
Argo 2023-01-04 14:19:08 +00:00
parent 6c4273a758
commit b0dba7dd3e

View File

@ -121,7 +121,7 @@ export class Table extends BlazorComponent {
else th.classList.remove('border-resize')
const index = [].indexOf.call(th.parentNode.children, th);
th.closest('.table-resize').querySelectorAll('tbody tr').forEach(tr => {
th.closest('.table-resize').querySelectorAll('.table > tbody > tr').forEach(tr => {
const td = tr.children.item(index)
if (toggle) td.classList.add('border-resize')
else td.classList.remove('border-resize')