table icon indicating copy to clipboard operation
table copied to clipboard

fix: add bounds check to getColumnWidth function

Open cactuser-Lu opened this issue 2 months ago • 4 comments

fix: prevent array bounds error in getColumnWidth calculation

当colSpan过大时,getColumnWidth 中数组越界,将产生样式错乱

c71ef100eac0c9f759dcaaf3c195e584 4c1debeb6132812c2175aa1e534534e5

Summary by CodeRabbit

发布说明

  • 优化改进
    • 改进了列宽度计算的内部逻辑,增强了边界验证和数据安全性。
    • 优化了多列跨度场景下的计算准确性。

cactuser-Lu avatar Nov 03 '25 14:11 cactuser-Lu