Repository navigation
fix(table): honor default and explicit middle alignment - #4509
Open
lanqing431 wants to merge 1 commit into
Open
lanqing431 wants to merge 1 commit into
lanqing431 wants to merge 1 commit into
Conversation
lanqing431
requested review from
HaixingOoO,
NWYLZW,
RylanBot,
ZWkang,
carolin913,
honkinglin and
uyarn
as code owners
November 28, 2026 18:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
Refs Tencent/tdesign#533.
💡 需求背景和解决方案
Table 会添加
top和bottom的样式类,但过滤了middle。当页面的td采用vertical-align: baseline时,默认值和显式middle都会落到 baseline。复用现有
middle样式类。API 与列级对齐规则不变。Edge 实测默认值和显式middle都从 baseline 变成 middle,top和bottom保持原行为。1,490 项单测和 1,926 项示例快照通过。React 的 UMD、CJS、ES、ESM、样式和类型声明产物构建、TypeScript 检查及改动范围 ESLint 通过。快照验证在本机统一了 Windows 路径分隔符,发布构建在本机对旧 Rollup 样式插件进行了同样的路径适配。适配代码未进入此 PR。
📝 更新日志
tdesign-react
☑️ 请求合并前的自查清单
Codex 协助实现、测试及浏览器复核。