mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-04 04:59:38 +08:00
!3723 fix(#I68TU8): update table script for resize function
* fix: 修复列调整宽度报错问题
This commit is contained in:
parent
6c4273a758
commit
b0dba7dd3e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user