cscan / vue3-excel-editor

Vue3 plugin for displaying and editing the array-of-object in Excel style.
MIT License
325 stars 62 forks source link

When autoFillWidth is set to true, the cell will automatically increase in width infinitely #59

Closed StrongerLph closed 1 week ago

StrongerLph commented 1 month ago

code : image

display:

demo

what happen? who can help me? I need autoFillWidth

cscan commented 1 month ago

It seems the component continuous receive the window resize event, please verify

StrongerLph commented 1 month ago

It seems the component continuous receive the window resize event, please verify

Breakpoint debugging found that winResizewas triggered indefinitely

image

cscan commented 1 month ago

Please remove the width style from vue-excel-editor, and specified width in px for each column, i.e. width="10px" and retry

StrongerLph commented 1 month ago

Please remove the width style from vue-excel-editor, and specified width in px for each column, i.e. width="10px" and retry

If I do this, the width of each column is fixed, and when I dynamically change the number of columns displayed, the other columns cannot adapt to the remaining width. That's all I can do for now, but is it a bug

StrongerLph commented 1 month ago

Please remove the width style from vue-excel-editor, and specified width in px for each column, i.e. width="10px" and retry

oh,I think I know how to solve this problem, set a fixed width for the container, make sure that winResize does not trigger. Thanks for you reply!