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(Grid): 新增 tableLayout 配置 #1921

Merged
merged 5 commits into from Mar 15, 2022
Merged

feat(Grid): 新增 tableLayout 配置 #1921

merged 5 commits into from Mar 15, 2022

Conversation

w91
Copy link
Contributor

@w91 w91 commented Mar 1, 2022

  • Grid
    • ✨ 新增 tableLayout API,支持设置 table 的 tableLayout 属性
    • 🦀️ Grid 未配置 tableLayout,但是配置了 scroll 或者 ellipsis 属性时,设置 tableLayoutfixed,解决一些单元格对齐问题
    • 🦀️ 对设置了宽度的列设置 word-break,解决一些单元格对齐问题

packages/zent/src/grid/Grid.tsx Outdated Show resolved Hide resolved
packages/zent/src/grid/Header.tsx Outdated Show resolved Hide resolved
packages/zent/src/grid/Cell.tsx Outdated Show resolved Hide resolved
@w91 w91 changed the title feat: 新增 tableLayout 配置 feat(Grid): 新增 tableLayout 配置 Mar 10, 2022
@w91 w91 merged commit 40d237e into v9 Mar 15, 2022
@w91 w91 deleted the feature/grid-table-layout branch March 15, 2022 07:45
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

2 participants