39 KiB
order, title, timeline, tag
| order | title | timeline | tag |
|---|---|---|---|
| 6 | 更新日志 | true | vVERSION |
antd 遵循 Semantic Versioning 2.0.0 语义化版本规范。
发布周期
- 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
- 次版本号:每月发布一个带有新特性的向下兼容的版本。
- 主版本号:含有破坏性更新和新特性,不在发布周期内。
6.0.0
2025-11-22
🏆 Ant Design 6.0.0 已发布!
升级必读
🌟 如果你想升级到 Ant Design 6.0,请仔细查阅我们的迁移文档。
主要变化
-
🔥 组件语义化结构,阅读《语义化发现组件精致的美》了解更多。
🔥 antd 组件支持语义化结构以及 ConfigProvider 配置,由 @thinkasany 主导。
- feat(Result): support
classNamesandstylesfor component and ConfigProvider #52171 - feat(Statistic): support
classNamesandstylesfor component and ConfigProvider #52141 - feat(Collapse): support
classNamesandstylesfor component and ConfigProvider #52258 - feat(Badge.Ribbon): support ConfigProvider #52303
- feat(Segmented): support
classNamesandstylesfor component and ConfigProvider #52376 - feat(Modal): support
classNamesandstylesfor component and ConfigProvider #52340 - feat(Alert): support
classNamesandstylesfor component and ConfigProvider #52669 - feat(Skeleton): support
classNamesandstyles#52470 @coding-ice - feat(Notification): support
classNamesandstylesfor component and ConfigProvider #52759 - feat(Tag): support
classNamesandstylesfor component and ConfigProvider #52764 - feat(Affix): support
classNamesandstylesfor component and ConfigProvider #52745 - feat(Checkbox): support
classNamesandstylesfor component and ConfigProvider #52781 - feat(Radio): support
classNamesandstylesfor component and ConfigProvider #52780 - feat(Message): support
classNamesandstylesfor component and ConfigProvider #52793 - feat(Watermark): support
classNamesandstylesfor component and ConfigProvider #52811 - feat(Spin): support
classNamesandstylesfor component and ConfigProvider #52823 - feat(Switch): support
classNamesandstylesfor component and ConfigProvider #52849 - feat(Breadcrumb): support
classNamesandstylesfor component and ConfigProvider #52859 - feat(Anchor): support
classNamesandstylesfor component and ConfigProvider #52866 - feat(Pagination): support
classNamesandstylesfor component and ConfigProvider #52893 - feat(Tabs): support
classNamesandstylesfor component and ConfigProvider #52895 - feat(Timeline): support
classNamesandstylesfor component and ConfigProvider #52976 - feat(Mentions): support
classNamesandstylesfor component and ConfigProvider #52961 - feat(Upload): support
classNamesandstylesfor component and ConfigProvider #52972 - feat(Tour): support ConfigProvider #52250
- feat(Button): support
classNamesandstylesfor component and ConfigProvider #53055 - feat(Select): support
classNamesandstylesfor component and ConfigProvider #52948 - feat(Image): support
classNamesandstylesfor component and ConfigProvider #53028 - feat(Tree): support
classNamesandstylesfor component and ConfigProvider #53174 - feat(AutoComplete): support
classNamesandstylesfor component and ConfigProvider #53150 - feat(Splitter): support
classNamesandstyles#53225 @wanpan11 - feat(Form): support
classNamesandstylesfor component and ConfigProvider #53226 - feat(Calendar): support
classNamesandstylesfor component and ConfigProvider #53159 - feat(TreeSelect): support
classNamesandstylesfor component and ConfigProvider #53229 - feat(ColorPicker): support
classNamesandstylesfor component and ConfigProvider #53303 - feat(Transfer): support
classNamesandstylesfor component and ConfigProvider #53429 @zombieJ - feat(QRCode): support ConfigProvider #52172
- feat(Progress): support
classNamesandstylesfor component and ConfigProvider #53535 @zombieJ - feat(TimePicker, DatePicker): support
classNamesandstylesfor components and ConfigProvider #53489 - feat(Menu): support
classNamesandstylesfor component and ConfigProvider #53324 - feat(Dropdown): support
classNamesandstylesfor component and ConfigProvider #53272 - feat(Cascader): support
classNamesandstylesfor component and ConfigProvider #53694 - feat(InputNumber): support
classNamesandstylesfor component and ConfigProvider #53698 - feat(Steps): support
classNamesandstylesfor component and ConfigProvider #53789 @zombieJ - feat(Table): support
classNamesandstylesfor component and ConfigProvider #53659 - feat(Divider): support
classNamesandstylesfor component and ConfigProvider #53890 - feat(Input): support semantic DOM #53958 @aojunhao123
- feat(FloatButton): support semantic structure and support ConfigProvider to pass related props #54145 @zombieJ
- refactor(Select): support semantic structure #55430 @zombieJ
🔥 antd 组件支持通过函数动态生成语义化结构,由 @meet-student 主导。
- feat(button): Support better customization with semantic classNames/styles as function #54813
- feat(input): Support better customization with semantic classNames/styles as function #54919
- feat(float-button): Support better customization with semantic classNames/styles as function #54917
- feat(divider): Support better customization with semantic classNames/styles as function #54949
- feat(breadcrumb): Support better customization with semantic classNames/styles as function #54950
- feat(anchor): Support better customization with semantic classNames/styles as function #54948
- feat(masonry): Support better customization with semantic classNames/styles as function #55032
- feat(Progress): Support better customization with semantic classNames & styles #55058 @li-jia-nan
- feat(menu): Support better customization with semantic classNames/styles as function #54955
- feat(space): Support better customization with semantic classNames/styles as function #55031 @hcjlxl
- feat(tabs): Support better customization with semantic classNames/styles as function #54958
- feat(splitter): Support better customization with semantic classNames/styles as function #55013 @hcjlxl
- feat(pagination): Support better customization with semantic classNames/styles as function #54957
- feat(steps): Support better customization with semantic classNames/styles as function #54956
- feat(dropdown): Support better customization with semantic classNames/styles as function #55114 @Arktomson
- feat(checkbox_radio): Support better customization with semantic classNames/styles as function #55056
- feat(auto-complete): Support better customization with semantic classNames/styles as function #54959
- feat(form): Support better customization with semantic classNames/styles as function #55126
- feat(date-picker_time-picker): Support better customization with semantic classNames/styles as function #54969
- feat(InputNumber): Support better customization with semantic classNames/styles as function #54996 @zjr222
- feat(input-otp_textarea_search): Support better customization with semantic classNames/styles as function #55109 @Arktomson
- feat(mentions): Support better customization with semantic classNames/styles as function #54963
- feat(select): Support better customization with semantic classNames/styles as function #55101 @Linkodt
- feat(slider): Support better customization with semantic classNames/styles as function #54965
- feat(switch): Support better customization with semantic classNames/styles as function #54994 @xkhanhan
- feat(transfer): Support better customization with semantic classNames/styles as function #54966
- feat(upload): Support better customization with semantic classNames/styles as function #54968
- feat(calendar): Support better customization with semantic classNames/styles as function #54978
- feat(descriptions): Support better customization with semantic classNames/styles #55118 @tanjiahao24
- feat(empty): Support better customization with semantic classNames/styles as function #55007 @Susuperli
- refactor: semantic of Descriptions #55190
- feat(qr-code): Support better customization with semantic classNames/styles as function #54982
- feat(statistic): Support better customization with semantic classNames/styles as function #55117 @Arktomson
- feat(table): Support better customization with semantic classNames/styles as function #54983
- feat(tag): Support better customization with semantic classNames/styles as function #54984
- feat(alert): Support better customization with semantic classNames/styles #55060 @ccc1018
- feat(result): Support better customization with semantic classNames/styles as function #55044 @ccc1018
- feat(Drawer): Support better customization with semantic classNames & styles #55096 @li-jia-nan
- feat(Modal): Support better customization with semantic classNames & styles #55081 @li-jia-nan
- feat(notification): Support better customization with semantic classNames/styles as function #55021 @GinWU05
- feat(spin): Support better customization with semantic classNames/styles as function #55157 @Susuperli
- feat(card): Support better customization with semantic classNames/styles as function #55161 @lovelts
- feat(collapse): Support better customization with semantic classNames/styles as function #54979
- feat(message): support better customization with semantic classNames/styles #55054 @nmsn
- feat(image): Support better customization with semantic classNames/styles as function #54980
- feat(segmented): Support better customization with semantic classNames/styles as function #55119 @Arktomson
- feat(timeline): Support better customization with semantic classNames/styles as function #54985
- refactor: semantic of message and notification #55199
- feat(tour): Support better customization with semantic classNames/styles as function #54987
- feat(tree): Support better customization with semantic classNames/styles as function #54988
- feat(Popover/Tooltip/Popconfirm): Support better customization with semantic classNames/styles as function #54986
- feat(Skeleton): Support better customization with semantic classNames & styles #55099 @li-jia-nan
- feat(cascader): Support better customization with semantic classNames/styles as function #54960
- feat(color-picker): Support better customization with semantic classNames/styles as function #54962
- feat(badge): Support better customization with semantic classNames/styles as function #54977
- feat(tree-select): Support better customization with semantic classNames/styles as function #54967
- feat(CheckableTagGroup): Support better customization with semantic classNames/styles as function #55796
- feat(Result): support
-
ConfigProvider
- 🆕 ConfigProvider 支持 Table
rowKey全局配置。#52751 @guoyunhe - 🆕 ConfigProvider 支持 Card.Meta 的配置。#52214 @thinkasany
- 🆕 ConfigProvider 支持Tooltip / Popover / Popconfirm 组件的箭头配置。#52434 @thinkasany
- 🆕 ConfigProvider 支持 Space 组件
root配置。#52248 @thinkasany
- 🆕 ConfigProvider 支持 Table
-
Tooltip
-
Input
- 🔥 InputNumber 增加
mode="spinner"拨轮模式。#55592 @guoyunhe - 🗑 Input.Search 重构废弃内部
addon*的使用,用 Space.Compact 替换。#55705 @EmilyyyLiu - 🐞 修复 Input.TextArea 的
styles.textarea无法覆盖内置样式的问题。#55579 @meet-student
- 🔥 InputNumber 增加
-
Mentions
- 🛠 重构 Mentions DOM 结构并支持
suffix语义化结构以及size属性。#55638 @zombieJ - 🐞 修复 Mentions 的
autoResize=false时,无法拖拽缩放尺寸的问题。#54039 @jin19980928
- 🛠 重构 Mentions DOM 结构并支持
-
🆕 Watermark 新增
onRemove以支持被用户手工删除的事件触发。#55551 @984507092 -
🆕 Breadcrumb 支持 ConfigProvider
separator全局配置。#54680 @guoyunhe -
🆕 Alert
closable支持 onClose 和 afterClose 方法。#54735 @EmilyyyLiu -
🆕 Radio.Group 支持
vertical纵向排列语法糖。#54727 @EmilyyyLiu -
Cascader
- 🆕 Cascader 支持
aria-*和data-*属性。#53910 @kiner-tang - 🆕 Cascader.Panel 添加 optionRender 允许自定义渲染选项。#54843 @EmilyyyLiu
- 🆕 Cascader 支持
-
Rate
-
Form
-
🆕 Flex 增加
orientation属性用于布局,原vertical语法糖仍然保留。#53648 @EmilyyyLiu -
DatePicker
- 🆕 DatePicker 语义化结构新增面板
container支持。#55388 @meet-student - 🆕 DatePicker 新增
previewValue,以控制鼠标悬停在选项时是否输入框展示预览值。#55258 @meet-student - 🐞 修复 DatePicker 在清空时,
onChange参数dateString返回值错误的问题。#55155 @EmilyyyLiu
- 🆕 DatePicker 语义化结构新增面板
-
Drawer
- 🆕 Drawer 新增
resizable支持拖拽能力。#54883 @cactuser-Lu - 💄 Drawer 遮罩添加模糊效果。#54707 @EmilyyyLiu
- 🆕 Drawer 新增
-
Collapse
- 🆕 Collapse
expandIconPosition替换为expandIconPlacement,并使用逻辑位置以优化 RTL 体验。#54311 @EmilyyyLiu - 🐞 修复 Collapse 语义化结构
icon作用元素不正确的问题。#55499 @thinkasany - 🐞 修复 Collapse 动态修改语义化 icon 不生效的问题。#55452 @thinkasany
- 🆕 Collapse
-
Table
- 🆕 Table
scrollTo方法支持offset以设置滚动偏移量。#54385 @zombieJ - 🆕 Table
pagination.position替换为pagination.placement。#54338 @EmilyyyLiu - ⌨️ ⌨️ 优化 Table
column为sortable时的aria-description可访问性属性。#53087 @jon-cullison - 🆕 重构 Table
column.fixed用start和end的逻辑位置以支持 RTL。#53114 @zombieJ - 🐞 修复 Table 在使用
sticky或scroll.y时出现重复的筛选下拉框和提示气泡显示的问题。修复 Table 渲染初始阶段列头不显示的问题。#54910 @afc163 - 🐞 修复 Table 在动态修改
childrenColumnName时,数据不会刷新的问题。#55559 @li-jia-nan
- 🆕 Table
-
Progress
- 🆕 Progress
gapPosition替换为gapPlacement,并使用位置描述值start和end取代left和right。#54329 @EmilyyyLiu - 🐞 修复 Progress 在变更 props 时,指示内容不会更新的问题。#55554 @thinkasany
- 🆕 Progress
-
🛠 Grid 使用 CSS 逻辑位置以支持 RTL 体验。#52560 @li-jia-nan
-
Notification
- 🛠 Notification 提供
closable属性将onClose与closeIcon收敛至其中。#54645 @EmilyyyLiu - 🆕 Notification 支持自定义进度条颜色。#52964 @yellowryan
- 🛠 Notification 提供
-
Image
- 🆕 Image 的预览遮罩
cover支持设置遮罩位置。#54492 @kiner-tang - 🛠 Image 移除默认的查看图标和文案(仍然可以通过
cover配置)。#54379 @765477020 - 🐞 修复 Image 在 RTL 下预览文案的展示问题。#53596 @aojunhao123
- 🆕 Image 的预览遮罩
-
Modal
- 🆕 Modal
closable支持onClose属性以任意方式关闭时触发。#54607 @EmilyyyLiu - 🆕 ConfigProvider 支持配置 Modal 的
okButtonProps和cancelButtonProps。#53684 @guoyunhe - 🛠 Modal 调整 DOM
className以与语义化结构规范保持一致。#54472 @thinkasany - ⌨️ 将 Modal 在
closable对象中配置的aria-*属性应用到关闭按钮上。#53289 @EmilyyyLiu - 🐞 修复 Modal 快速切换
open状态时,屏幕交互会被锁定的问题。#52753 @zombieJ
- 🆕 Modal
-
Tabs
- 🆕 Tabs
tabPosition替换为tabPlacement,并使用位置描述值start和end取代left和right。#54358 @EmilyyyLiu - 💄 Tabs 移除激活态文字阴影。#53617 @guoyunhe
- 🐞 Tabs 修复空内容 TabPane 的焦点行为,提升无障碍体验。#52856 @aojunhao123
- 🛠 移除 Tabs 废弃 API。#52768 @aojunhao123
- 🆕 Tabs
-
Theme
- 🔥 支持通过 ConfigProvider 的
theme中开启zeroRuntime,屏蔽 cssinjs 样式生成。#54334 @MadCcc - 🆕 杂项:CSS-in-JS 支持配置
autoPrefixTransformer添加浏览器样式前缀。#54427 @zombieJ - 🆕 Design Token: 在
useToken中透出 css 变量。#53195 @MadCcc - 💄 杂项:从 reset.css 中移除 mark 样式。#52974 @afc163
- 🔥 杂项:默认使用 CSS 变量。#52671 @MadCcc
- 💄 Design Token 新增
colorBorderDisabledtoken 以统一禁用状态下的边框颜色。#52421 @aojunhao123
- 🔥 支持通过 ConfigProvider 的
-
Segmented
- 🆕 Segmented 支持
items.tooltip属性以配置提示信息。#54273 @EmilyyyLiu - 🆕 Segmented 增加
orientation属性用于布局,原vertical语法糖仍然保留。#53664 @EmilyyyLiu - 🛠 改善 Segmented 组件可访问性。#52618 @aojunhao123
- 🆕 Segmented 支持
-
🛠 重命名 Steps 的
labelPlacement为titlePlacement以统一 API。#53873 @zombieJ -
Space
- 🛠 Space 使用
separator代替split。#53983 @thinkasany - 🛠 Space 使用
orientation代替direction属性。#53669 @EmilyyyLiu
- 🛠 Space 使用
-
Splitter
- 🆕 Splitter 使用
orientation代替layout,并增加vertical属性。#53670 @EmilyyyLiu - 🆕 Splitter 新增自定义拖拽图标。#52216 @wanpan11
- 🆕 Splitter 使用
-
Tour
- 🐞 修复 Tour 在滚动时,弹层不跟随的问题。#53140 @dependabot
- 🐞 修复 Tour dom 结构中
panel的className拼写错误。#55178 @thinkasany
-
Button
- 🆕 Button
iconPosition替换为iconPlacement并支持逻辑位置描述。#54279 @EmilyyyLiu - 🛠 Button
variant与color样式重构为 css variables 版本以降低尺寸。#54100 @zombieJ - 🆕 Button 新增自定义普通、虚线类型的按钮在禁用状态下的背景颜色。#52839 @yellowryan
- 🆕 Button
-
Tag
- 🆕 Tag 新增 CheckableTagGroup 子组件。#53256 @guoyunhe
- 🆕 Tag 自定义颜色支持变体。#53097 @guoyunhe
- 🆕 Tag 新增
disabled和href属性。#52229 @aojunhao123 - 🐞 修复 Tag 通过 ConfigProvider 修改
variant时,Tag 不会更新的问题。#55555 @thinkasany - 💄 移除 Tag
margin样式。#52123 @li-jia-nan
-
Timeline
-
🆕 TimeLine
items.position替换为items.placement并使用逻辑位置以优化 RTL 体验。#54382 @EmilyyyLiu -
🆕 Carousel
dotPosition替换为dotPlacement,使用位置描述值start和end取代left和right。#54294 @EmilyyyLiu -
🆕 Divider 使用
orientation替换type,并且支持vertical语法糖。#53645 @EmilyyyLiu -
🛠 AutoComplete 将搜索相关属性合并至
showSearch属性。#54184 @EmilyyyLiu -
🆕 Message 支持
pauseOnHover以配置用户在悬浮时暂停倒计时。#53785 @EmilyyyLiu -
💄
reset.css移除对 IE 的兼容。#55108 @thinkasany -
🛠 Slider 支持
orientation用于配置布局方向。#53671 @EmilyyyLiu -
💄 Image 遮罩添加模糊效果。#54714 @EmilyyyLiu
-
💄 Modal 遮罩添加模糊效果。#54670 @EmilyyyLiu
-
🐞 修复 Statistic.Timer 在页面进入非激活态时,
onFinish和onChange未触发的问题。#53894 @Psiphonc -
🛠 BackTop 完成生命周期已被移除。#52206 @li-jia-nan
-
🗑 Icon 占位组件完成生命周期已被移除。#52241 @li-jia-nan
-
🛠 移除 Dropdown.Button,请使用 Space.Compact。#53793 @Meet-student
-
🛠 Badge 重构
offset样式偏移为 CSS 逻辑位置。#55245 @li-jia-nan -
🛠 杂项:移除 MediaQueryList 针对旧版浏览器的兼容代码。#55396 @li-jia-nan
-
🛠 杂项:移除 React 19 兼容代码,现在 antd 默认支持 React 19。#55274 @li-jia-nan
-
🛠 杂项:移除
copy-to-clipboard依赖。#54448 @765477020 -
🔥 杂项:在打包产物
antd.js以及antd.min.js中启用了React Compiler以优化性能,对使用 CJS/ESM 场景的用户可自行选择开启,参考React 官方文档。 #55781 @li-jia-nan -
🌐 添加马拉地语国际化翻译。#55179 @divyeshagrawal
-
TypeScript
5.x
去 GitHub 查看 5.x 的 Change Log。
4.x
去 GitHub 查看 4.x 的 Change Log。
3.x
去 GitHub 查看 3.x 的 Change Log。
2.x
去 GitHub 查看 2.x 的 Change Log。
1.11.4
去 GitHub 查看 0.x 到 1.x 的 Change Log。