element icon indicating copy to clipboard operation
element copied to clipboard

Table: fix 计算fixed列时数组未扁平化导致宽度计算错误,table内容因width过小而未正常显示的 issue (#22752)

Open yunchuan123 opened this issue 1 year ago • 1 comments

Please make sure these boxes are checked before submitting your PR, thank you!

  • [x] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • [x] Make sure you are merging your commits to dev branch.
  • [x] Add some descriptions and refer relative issues for you PR.

yunchuan123 avatar Dec 04 '23 11:12 yunchuan123

table在计算固定列宽度时,没有展开固定列的子列,导致计算结果与实际结果偏差。 例如issue:#22752中,多级表格中,fixed的表格有五个子列,而在计算宽度的时候,只计算了父级一个列的宽度,导致宽度计算错误,造成了只显示一个子列的现象。 修复:使用doFlattenColumns函数展开fixedColumns再进行宽度计算。

yunchuan123 avatar Dec 05 '23 03:12 yunchuan123