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

feat: column minWidth #1125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linxianxi
Copy link
Contributor

@linxianxi linxianxi commented May 16, 2024

只在 tableLayout='auto' 时有效,所以根据以下代码实际上大多数情况 minWidth 都无效。

image

Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 3:30am

const column = columns && columns[i];
const additionalProps = column && column[INTERNAL_COL_DEFINE];
const column = columns?.[i];
const minWidth = tableLayout === 'auto' && column?.minWidth;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tableLayout 为 'fixed' 时不透传 minWidth,否则会造成布局问题
image

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