|
|
|
---
|
|
|
|
order: 6
|
|
|
|
title: 更新日志
|
|
|
|
toc: false
|
|
|
|
timeline: true
|
|
|
|
---
|
|
|
|
|
|
|
|
`antd` 严格遵循 [Semantic Versioning 2.0.0](http://semver.org/lang/zh-CN/) 语义化版本规范。
|
|
|
|
|
|
|
|
#### 发布周期
|
|
|
|
|
|
|
|
* patch 版本:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
|
|
|
|
* minor 版本:每月发布一个带有新特性的向下兼容的版本。
|
|
|
|
* 大版本号:含有破坏性更新和新特性,不在发布周期内。
|
|
|
|
|
|
|
|
如果需要查看 `2.0.0` 之前的更新日志,请移步 [GitHub](https://github.com/ant-design/ant-design/blob/1.x-stable/CHANGELOG.md)。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 2.7.2
|
|
|
|
|
|
|
|
`2017-02-17`
|
|
|
|
|
|
|
|
- 修复 `antd.version` 无法正常使用的问题。 [#4844](https://github.com/ant-design/ant-design/issues/4844)
|
|
|
|
- 修复 dist 文件没有 locales 的问题。 [#4910](https://github.com/ant-design/ant-design/pull/4910)
|
|
|
|
- 修复 Cascader 搜索模式下可以选择已禁用选项的问题。 [#4699](https://github.com/ant-design/ant-design/issues/4699)
|
|
|
|
- **Button**
|
|
|
|
- 修复 `Button[type=danger]` 的点击动画。
|
|
|
|
- 修复设置 `loading` 时的样式问题。 [#4875](https://github.com/ant-design/ant-design/issues/4875)
|
|
|
|
- **Menu**
|
|
|
|
- 修复 `vertical` 模式下 `openKeys` 为受控属性。 [#4876](https://github.com/ant-design/ant-design/issues/4876)
|
|
|
|
- 修复 Menu.Item 选中时的动画问题。
|
|
|
|
- 修复 Menu.SubMenu 的样式问题。 [#4906](https://github.com/ant-design/ant-design/issues/4906)
|
|
|
|
- **Table**
|
|
|
|
- 修复在混合使用固定表头和小尺寸时的样式问题。 [#4850](https://github.com/ant-design/ant-design/issues/4850)
|
|
|
|
- 修复无数据时的占位符样式问题。 [#4851](https://github.com/ant-design/ant-design/pull/4851)
|
|
|
|
- 精简了 DOM 结构。 [#4868](https://github.com/ant-design/ant-design/issues/4868)
|
|
|
|
- 修复 Radio 组件 children 无法为数字 `0` 的问题。 [#4874](https://github.com/ant-design/ant-design/issues/4874) [@HQidea](https://github.com/HQidea)
|
|
|
|
- 修复 RangePicker `style.width` 无法小于 300 的问题。 [#4920](https://github.com/ant-design/ant-design/issues/4920)
|
|
|
|
- 修复 Spin 样式在打包时会导致编译错误的问题。 [#4915](https://github.com/ant-design/ant-design/issues/4915)
|
|
|
|
- 修复 Chrome 下 Tooltip 无法在 disabled 的按钮上使用的问题。 [#4865](https://github.com/ant-design/ant-design/pull/4865)
|
|
|
|
- 修复 Tree 节点在拖动时会导致整棵树抖动的问题。 [#4858](https://github.com/ant-design/ant-design/issues/4858)
|
|
|
|
- 修复 Upload 上传失败的样式问题。 [#4810](https://github.com/ant-design/ant-design/issues/4810)
|
|
|
|
- 修复 `Menu[vertical]` 和 Layout.Sider 配合使用时二级菜单无法弹出的问题。 [#4890](https://github.com/ant-design/ant-design/issues/4890)
|
|
|
|
- 优化 Button、`Badge[status=processing]` 的动画。
|
|
|
|
|
|
|
|
![Badge animation](https://camo.githubusercontent.com/6874b2333f2fac3fac346404c6e70684e4dafc1a/68747470733a2f2f7a6f732e616c697061796f626a656374732e636f6d2f726d73706f7274616c2f73516b72756c716346734b4e54785158615971512e676966)
|
|
|
|
![Button animation](https://camo.githubusercontent.com/3963d12b45de4f522c2799361dbc3177e7bd93d1/68747470733a2f2f7a6f732e616c697061796f626a656374732e636f6d2f726d73706f7274616c2f46624b776d636f766d795364666c557468494e522e676966)
|
|
|
|
|
|
|
|
## 2.7.1
|
|
|
|
|
|
|
|
`2017-02-10`
|
|
|
|
|
|
|
|
- **Affix**
|
|
|
|
- 修复 hover 时元素被隐藏的问题。[#4800](https://github.com/ant-design/ant-design/issues/4800)
|
|
|
|
- 修复 event listener 未被正确移除的问题。[#4755](https://github.com/ant-design/ant-design/issues/4755)
|
|
|
|
- 修复快速滚动时不能正确复位的问题。[#4760](https://github.com/ant-design/ant-design/issues/4760)
|
|
|
|
- **Anchor** 修复了有 offsetTop 时的定位问题。[#4706](https://github.com/ant-design/ant-design/issues/4706)
|
|
|
|
- **AutoComplete**
|
|
|
|
- 修复了 size 问题。[#4766](https://github.com/ant-design/ant-design/issues/4766)
|
|
|
|
- 修复了自动加入其他字符的问题。[#4778](https://github.com/ant-design/ant-design/issues/4778)
|
|
|
|
- **Dropdown** 补充了之前缺失的弹出框位置设定相关的文档及示例。[#4811](https://github.com/ant-design/ant-design/issues/4811)
|
|
|
|
- **Layout** 修复了侧边布局动效不平滑的问题。[#4752](https://github.com/ant-design/ant-design/issues/4752)
|
|
|
|
- **LocaleProvider** 修复了瑞典语相关问题。[pull-4762](https://github.com/ant-design/ant-design/pull/4762) [@JesperWe](https://github.com/JesperWe)
|
|
|
|
- **RangePicker** 修复了图标与表单校验反馈图标重叠的问题。[#4783](https://github.com/ant-design/ant-design/issues/4783) [@zhenzong](https://github.com/zhenzong)
|
|
|
|
- **Table**
|
|
|
|
- 修复了 size 定义里没有 'middle' 的问题。[#4819](https://github.com/ant-design/ant-design/pull/4819) [@warrenseymour](https://github.com/warrenseymour)
|
|
|
|
- 修复过滤功能在 JSX 模式下不生效的问题。[#4759](https://github.com/ant-design/ant-design/issues/4759)
|
|
|
|
- 修复分页跳转问题。[#4779](https://github.com/ant-design/ant-design/issues/4779)
|
|
|
|
- **Tabs** 修复了在 IE9 中从第二个标签页起都显示空白的问题。[#4795](https://github.com/ant-design/ant-design/issues/4795)
|
|
|
|
- **rc-pagination** 升级至 ~1.7.0,onChange 增加 pageSize 参数。
|
|
|
|
- **全局性优化**
|
|
|
|
- 修复或优化了一些了文档,链接,样式细节。
|
|
|
|
- 接入 stylelint 以替代 lesslint,修复一些 lint 问题。[#2179](https://github.com/ant-design/ant-design/issues/2179)
|
|
|
|
- border-radius 统一为 4px。[#4772](https://github.com/ant-design/ant-design/issues/4772)
|
|
|
|
- 支持 `import { version } from 'antd'`。[#4751](https://github.com/ant-design/ant-design/pull/4751)
|
|
|
|
- **网站**
|
|
|
|
- 首页自动选择语言。[#4552](https://github.com/ant-design/ant-design/issues/4552)
|
|
|
|
- 接入 Google 作为文档的全文本搜索。[#4814](https://github.com/ant-design/ant-design/issues/4814)
|
|
|
|
- 改变版本切换 Select 的位置。[pull-4799](https://github.com/ant-design/ant-design/pull/4799)
|
|
|
|
|
|
|
|
## 2.7.0
|
|
|
|
|
|
|
|
`2017-02-03`
|
|
|
|
|
|
|
|
* Button 新增 `danger` 和 `ghost` 属性。[#4679](https://github.com/ant-design/ant-design/pull/4679)
|
|
|
|
* AutoComplete 支持自定义输入框的用法。 [#4483](https://github.com/ant-design/ant-design/pull/4483)
|
|
|
|
* 升级了 rc-cascader 到 0.11.0,支持键盘操作。[#4411](https://github.com/ant-design/ant-design/pull/4411)
|
|
|
|
* notification 支持更多弹出方向。[#4732](https://github.com/ant-design/ant-design/pull/4700)
|
|
|
|
* 升级了 rc-steps 到 2.3.0,Steps 新增 `progressDot` 属性,支持自定义点状步骤条的样式。[#4659](https://github.com/ant-design/ant-design/pull/4659)
|
|
|
|
* 升级了 rc-input-number 到 3.0.0
|
|
|
|
* 现在输入时也会触发 `onChange`。[#4265](https://github.com/ant-design/ant-design/pull/4265)
|
|
|
|
* 修复了 `onKeyUp` 事件。[#4717](https://github.com/ant-design/ant-design/issues/4717)
|
|
|
|
* Slider 增加 `veritical` 模式。[#4473](https://github.com/ant-design/ant-design/pull/4473)
|
|
|
|
* Tag
|
|
|
|
- 增加了预设颜色。[#4571](https://github.com/ant-design/ant-design/pull/4571)
|
|
|
|
- 调整了垂直对齐和默认间距。
|
|
|
|
* 添加了对德语的支持。[#4686](https://github.com/ant-design/ant-design/pull/4686)
|
|
|
|
* 添加了对瑞典语的支持。[#4455](https://github.com/ant-design/ant-design/pull/4455)
|
|
|
|
* 添加了对法语的支持。[#4538](https://github.com/ant-design/ant-design/pull/4538)
|
|
|
|
* Transfer 添加了 `onSearchChange` 回调。 [#4464](https://github.com/ant-design/ant-design/pull/4464)
|
|
|
|
* Modal.confirm 添加了 maskClosable 配置项。[#4488](https://github.com/ant-design/ant-design/pull/4488), [#4488](https://github.com/ant-design/ant-design/pull/4490)
|
|
|
|
* Form 增加 `hideRequiredMark` 属性。[#4732](https://github.com/ant-design/ant-design/pull/4732)
|
|
|
|
* 改进了 Upload 的列表图片预览。 [#4516](https://github.com/ant-design/ant-design/pull/4516)
|
|
|
|
* 升级了 rc-select 到 6.7.1。
|
|
|
|
* 修复了 Select 的 `onChange` 回调重复触发的问题。[#156@rc-select](https://github.com/react-component/select/pull/156)
|
|
|
|
* 修复了 Select 显示初始化值的问题。[#152@rc-select](https://github.com/react-component/select/pull/152)
|
|
|
|
* 升级 rc-tree-select 到 `1.9.0`。
|
|
|
|
* 新增 `treeDefaultExpandedKeys` 属性。[#43@rc-tree-select](https://github.com/react-component/tree-select/pull/43)
|
|
|
|
* 修复了文字溢出换行问题。[#42@rc-tree-select](https://github.com/react-component/tree-select/pull/42)
|
|
|
|
* 新增 less 变量: `@border-style-base` `@border-width-base` `@btn-danger-color` `@btn-danger-bg` 等。
|
|
|
|
* 修复了 Badge 在页面放大时错位的问题。[#4747](https://github.com/ant-design/ant-design/issues/4747) [#4290](https://github.com/ant-design/ant-design/issues/4290)
|
|
|
|
* 修复一个固定表头的表格错位问题。[#4750](https://github.com/ant-design/ant-design/issues/4750)
|
|
|
|
* 修复一个 IE 下表格滚动时卡顿的问题。[#4522](https://github.com/ant-design/ant-design/issues/4522)
|
|
|
|
* 添加别名以修正图标命名风格:`addfile` => `file-add`,`addfolder` => `folder-open`,原有的命名依然有效。[#4758](https://github.com/ant-design/ant-design/issues/4758)
|
|
|
|
|
|
|
|
## 2.6.4
|
|
|
|
|
|
|
|
`2017-01-20`
|
|
|
|
|
|
|
|
* 优化 RangePicker 选择预设时间时的界面显示。[#4561](https://github.com/ant-design/ant-design/issues/4561)
|
|
|
|
* 修复 DatePicker 选择时间界面的滚动问题。[#4412](https://github.com/ant-design/ant-design/issues/4412)
|
|
|
|
* 修复 Menu 在 `vertical` 的受控模式下,子菜单不会弹出的问题。[#3783](https://github.com/ant-design/ant-design/issues/3783)
|
|
|
|
* 修复 Cascader 禁用时的值显示样式问题。[#4648](https://github.com/ant-design/ant-design/issues/4648)
|
|
|
|
* Table
|
|
|
|
* 优化固定表头的滚动条显示。[#4637](https://github.com/ant-design/ant-design/issues/4637)
|
|
|
|
* 修复在 Safari 下显示 loading 效果时表头会闪烁的问题。[#4622](https://github.com/ant-design/ant-design/issues/4622)
|
|
|
|
* 修复多处边框问题。[#4647](https://github.com/ant-design/ant-design/issues/4647)、[#4635](https://github.com/ant-design/ant-design/issues/4635)
|
|
|
|
* 修复 showHeader 的默认值不为 `false` 的问题。[#4658](https://github.com/ant-design/ant-design/issues/4658)
|
|
|
|
* 修复找不到 `TableColumnConfig` 的类型定义的问题。[#4660](https://github.com/ant-design/ant-design/issues/4660)
|
|
|
|
|
|
|