diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 7898acd648..d5baa070e2 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -17,6 +17,41 @@ If you want to read change logs before `2.0.0`, please visit [GitHub](https://gi --- +## 2.7.1 + +`2017-02-10` + +- **Affix** + - Fix the problem of element been hidden when hover on. [#4800](https://github.com/ant-design/ant-design/issues/4800) + - Fix event listener can not be removed. [#4755](https://github.com/ant-design/ant-design/issues/4755) + - Fix can not be unfixed when scrolling fastly. [#4760](https://github.com/ant-design/ant-design/issues/4760) +- **Anchor** Fix the location problem when offsetTop has been set. [#4706](https://github.com/ant-design/ant-design/issues/4706) +- **AutoComplete** + - Fix the wrong size. [#4766](https://github.com/ant-design/ant-design/issues/4766) + - Fix adding error character automatically. [#4778](https://github.com/ant-design/ant-design/issues/4778) +- **Dropdown** Add the documentation and demo about positioning of Dropdown menus. [#4811](https://github.com/ant-design/ant-design/issues/4811) +- **Grid** Delete the useless class in non-flex mode. [#4784](https://github.com/ant-design/ant-design/pull/4784) [@chikara-chan](https://github.com/chikara-chan) +- **Icon** Unified naming style(original names remain valid while new names been added). [#4758](https://github.com/ant-design/ant-design/issues/4758) +- **Layout** Improve Sider's animation effect. [#4752](https://github.com/ant-design/ant-design/issues/4752) +- **LocaleProvider** Fix issues with the new Swedish locale provider. [pull-4762](https://github.com/ant-design/ant-design/pull/4762) [@JesperWe](https://github.com/JesperWe) +- **RangePicker** Fix the overlapping problem about the date icon. [#4783](https://github.com/ant-design/ant-design/issues/4783) [@zhenzong](https://github.com/zhenzong) +- **Table** + - Support `size='middle'` 。[#4819](https://github.com/ant-design/ant-design/pull/4819) [@warrenseymour](https://github.com/warrenseymour) + - Fix controlled filter does not work with JSX style. [#4759](https://github.com/ant-design/ant-design/issues/4759) + - Fix switch pagination problem. [#4779](https://github.com/ant-design/ant-design/issues/4779) + - Fix performance issues under IE11. [#4522](https://github.com/ant-design/ant-design/issues/4522) +- **Tabs** Fix content missing problem since the second tab pane. [#4795](https://github.com/ant-design/ant-design/issues/4795) +- **rc-pagination** Upgrade to ~1.7.0, support showLessItems, and add pageSize as onChange's second argument. +- **Global optimization** + - Make some bugfixes and optimizations about documentation、link and style. + - Use stylelint instead of lesslint, and fix some lint issues. [#2179](https://github.com/ant-design/ant-design/issues/2179) + - Unify border radius to 4px. [#4772](https://github.com/ant-design/ant-design/issues/4772) + - Support `import { version } from 'antd'` . [#4751](https://github.com/ant-design/ant-design/pull/4751) +- **Site** + - Add default locale looking-up in Home Page. [#4552](https://github.com/ant-design/ant-design/issues/4552) + - Can search with Google. [#4814](https://github.com/ant-design/ant-design/issues/4814) + - Change the position of version switch. [pull-4799](https://github.com/ant-design/ant-design/pull/4799) + ## 2.7.0 `2017-02-03` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 901ec6f86e..aa5c05ccad 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -17,6 +17,41 @@ timeline: true --- +## 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) +- **Grid** 去掉了非 flex 模式下栅格的无用 class。[#4784](https://github.com/ant-design/ant-design/pull/4784) [@chikara-chan](https://github.com/chikara-chan) +- **Icon** 统一了命名风格(添加了别名,原有命名依然有效)。[#4758](https://github.com/ant-design/ant-design/issues/4758) +- **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) + - 修复IE11下的性能问题。[#4522](https://github.com/ant-design/ant-design/issues/4522) +- **Tabs** 修复了在 IE9 中从第二个标签页起都显示空白的问题。[#4795](https://github.com/ant-design/ant-design/issues/4795) +- **rc-pagination** 升级至 ~1.7.0,支持 showLessItems,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` diff --git a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap index 347b6f5a91..0128665587 100644 --- a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap +++ b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap @@ -88,6 +88,54 @@ exports[`test renders ./components/dropdown/demo/overlay-visible.md correctly 1` `; +exports[`test renders ./components/dropdown/demo/placement.md correctly 1`] = ` +
+ + + +
+ + + +
+`; + exports[`test renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `