Repository navigation
feat(Timeline): support configuring variant via ConfigProvider - #59576
Conversation
|
|
👁 Visual Regression Report for PR #59576 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
size-limit report 📦
|
Bundle ReportChanges will increase total bundle size by 214 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
More templates
commit: |
Deploying ant-design with
|
| Latest commit: |
8ee4f0f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a9adac1e.ant-design.pages.dev |
| Branch Preview URL: | https://feat-timeline-global-variant.ant-design.pages.dev |
…ant-design into feat-timeline-global-variant
…ant-design into feat-timeline-global-variant



English Template / 英文模板
🤔 这个变动的性质是?
🔗 相关 Issue
关联 #59556,按最新讨论补齐 Timeline 的顶层和组件级
variant配置。依赖的公共useVariant已由 #59581 合并。💡 需求背景和解决方案
Timeline 此前无法通过 ConfigProvider 统一配置样式变体。本 PR 支持
ConfigProvider.timeline.variant,并接入公共useVariant,同时读取顶层ConfigProvider.variant:优先按实例
variant> Formvariant>ConfigProvider.timeline.variant> 顶层ConfigProvider.variant> 默认值解析,再将不支持的值回退为outlined。语义化classNames/styles回调读取最终生效的值。保持现有公开variant类型和默认样式。中英文 API 表格沿用组件级全局配置支持版本标注,未改动 demo。
验证:5 个相关测试套件、88 个测试及 4 个快照通过;ESLint、Biome 和 diff 检查通过。全量 TypeScript 检查仍有两处 Select
allowClear测试类型错误,输出与feature基线完全一致;CR 未发现新增问题。📝 更新日志
variantthrough top-level and component-specific ConfigProvider settings, falling back tooutlinedfor unsupported values.variant配置,不支持的值回退为outlined。