Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pro:table): resize one column to make the other columns too narrow #1276

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

danranVm
Copy link
Member

@danranVm danranVm commented Nov 15, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

  • 可以通过配置 resizable,开启拖拽调整列宽,还可以配置 maxWidth minWidth 来限制列宽的范围。
  • 如果发现设置 scroll.width 后无法出现横向滚动条,拖拽一列后导致其他列变得过窄,请对未设置 width 的列设置一个 minWidth.

What is the new behavior?

  • 开启 autoHeight 或者存在 resizable 的列时,tableLayout 默认为 fixed
  • 会将列配置中的 minWidth, maxWidth 设置到 col 上
  • 开启 autoHeight 后,将始终渲染 FixedHolder

Other information

@idux-bot
Copy link

idux-bot bot commented Nov 15, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #1276 (49a2a41) into main (6082a15) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1276   +/-   ##
=======================================
  Coverage   92.98%   92.98%           
=======================================
  Files         320      320           
  Lines       29503    29503           
  Branches     3345     3345           
=======================================
  Hits        27433    27433           
  Misses       2070     2070           
Impacted Files Coverage Δ
packages/components/table/src/Table.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm danranVm merged commit cd4e08c into IDuxFE:main Nov 15, 2022
@danranVm danranVm deleted the fix-table-width branch November 15, 2022 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant