|
|
|
-- order: 6 title: 更新日志 toc: false timeline: true
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`antd` 严格遵循 [Semantic Versioning 2.0.0](http://semver.org/lang/zh-CN/) 语义化版本规范。
|
|
|
|
|
|
|
|
#### 发布周期
|
|
|
|
|
|
|
|
- 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
|
|
|
|
- 次版本号:每月发布一个带有新特性的向下兼容的版本。
|
|
|
|
- 主版本号:含有破坏性更新和新特性,不在发布周期内。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 5.0.1
|
|
|
|
|
|
|
|
`2022-11-22`
|
|
|
|
|
|
|
|
- 💄 优化 Empty 组件的 svg 图片在暗色主题下的颜色。[#38785](https://github.com/ant-design/ant-design/pull/38785)
|
|
|
|
- 💄 修复 Form, Input, Select, Tree 转换到 CSS-in-JS 丢失少量样式的问题。[#38742](https://github.com/ant-design/ant-design/pull/38742)
|
|
|
|
- 💄 修复 Firefox 下拉菜单动画抖动的问题。[#38729](https://github.com/ant-design/ant-design/pull/38729)
|
|
|
|
- Menu
|
|
|
|
- 🐞 修复 Menu SubMenu 间距问题。[#38714](https://github.com/ant-design/ant-design/pull/38714) [@JarvisArt](https://github.com/JarvisArt)
|
|
|
|
- 🐞 修复 Menu 收起时的宽度问题。[#38791](https://github.com/ant-design/ant-design/pull/38791) [@KarasuShin](https://github.com/KarasuShin)
|
|
|
|
- 🐞 修复 Menu 暗色主题下高度多了 1px 的问题。[#38741](https://github.com/ant-design/ant-design/pull/38741) [@LuciNyan](https://github.com/LuciNyan)
|
|
|
|
- 🐞 修复 Menu 展开 Submenu 时抖动的问题。[#38748](https://github.com/ant-design/ant-design/pull/38748) [@JarvisArt](https://github.com/JarvisArt)
|
|
|
|
- 🐞 修复 Table 组件展开 icon 不对齐的问题。[#38823](https://github.com/ant-design/ant-design/pull/38823) [@turdiyev](https://github.com/turdiyev)
|
|
|
|
- 🐞 修复 FloatButton.BackTop 组件动画丢失的问题。[#38770](https://github.com/ant-design/ant-design/pull/38770) [@li-jia-nan](https://github.com/li-jia-nan)
|
|
|
|
- 🛠 清除残留 `Moment.js` 依赖。[#38762](https://github.com/ant-design/ant-design/pull/38762)
|
|
|
|
- 🛠 修复外部暴露类 `CompoundedComponent` 的组建的类型报错。[#38666](https://github.com/ant-design/ant-design/pull/38666) [@wangcch](https://github.com/wangcch)
|
|
|
|
- 🛠 重新添加 `lib` 产物。[#38832](https://github.com/ant-design/ant-design/pull/38832) [@chunsch](https://github.com/chunsch)
|
|
|
|
|
|
|
|
## 5.0.0
|
|
|
|
|
|
|
|
`2022-11-18`
|
|
|
|
|
|
|
|
🏆 Ant Design 5.0.0 已发布!欢迎阅读我们的 [发布文档](https://www.yuque.com/ant-design/ant-design/cy5nfvdo8oidvwmz)。
|
|
|
|
|
|
|
|
#### 升级必读
|
|
|
|
|
|
|
|
🌟 如果你想升级到 Ant Design 5.0,请仔细查阅我们的[迁移文档](/docs/react/migration-v5-cn)。
|
|
|
|
|
|
|
|
#### 主要变化
|
|
|
|
|
|
|
|
- 🔥 新增组件
|
|
|
|
- 🔥 FloatButton 悬浮按钮,原 BackTop 移至 FloatButton 子组件。[#37520](https://github.com/ant-design/ant-design/pull/37520) [@li-jia-nan](https://github.com/li-jia-nan)
|
|
|
|
- 🔥 Tour 漫游式引导。[#37867](https://github.com/ant-design/ant-design/pull/37867) [#38469](https://github.com/ant-design/ant-design/pull/38469) [@heiyu4585](https://github.com/heiyu4585)
|
|
|
|
- 🔥 新增组件变体
|
|
|
|
- 🔥 DatePicker 新增 `presets` 属性用于预设时间范围快捷选择。[#38249](https://github.com/ant-design/ant-design/pull/38249)
|
|
|
|
- 🔥 Progress `circle` 类型支持小尺寸自适应。[#38231](https://github.com/ant-design/ant-design/pull/38231) [@li-jia-nan](https://github.com/li-jia-nan)
|
|
|
|
- 🔥 Steps 新增 `inline` 类型。[#38311](https://github.com/ant-design/ant-design/pull/38311) [@JarvisArt](https://github.com/JarvisArt)
|
|
|
|
- 💄 设计变化
|
|
|
|
- 💄 调整主色为 `#1677ff`。[#37254](https://github.com/ant-design/ant-design/pull/37254)
|
|
|
|
- 💄 基础圆角调整为 `6px`,并支持梯度圆角。[#37146](https://github.com/ant-design/ant-design/pull/37146) [#37369](https://github.com/ant-design/ant-design/pull/37369)
|
|
|
|
- 💄 优化组件整体动画速度,效果更简练。[#37438](https://github.com/ant-design/ant-design/pull/37438)
|
|
|
|
- 💄 对部分组件进行了去线框化和间距上的调整,整体风格更加简洁。[#37283](https://github.com/ant-design/ant-design/pull/37283)
|
|
|
|
- 💄 Pagination 组件去线框化。[#37441](https://github.com/ant-design/ant-design/pull/37441)
|
|
|
|
- 💄 优化 Timeline 组件 UI 设计。[#37465](https://github.com/ant-design/ant-design/pull/37465)
|
|
|
|
- 💄 优化 Steps 组件 UI 设计。[#37473](https://github.com/ant-design/ant-design/pull/37473)
|
|
|
|
- 💄 优化部分组件 focus 样式。[#37483](https://github.com/ant-design/ant-design/pull/37483)
|
|
|
|
- 💄 优化组件圆角较大时的部分样式。
|
|
|
|
- 💄 优化 Table 组件 hover 样式。[#37370](https://github.com/ant-design/ant-design/pull/37370)
|
|
|
|
- 💄 优化 Segmented 组件 hover 样式。[#37498](https://github.com/ant-design/ant-design/pull/37498)
|
|
|
|
- 💄 优化 Dropdown 组件 hover 样式。[#37491](https://github.com/ant-design/ant-design/pull/37491)
|
|
|
|
- 💄 优化 Modal 等组件关闭按钮样式。[#37634](https://github.com/ant-design/ant-design/pull/37634)
|
|
|
|
- 💄 优化 Menu 组件样式。[#38009](https://github.com/ant-design/ant-design/pull/38009)
|
|
|
|
- 💄 更多组件 hover 样式优化。[#37433](https://github.com/ant-design/ant-design/pull/37433)
|
|
|
|
- 💄 优化 Switch 组件动画效果。[#37658](https://github.com/ant-design/ant-design/pull/37658)
|
|
|
|
- 💄 优化 Anchor 组件样式 UI 设计。[#38616](https://github.com/ant-design/ant-design/pull/38616)
|
|
|
|
- 🆕 新增导出对象 `theme`,用于获取主题相关属性。[#36302](https://github.com/ant-design/ant-design/pull/36302)
|
|
|
|
- 🆕 新增 `theme.useToken` hook,用于获取当前上下文的主题变量。[#36267](https://github.com/ant-design/ant-design/pull/36267)
|
|
|
|
- 🆕 新增内置算法。
|
|
|
|
- 🆕 默认算法 `theme.defaultAlgorithm`。[#36175](https://github.com/ant-design/ant-design/pull/36175)
|
|
|
|
- 🆕 暗色算法 `theme.darkAlgorithm`。[#36546](https://github.com/ant-design/ant-design/pull/36546) [#36656](https://github.com/ant-design/ant-design/pull/36656)
|
|
|
|
- 🆕 紧凑算法 `theme.compactAlgorithm`。[#38105](https://github.com/ant-design/ant-design/pull/38105)
|
|
|
|
- 🆕 ConfigProvider 新增 `theme` 属性,用于更改主题配置,详情:[定制主题](https://ant.design/docs/react/customize-theme-v5-cn)。
|
|
|
|
- 🆕 支持多个 `algorithm`。[#37082](https://github.com/ant-design/ant-design/pull/37082)
|
|
|
|
- 🆕 支持线框化切换。[#37507](https://github.com/ant-design/ant-design/pull/37507)
|
|
|
|
- 🆕 支持覆盖单个组件的主题变量。[#37568](https://github.com/ant-design/ant-design/pull/37568)
|
|
|
|
- 🆕 产物新增 `locale` 目录,内含 cjs 格式的语言文件。[#38194](https://github.com/ant-design/ant-design/pull/38194) [@chunsch](https://github.com/chunsch)
|
|
|
|
- 🗑 移除对 IE 的支持。
|
|
|
|
- 🗑 移除 `lib` 产物。[#36362](https://github.com/ant-design/ant-design/pull/36362)
|
|
|
|
- 🛠 调整 `package.json` 中 `main` 为 `dist/antd.js`。[eb8835f](https://github.com/ant-design/ant-design/commit/eb8835fe29b39767c0f5e310f5c69619a75d5840)
|
|
|
|
- 🗑 移除 `dist/antd.css` 产物。默认不再入侵全局样式,新增 `dist/reset.css` 用于重置部分常见样式。[#36224](https://github.com/ant-design/ant-design/pull/36224)
|
|
|
|
- 🗑 废弃下列组件的 `visible` 属性,改用 `open`。[@yykoypj](https://github.com/yykoypj)
|
|
|
|
- 🗑 Tag 废弃 `visible` 属性。[#36671](https://github.com/ant-design/ant-design/pull/36671)
|
|
|
|
- 🗑 Table `filterDropdownVisible` 调整为 `filterDropdownOpen`。[#36747](https://github.com/ant-design/ant-design/pull/36747)
|
|
|
|
- 🗑 Drawer 废弃 `visible` 属性,改用 `open`。[#36750](https://github.com/ant-design/ant-design/pull/36750)
|
|
|
|
- 🗑 Modal 废弃 `visible` 属性,改用 `open`。[#36774](https://github.com/ant-design/ant-design/pull/36774)
|
|
|
|
- 🗑 Dropdown 废弃 `visible` 属性,改用 `open`。[#36799](https://github.com/ant-design/ant-design/pull/36799)
|
|
|
|
- 🗑 Tooltip & Popover & Popconfirm 废弃 `visible` 属性,改用 `open`。[#36807](https://github.com/ant-design/ant-design/pull/36807)
|
|
|
|
- 🗑 废弃下列组件的 `dropdownClassName`,统一为 `popupClassName`。[@heiyu4585](https://github.com/heiyu4585)
|
|
|
|
- 🗑 AutoComplete 废弃 `dropdownClassName`,改用 `popupClassName`。[#37087](https://github.com/ant-design/ant-design/pull/37087)
|
|
|
|
- 🗑 Mentions 废弃 `dropdownClassName`,改用 `popupClassName`。[#37122](https://github.com/ant-design/ant-design/pull/37122)
|
|
|
|
- 🗑 Cascader 废弃 `dropdownClassName`,改用 `popupClassName`。[#37089](https://github.com/ant-design/ant-design/pull/37089)
|
|
|
|
- 🗑 Select 废弃 `dropdownClassName`,改用 `popupClassName`。[#37091](https://github.com/ant-design/ant-design/pull/37091)
|
|
|
|
- 🗑 TreeSelect 废弃 `dropdownClassName`,改用 `popupClassName`。[#37092](https://github.com/ant-design/ant-design/pull/37092)
|
|
|
|
- 🗑 DatePicker 和 TimePicker 废弃 `dropdownClassName`,改用 `popupClassName`。[#37207](https://github.com/ant-design/ant-design/pull/37207)
|
|
|
|
- 🛠 所有组件使用 CSS-in-JS 重构样式。
|
|
|
|
- 🗑 移除 less 及相关 less 和 css 产物。[#36244](https://github.com/ant-design/ant-design/pull/36244)
|
|
|
|
- 🛠 内置时间库由 Moment.js 替换为 Day.js,详情:[使用自定义日期库](https://ant.design/docs/react/use-custom-date-library-cn)。[b22815d](https://github.com/ant-design/ant-design/commit/b22815d4d223b80755b472e14d7888beab8dd1da) [@iamkun](https://github.com/iamkun)
|
|
|
|
- 🛠 重构 Notification 以支持 React 18 concurrent 模式,并重构 useNotification hook,推荐替代静态方法使用。[#35423](https://github.com/ant-design/ant-design/pull/35423) [#35568](https://github.com/ant-design/ant-design/pull/35568)
|
|
|
|
- 🛠 Slider 组件 Tooltip 相关 API 合并至 `tooltip` 属性中。[#37043](https://github.com/ant-design/ant-design/pull/37043) [@yykoypj](https://github.com/yykoypj)
|
|
|
|
- 🛠 文档站技术栈迁移 [dumi@2](https://next.d.umijs.org/)。[#38328](https://github.com/ant-design/ant-design/pull/38328)
|
|
|
|
|
|
|
|
## 4.x
|
|
|
|
|
|
|
|
去 [GitHub](https://github.com/ant-design/ant-design/blob/4.x-stable/CHANGELOG.zh-CN.md) 查看 `4.x` 的 Change Log。
|
|
|
|
|
|
|
|
## 3.x
|
|
|
|
|
|
|
|
去 [GitHub](https://github.com/ant-design/ant-design/blob/3.x-stable/CHANGELOG.zh-CN.md) 查看 `3.x` 的 Change Log。
|
|
|
|
|
|
|
|
## 2.x
|
|
|
|
|
|
|
|
去 [GitHub](https://github.com/ant-design/ant-design/blob/2.x-stable/CHANGELOG.zh-CN.md) 查看 `2.x` 的 Change Log。
|
|
|
|
|
|
|
|
## 1.11.4
|
|
|
|
|
|
|
|
去 [GitHub](https://github.com/ant-design/ant-design/blob/1.x-stable/CHANGELOG.md) 查看 `0.x` 到 `1.x` 的 Change Log。
|