Ant Design 6.5.0 发布:新增设计语言文件、优化包体积,多组件功能升级!

发布时间:2026/6/29 19:38:23
Ant Design 6.5.0 发布:新增设计语言文件、优化包体积,多组件功能升级! Ant Design 6.5.0 发布Ant Design 是阿里巴巴开源的一套企业级 UI 设计语言和 React 组件库。Ant Design 6.5.0 现已发布主要更新内容如下新增设计语言文件新增 antd DESIGN.md 设计语言文件并发布到 [ant.design/design.md](https://ant.design/design.md)帮助 AI 设计工具理解 Ant Design 的视觉语言、组件范式和主题 token。[#58011](https://github.com/ant-design/ant-design/pull/58011) [#58356](https://github.com/ant-design/ant-design/pull/58356) [#58489](https://github.com/ant-design/ant-design/pull/58489)优化包体积优化 antd 完整包体积相比 6.4.5size-limit 中 antd.min.js 从 437.05 KB 降至 432.44 KBantd-with-locales.min.js 从 514.19 KB 降至 506.84 KB。主要来自 rc-component/picker 精简 DatePicker 和 TimePicker 运行时代码以及 Icon/Upload 减少额外 TwoTone runtime 引入。[#58403](https://github.com/ant-design/ant-design/pull/58403) [#58497](https://github.com/ant-design/ant-design/pull/58497)Icon 组件更新新增 Icon 内置图标Anthropic、Claude、Gemini、Mistral、DeepSeek、Qwen、Perplexity、HuggingFace、Ollama、Replicate、ElevenLabs、Telegram、Mastodon、Threads 和 Snapchat。[#58524](https://github.com/ant-design/ant-design/pull/58524)优化 Icon 和 Upload 默认图标引入升级 ant-design/icons 到 6.3.1并将 Upload 图片列表默认占位图标改为 Outlined 图标减少完整包额外 TwoTone runtime 引入。[#58497](https://github.com/ant-design/ant-design/pull/58497) [afc163](https://github.com/afc163)修复 Icon 在开启 theme.zeroRuntime 后样式不生效的问题。[#58517](https://github.com/ant-design/ant-design/pull/58517) [afc163](https://github.com/afc163)Input 组件更新新增 Input.Password visibilityToggle.tabIndex 配置支持自定义密码显隐切换按钮的 Tab 顺序。[#58458](https://github.com/ant-design/ant-design/pull/58458) [QDyanbing](https://github.com/QDyanbing)修复 Input.Search 未应用 ConfigProvider 根节点 style 配置的问题。[#58467](https://github.com/ant-design/ant-design/pull/58467) [QDyanbing](https://github.com/QDyanbing)修复 Input.Search 丢失 enterButton.className 的问题。[#58506](https://github.com/ant-design/ant-design/pull/58506) [QDyanbing](https://github.com/QDyanbing)修复 Input.Search 按钮高度未与 Input token 高度对齐的问题。[#58525](https://github.com/ant-design/ant-design/pull/58525) [afc163](https://github.com/afc163)为 borderless Input 组件补充聚焦轮廓样式。[#58250](https://github.com/ant-design/ant-design/pull/58250) [QDyanbing](https://github.com/QDyanbing)Select 组件更新新增 Select 函数式 tokenSeparators 支持。[#57966](https://github.com/ant-design/ant-design/pull/57966) [ZQDesigned](https://github.com/ZQDesigned)修复 Select 及相关弹层组件传入数字类型弹层宽度时渲染不正确的问题。[#58511](https://github.com/ant-design/ant-design/pull/58511) [QDyanbing](https://github.com/QDyanbing)修复 Select 会创建禁用标签的问题。[#58518](https://github.com/ant-design/ant-design/pull/58518) [afc163](https://github.com/afc163)修复 Select 单选模式在打开时 labelRender 内容变暗的问题。[#58288](https://github.com/ant-design/ant-design/pull/58288) [kfylaktopoulos](https://github.com/kfylaktopoulos)Table 组件更新修复 Table 列设置 responsive 后在当前断点隐藏时 defaultSortOrder 与受控 sortOrder 不生效的问题。[#58008](https://github.com/ant-design/ant-design/pull/58008) [yogeshwaran-c](https://github.com/yogeshwaran-c)修复 Table bordered 模式下最后一个右固定列出现额外竖线的问题。[#58516](https://github.com/ant-design/ant-design/pull/58516) [uttam12331](https://github.com/uttam12331)优化 Table 行选择复选框的可访问性支持从 getCheckboxProps 传入 aria-* 属性。[#58275](https://github.com/ant-design/ant-design/pull/58275) [EmilyyyLiu](https://github.com/EmilyyyLiu)修复 Table bordered 模式下 sticky 表头顶部边框丢失的问题。[#58451](https://github.com/ant-design/ant-design/pull/58451) [BangDori](https://github.com/BangDori)BorderBeam 组件更新新增 BorderBeam duration 属性用于控制流光运行一圈的时间。[#58233](https://github.com/ant-design/ant-design/pull/58233) [QDyanbing](https://github.com/QDyanbing)新增 BorderBeam lineWidth 属性用于控制流光宽度。[#58324](https://github.com/ant-design/ant-design/pull/58324) [QDyanbing](https://github.com/QDyanbing)新增 BorderBeam size 属性用于控制流光大小。[#58303](https://github.com/ant-design/ant-design/pull/58303) [QDyanbing](https://github.com/QDyanbing)Badge 组件更新新增 Badge title 属性支持移除原生 tooltip。[#58209](https://github.com/ant-design/ant-design/pull/58209) [QDyanbing](https://github.com/QDyanbing)优化 Badge 在暗色模式下 processing 状态的展示效果。[#58414](https://github.com/ant-design/ant-design/pull/58414) [clxstart](https://github.com/clxstart)Layout 组件更新新增 Layout.Sider 语义化 classNames 和 styles 支持。[#57938](https://github.com/ant-design/ant-design/pull/57938) [landeqiming666](https://github.com/landeqiming666)修复 Layout.Header、Layout.Footer 和 Layout.Content 独立使用且开启 theme.cssVar 时默认背景色丢失的问题。[#58046](https://github.com/ant-design/ant-design/pull/58046) [yogeshwaran-c](https://github.com/yogeshwaran-c)Pagination 组件更新修复 Pagination 在部分场景下文字换行和溢出的问题。[#58151](https://github.com/ant-design/ant-design/pull/58151) [selicens](https://github.com/selicens)修复 Pagination 快速跳转布局不稳定的问题。[#58282](https://github.com/ant-design/ant-design/pull/58282) [QDyanbing](https://github.com/QDyanbing)Upload 组件更新修复 Upload 上传失败文件不展示文件图标的问题。[#58484](https://github.com/ant-design/ant-design/pull/58484) [biubiukam](https://github.com/biubiukam)改进 Upload 在无 URL 文件预览场景下文件名的无障碍体验。[#58092](https://github.com/ant-design/ant-design/pull/58092) [ug-one](https://github.com/ug-one)Alert 组件更新修复 Alert 带有描述内容时图标垂直对齐异常的问题。[#57915](https://github.com/ant-design/ant-design/pull/57915) [MMMIXER](https://github.com/MMMIXER)修复 Alert 仅包含标题时图标和关闭按钮未与标题首行对齐的问题。[#57878](https://github.com/ant-design/ant-design/pull/57878) [QDyanbing](https://github.com/QDyanbing)其他更新优化 ant.design 网站的 AI 智能体支持提升 [isitagentready.com/ant.design](https://isitagentready.com/ant.design) 检测结果。[#58510](https://github.com/ant-design/ant-design/pull/58510) [#58490](https://github.com/ant-design/ant-design/pull/58490) [#57725](https://github.com/ant-design/ant-design/pull/57725) [afc163](https://github.com/afc163) [ug-one](https://github.com/ug-one)更新 Ant Design CLI 文档补充 antd setup、Node.js 20.0.0 要求、MCP 版本自动检测和环境变量说明并同步 For Agents 与 MCP Server 中英文文档。[#58460](https://github.com/ant-design/ant-design/pull/58460) [afc163](https://github.com/afc163)修复 antd 各组件根节点语义化 style 优先级确保组件 style 覆盖全局 styles.root 与 style 配置。[#58474](https://github.com/ant-design/ant-design/pull/58474) [QDyanbing](https://github.com/QDyanbing)优化 Component Token 紧凑主题下小尺寸控件高度避免文字行框过于拥挤。[#58411](https://github.com/ant-design/ant-design/pull/58411) [nightt5879](https://github.com/nightt5879)修复 Anchor 在特殊构造的 hash 值下解析性能异常的问题。[#58472](https://github.com/ant-design/ant-design/pull/58472) [afc163](https://github.com/afc163)新增 Collapse headerPaddingSM、headerPaddingLG、contentPaddingSM 和 contentPaddingLG token支持分别配置小号和大号尺寸的头部与内容区域内边距。[#58436](https://github.com/ant-design/ant-design/pull/58436) [biubiukam](https://github.com/biubiukam)新增 ConfigProvider form labelWrap 全局配置支持。[#58035](https://github.com/ant-design/ant-design/pull/58035) [EmilyyyLiu](https://github.com/EmilyyyLiu)修复 Descriptions 在 bordered 模式下 labelStyle、contentStyle 以及语义化 styles.label、styles.content 未应用到对应单元格的问题。[#58241](https://github.com/ant-design/ant-design/pull/58241) [gaurav0107](https://github.com/gaurav0107)新增 DatePicker 和 TimePicker onClear 回调支持。[#58403](https://github.com/ant-design/ant-design/pull/58403) [QDyanbing](https://github.com/QDyanbing)新增 Dropdown left 和 right 弹出位置支持。[#58437](https://github.com/ant-design/ant-design/pull/58437) [linyana](https://github.com/linyana)修复 FloatButton.Group 禁用状态下仍会打开 hover 菜单的问题。[#58513](https://github.com/ant-design/ant-design/pull/58513) [QDyanbing](https://github.com/QDyanbing)修复 Form 垂直布局未应用 labelHeight token 的问题。[#58433](https://github.com/ant-design/ant-design/pull/58433) [BangDori](https://github.com/BangDori)新增 Menu onSelect、onClick 和 onDeselect 回调参数中的 itemData 信息。[#58197](https://github.com/ant-design/ant-design/pull/58197) [EmilyyyLiu](https://github.com/EmilyyyLiu)新增 Modal scrollLock 属性用于控制弹窗打开时是否锁定 body 滚动。[#58256](https://github.com/ant-design/ant-design/pull/58256) [EmilyyyLiu](https://github.com/EmilyyyLiu)修复 Popconfirm 异步确认时按钮不对齐的问题并恢复 Button 图标按钮与 Modal footer 的默认布局表现。[#58429](https://github.com/ant-design/ant-design/pull/58429) [ffgenius](https://github.com/ffgenius)修复 Result 在 extra 为数字 0 时不渲染的问题。[#58504](https://github.com/ant-design/ant-design/pull/58504) [QDyanbing](https://github.com/QDyanbing)新增 Slider Range 模式下 disabled 数组支持可单独禁用特定 handle。[#57982](https://github.com/ant-design/ant-design/pull/57982) [#58528](https://github.com/ant-design/ant-design/pull/58528) [EmilyyyLiu](https://github.com/EmilyyyLiu) [afc163](https://github.com/afc163)新增 Steps maxCount 折叠模式用于展示密集步骤项。[#57987](https://github.com/ant-design/ant-design/pull/57987) [ZQDesigned](https://github.com/ZQDesigned)修复 Steps 横向连接线在 Chrome 中显示模糊的问题。[#58149](https://github.com/ant-design/ant-design/pull/58149) [olagokemills](https://github.com/olagokemills)新增 Tabs body 和 content 语义化 DOM 支持。[#58521](https://github.com/ant-design/ant-design/pull/58521) [zombieJ](https://github.com/zombieJ)新增 Watermark content 逐行字体样式支持。[#57886](https://github.com/ant-design/ant-design/pull/57886)更新说明