Files
ant-design/CHANGELOG.zh-CN.md
𝑾𝒖𝒙𝒉 1cc64c50ab docs(v6-log): refined changelog (#55965)
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-11-29 00:36:08 +08:00

39 KiB
Raw Blame History

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 classNames and styles for component and ConfigProvider #52171
    • feat(Statistic): support classNames and styles for component and ConfigProvider #52141
    • feat(Collapse): support classNames and styles for component and ConfigProvider #52258
    • feat(Badge.Ribbon): support ConfigProvider #52303
    • feat(Segmented): support classNames and styles for component and ConfigProvider #52376
    • feat(Modal): support classNames and styles for component and ConfigProvider #52340
    • feat(Alert): support classNames and styles for component and ConfigProvider #52669
    • feat(Skeleton): support classNames and styles #52470 @coding-ice
    • feat(Notification): support classNames and styles for component and ConfigProvider #52759
    • feat(Tag): support classNames and styles for component and ConfigProvider #52764
    • feat(Affix): support classNames and styles for component and ConfigProvider #52745
    • feat(Checkbox): support classNames and styles for component and ConfigProvider #52781
    • feat(Radio): support classNames and styles for component and ConfigProvider #52780
    • feat(Message): support classNames and styles for component and ConfigProvider #52793
    • feat(Watermark): support classNames and styles for component and ConfigProvider #52811
    • feat(Spin): support classNames and styles for component and ConfigProvider #52823
    • feat(Switch): support classNames and styles for component and ConfigProvider #52849
    • feat(Breadcrumb): support classNames and styles for component and ConfigProvider #52859
    • feat(Anchor): support classNames and styles for component and ConfigProvider #52866
    • feat(Pagination): support classNames and styles for component and ConfigProvider #52893
    • feat(Tabs): support classNames and styles for component and ConfigProvider #52895
    • feat(Timeline): support classNames and styles for component and ConfigProvider #52976
    • feat(Mentions): support classNames and styles for component and ConfigProvider #52961
    • feat(Upload): support classNames and styles for component and ConfigProvider #52972
    • feat(Tour): support ConfigProvider #52250
    • feat(Button): support classNames and styles for component and ConfigProvider #53055
    • feat(Select): support classNames and styles for component and ConfigProvider #52948
    • feat(Image): support classNames and styles for component and ConfigProvider #53028
    • feat(Tree): support classNames and styles for component and ConfigProvider #53174
    • feat(AutoComplete): support classNames and styles for component and ConfigProvider #53150
    • feat(Splitter): support classNames and styles #53225 @wanpan11
    • feat(Form): support classNames and styles for component and ConfigProvider #53226
    • feat(Calendar): support classNames and styles for component and ConfigProvider #53159
    • feat(TreeSelect): support classNames and styles for component and ConfigProvider #53229
    • feat(ColorPicker): support classNames and styles for component and ConfigProvider #53303
    • feat(Transfer): support classNames and styles for component and ConfigProvider #53429 @zombieJ
    • feat(QRCode): support ConfigProvider #52172
    • feat(Progress): support classNames and styles for component and ConfigProvider #53535 @zombieJ
    • feat(TimePicker, DatePicker): support classNames and styles for components and ConfigProvider #53489
    • feat(Menu): support classNames and styles for component and ConfigProvider #53324
    • feat(Dropdown): support classNames and styles for component and ConfigProvider #53272
    • feat(Cascader): support classNames and styles for component and ConfigProvider #53694
    • feat(InputNumber): support classNames and styles for component and ConfigProvider #53698
    • feat(Steps): support classNames and styles for component and ConfigProvider #53789 @zombieJ
    • feat(Table): support classNames and styles for component and ConfigProvider #53659
    • feat(Divider): support classNames and styles for 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
  • 🔥 新增 Masonry 瀑布流组件。#52162 @OysterD3

  • ConfigProvider

  • Tooltip

    • 🔥 ConfigProvider 支持配置 tooltip.unique 让 Tooltip 支持平滑移动。#55154 @zombieJ
    • 优化 Tooltip 开发模式下性能(约 ~40%)以提升研发体验。#53844 @zombieJ
  • Input

    • 🔥 InputNumber 增加 mode="spinner" 拨轮模式。#55592 @guoyunhe
    • 🗑 Input.Search 重构废弃内部 addon* 的使用,用 Space.Compact 替换。#55705 @EmilyyyLiu
    • 🐞 修复 Input.TextArea 的 styles.textarea 无法覆盖内置样式的问题。#55579 @meet-student
  • 🆕 Pagination 快速跳转输入框现在限制只能输入数字。#55700 @afc163

  • Mentions

    • 🛠 重构 Mentions DOM 结构并支持 suffix 语义化结构以及 size 属性。#55638 @zombieJ
    • 🐞 修复 Mentions 的 autoResize=false 时,无法拖拽缩放尺寸的问题。#54039 @jin19980928
  • 🆕 Watermark 新增 onRemove 以支持被用户手工删除的事件触发。#55551 @984507092

  • 🆕 Breadcrumb 支持 ConfigProvider separator 全局配置。#54680 @guoyunhe

  • 🆕 Alert closable 支持 onClose 和 afterClose 方法。#54735 @EmilyyyLiu

  • 🆕 Radio.Group 支持 vertical 纵向排列语法糖。#54727 @EmilyyyLiu

  • Cascader

  • 🆕 Upload accept 配置支持自定义过滤逻辑。#55543 @zombieJ

  • Rate

  • 🆕 Select 支持键盘和鼠标交互时 onActive 回调。#53931 @Wxh16144

  • 🆕 Typography copyable 支持 HTTP 环境。#55073 @JeeekXY

  • Form

    • 🔥 Form useWatch 支持动态更改监听字段名称。#54260 @zombieJ
    • 🆕 Form 现在取值会排除 Form.List 中未被注册的字段值。#55526 @crazyair
    • 优化 Form 在大量字段卸载时 useWatch 的性能。#54212 @zombieJ
  • 🆕 Flex 增加 orientation 属性用于布局,原 vertical 语法糖仍然保留。#53648 @EmilyyyLiu

  • DatePicker

    • 🆕 DatePicker 语义化结构新增面板 container 支持。#55388 @meet-student
    • 🆕 DatePicker 新增 previewValue ,以控制鼠标悬停在选项时是否输入框展示预览值。#55258 @meet-student
    • 🐞 修复 DatePicker 在清空时,onChange 参数 dateString 返回值错误的问题。#55155 @EmilyyyLiu
  • Drawer

  • 🆕 ColorPicker presets 支持渐变色预设值。#53250 @zombieJ

  • Collapse

    • 🆕 Collapse expandIconPosition 替换为expandIconPlacement,并使用逻辑位置以优化 RTL 体验。#54311 @EmilyyyLiu
    • 🐞 修复 Collapse 语义化结构 icon 作用元素不正确的问题。#55499 @thinkasany
    • 🐞 修复 Collapse 动态修改语义化 icon 不生效的问题。#55452 @thinkasany
  • Table

    • 🆕 Table scrollTo 方法支持 offset 以设置滚动偏移量。#54385 @zombieJ
    • 🆕 Table pagination.position 替换为 pagination.placement#54338 @EmilyyyLiu
    • ⌨️ ⌨️ 优化 Table columnsortable 时的 aria-description 可访问性属性。#53087 @jon-cullison
    • 🆕 重构 Table column.fixedstartend 的逻辑位置以支持 RTL。#53114 @zombieJ
    • 🐞 修复 Table 在使用 stickyscroll.y 时出现重复的筛选下拉框和提示气泡显示的问题。修复 Table 渲染初始阶段列头不显示的问题。#54910 @afc163
    • 🐞 修复 Table 在动态修改 childrenColumnName 时,数据不会刷新的问题。#55559 @li-jia-nan
  • Progress

    • 🆕 Progress gapPosition 替换为 gapPlacement,并使用位置描述值 startend 取代 leftright#54329 @EmilyyyLiu
    • 🐞 修复 Progress 在变更 props 时,指示内容不会更新的问题。#55554 @thinkasany
  • 🛠 Grid 使用 CSS 逻辑位置以支持 RTL 体验。#52560 @li-jia-nan

  • Notification

    • 🛠 Notification 提供 closable 属性将 onClosecloseIcon 收敛至其中。#54645 @EmilyyyLiu
    • 🆕 Notification 支持自定义进度条颜色。#52964 @yellowryan
  • Image

    • 🆕 Image 的预览遮罩 cover 支持设置遮罩位置。#54492 @kiner-tang
    • 🛠 Image 移除默认的查看图标和文案(仍然可以通过 cover 配置)。#54379 @765477020
    • 🐞 修复 Image 在 RTL 下预览文案的展示问题。#53596 @aojunhao123
  • Modal

    • 🆕 Modal closable 支持 onClose 属性以任意方式关闭时触发。#54607 @EmilyyyLiu
    • 🆕 ConfigProvider 支持配置 Modal 的 okButtonPropscancelButtonProps#53684 @guoyunhe
    • 🛠 Modal 调整 DOM className 以与语义化结构规范保持一致。#54472 @thinkasany
    • ⌨️ 将 Modal 在 closable 对象中配置的 aria-* 属性应用到关闭按钮上。#53289 @EmilyyyLiu
    • 🐞 修复 Modal 快速切换 open 状态时,屏幕交互会被锁定的问题。#52753 @zombieJ
  • 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 新增 colorBorderDisabled token 以统一禁用状态下的边框颜色。#52421 @aojunhao123
  • Segmented

    • 🆕 Segmented 支持 items.tooltip 属性以配置提示信息。#54273 @EmilyyyLiu
    • 🆕 Segmented 增加 orientation 属性用于布局,原 vertical 语法糖仍然保留。#53664 @EmilyyyLiu
    • 🛠 改善 Segmented 组件可访问性。#52618 @aojunhao123
  • 🛠 重命名 Steps 的 labelPlacementtitlePlacement 以统一 API。#53873 @zombieJ

  • Space

  • 🆕 Spin 支持 styles.wrapper#53448 @crazyair

  • Splitter

  • Tour

  • Button

    • 🆕 Button iconPosition 替换为 iconPlacement 并支持逻辑位置描述。#54279 @EmilyyyLiu
    • 🛠 Button variantcolor 样式重构为 css variables 版本以降低尺寸。#54100 @zombieJ
    • 🆕 Button 新增自定义普通、虚线类型的按钮在禁用状态下的背景颜色。#52839 @yellowryan
  • Tag

  • Timeline

    • 🆕 Timeline 支持 titleSpan 以配置 title 占用尺寸。#54072 @zombieJ
    • 🆕 Timeline 支持 orientation=horizontal 布局。#54031 @zombieJ
  • 🆕 TimeLine items.position 替换为 items.placement 并使用逻辑位置以优化 RTL 体验。#54382 @EmilyyyLiu

  • 🆕 Transfer 新增 actions 属性可用于自定义操作按钮。#54104 @afc163

  • 🆕 Carousel dotPosition 替换为 dotPlacement,使用位置描述值 startend 取代 leftright#54294 @EmilyyyLiu

  • 🆕 Divider 使用 orientation 替换 type,并且支持 vertical 语法糖。#53645 @EmilyyyLiu

  • 🛠 AutoComplete 将搜索相关属性合并至 showSearch 属性。#54184 @EmilyyyLiu

  • 🆕 Menu 支持 popupRender 属性自定义弹出层。#53566 @Zyf665

  • 🆕 Message 支持 pauseOnHover 以配置用户在悬浮时暂停倒计时。#53785 @EmilyyyLiu

  • 💄 reset.css 移除对 IE 的兼容。#55108 @thinkasany

  • 🛠 Slider 支持 orientation 用于配置布局方向。#53671 @EmilyyyLiu

  • 💄 移除 InputNumber 移动端对于控制器默认隐藏。#54900 @Wxh16144

  • 💄 Image 遮罩添加模糊效果。#54714 @EmilyyyLiu

  • 💄 Modal 遮罩添加模糊效果。#54670 @EmilyyyLiu

  • 🐞 修复 Statistic.Timer 在页面进入非激活态时,onFinishonChange 未触发的问题。#53894 @Psiphonc

  • 🛠 废弃 List 组件并且从官网移除。#54182 @zombieJ

  • 🛠 BackTop 完成生命周期已被移除。#52206 @li-jia-nan

  • 🗑 Icon 占位组件完成生命周期已被移除。#52241 @li-jia-nan

  • 🛠 移除 Dropdown.Button请使用 Space.Compact。#53793 @Meet-student

  • 🛠 Badge 重构 offset 样式偏移为 CSS 逻辑位置。#55245 @li-jia-nan

  • 🛠 杂项:替换 classNames 库为 clsx0246702 #55164 @lijianan

  • 🛠 杂项:移除 MediaQueryList 针对旧版浏览器的兼容代码。#55396 @li-jia-nan

  • 🛠 杂项:移除 React 19 兼容代码,现在 antd 默认支持 React 19。#55274 @li-jia-nan

  • 🛠 杂项:移除 copy-to-clipboard 依赖。#54448 @765477020

  • 🔥 杂项:提升构建目标版本,不再支持 IE。#53390 @zombieJ

  • 🔥 杂项:在打包产物 antd.js 以及 antd.min.js 中启用了 React Compiler 以优化性能,对使用 CJS/ESM 场景的用户可自行选择开启,参考React 官方文档#55781 @li-jia-nan

  • 🔥 杂项:颜色相关组件现在支持预设颜色名(如 red, blue, green 等等)。#53241 @zombieJ

  • 🌐 添加马拉地语国际化翻译。#55179 @divyeshagrawal

  • TypeScript

    • 🤖 优化 Notification duration 定义,现在禁止关闭为 false#55580 @wanpan11

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.x1.x 的 Change Log。