From 9368e2df87721caeee149fcf0e317033a81b234c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Fri, 4 May 2018 18:15:28 +0800 Subject: [PATCH] Bump 3.5.0 (#10297) --- CHANGELOG.en-US.md | 39 +++++++++++ CHANGELOG.zh-CN.md | 39 +++++++++++ .../__tests__/__snapshots__/demo.test.js.snap | 67 +++++++++---------- .../__tests__/__snapshots__/demo.test.js.snap | 11 +++ components/notification/demo/update.md | 39 +++++++++++ package.json | 6 +- 6 files changed, 163 insertions(+), 38 deletions(-) create mode 100644 components/notification/demo/update.md diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index b67b7f7d7b..a0d5b162f6 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,45 @@ timeline: true --- +## 3.5.0 + +`2018-05-04` + +- ๐ŸŒŸ Add `title` prop to `Badge` that shows when hovering it. [74d81c2](https://github.com/ant-design/ant-design/commit/74d81c2d078a3c84b3e44cbfbdd99b8f479ea71d) [@ludwigbacklund](https://github.com/ludwigbacklund) +- ๐ŸŒŸ Add `successPercent` as `Progress[format]` argument. [#10096](https://github.com/ant-design/ant-design/issues/10096) +- ๐ŸŒŸ Update `rc-notification` to 3.1.0 so that `Notification` support set `maxCount`. [#10161](https://github.com/ant-design/ant-design/pull/10161) [@jzhangs](https://github.com/jzhangs) +- ๐ŸŒŸ Update `rc-cascader` to 1.13.0 so that `Cascader` support set `filedNames`. [react-component/cascader#23](https://github.com/react-component/cascader/pull/23) [@405go](https://github.com/405go) +- ๐ŸŒŸ Add ability to update `Notification` props by key. [react-component/notification#40](https://github.com/react-component/notification/pull/40) [@yevhen-hryhorevskyi](https://github.com/yevhen-hryhorevskyi) +- ๐ŸŒŸ `List` support pagination by default. [#10135](https://github.com/ant-design/ant-design/pull/10135) +- Table + - ๐ŸŒŸ Column `sorter` function is passed `sortOrder` as param. [#10306](https://github.com/ant-design/ant-design/pull/10306) [@kumarashwin](https://github.com/kumarashwin) + - ๐Ÿž Fix merged header cell border. [#10359](https://github.com/ant-design/ant-design/issues/10359) + - ๐Ÿž Fix lost of user selection on data updates. [#10332](https://github.com/ant-design/ant-design/pull/10332) [@chrvadala](https://github.com/chrvadala) +- `Menu` upgrade `rc-menu` to `7.x` [#10305](https://github.com/ant-design/ant-design/pull/10305) + - ๐ŸŒŸ Better aria-* attributes support. [react-component/menu#137](https://github.com/react-component/menu/pull/137) + - ๐ŸŒŸ Improve Menu performance by avoiding unnecessary updates. [react-component/menu#133](https://github.com/react-component/menu/pull/133) + - ๐ŸŒŸ Support passing props through to MenuItem list item. [react-component/menu#135](https://github.com/react-component/menu/pull/135) + - ๐Ÿž Minor key shortcut bug fixes. [react-component/menu#132](https://github.com/react-component/menu/pull/132) +- Collapse + - ๐ŸŒŸ Support custom `Collapse` styles with less. [#9943](https://github.com/ant-design/ant-design/pull/9943) [@davidhatten](https://github.com/davidhatten) + - ๐ŸŒŸ Update `rc-collapse` to 1.9.0 to add `Collapse` keyboard support. [react-component/collapse#84](https://github.com/react-component/collapse/pull/84/) [@kossel](https://github.com/kossel) +- Select + - ๐Ÿž Fix type for `placeholder`. [#10282](https://github.com/ant-design/ant-design/pull/10282) [@thomasthiebaud](https://github.com/thomasthiebaud) + - ๐Ÿž Fix extra space taken up when arrow disabled. [#10296](https://github.com/ant-design/ant-design/pull/10296) + - ๐Ÿž Fix property `value` typescript type. [#10336](https://github.com/ant-design/ant-design/pull/10336) [@paranoidjk](https://github.com/paranoidjk) +- Input + - ๐Ÿž Fix `Input.Search` not disable enter button when disabled prop is true. [#10040](https://github.com/ant-design/ant-design/issues/10040) + - ๐Ÿž Fix `Input.Group` align issue in Form. [#10281](https://github.com/ant-design/ant-design/issues/10281) +- Form + - ๐Ÿž Fix typing for `Form.onValuesChange`. [#10231](https://github.com/ant-design/ant-design/pull/10231) [@whtsky](https://github.com/whtsky) + - ๐Ÿž Fix typescript interface `ComponentDecorator`. [#10324](https://github.com/ant-design/ant-design/pull/10324) [@paranoidjk](https://github.com/paranoidjk) +- ๐Ÿž Fix dashed `Divider`. [#10216](https://github.com/ant-design/ant-design/issues/10216) +- ๐Ÿž Fix `Spin` container interaction. [#10227](https://github.com/ant-design/ant-design/issues/10227) +- ๐Ÿž Fix `Notification` icon hover color. [#10272](https://github.com/ant-design/ant-design/issues/10272) +- ๐Ÿž Fix `Upload` property `lastModifiedDate` name. [#10315](https://github.com/ant-design/ant-design/pull/10315) [@danielg2002](https://github.com/danielg2002) +- ๐Ÿž Fix `Button` props type, use `React.HTMLProps`. [#10229](https://github.com/ant-design/ant-design/pull/10229) [@whtsky](https://github.com/whtsky) +- ๐Ÿž Fix less var naming convention. [#10275](https://github.com/ant-design/ant-design/issues/10275) + ## 3.4.5 `2018-05-03` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 5815437bce..f6a1ee1bb8 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,45 @@ timeline: true --- +## 3.5.0 + +`2018-05-04` + +- ๐ŸŒŸ ็ป„ไปถ `Badge` ๆ–ฐๅขž `title` ๅฑžๆ€งๆ”ฏๆŒ้ผ ๆ ‡ hover ็š„ๆ—ถๅ€™ๆ˜พ็คบใ€‚[74d81c2](https://github.com/ant-design/ant-design/commit/74d81c2d078a3c84b3e44cbfbdd99b8f479ea71d) [@ludwigbacklund](https://github.com/ludwigbacklund) +- ๐ŸŒŸ ๆทปๅŠ  `successPercent` ไธบ `Progress[format]` ็š„ๅ‚ๆ•ฐใ€‚[#10096](https://github.com/ant-design/ant-design/issues/10096) +- ๐ŸŒŸ ๆ›ดๆ–ฐ `rc-notification` ๅˆฐ 3.1.0 ๆฅๆ”ฏๆŒ็ป„ไปถ `Notification` ็š„ `maxCount` ๅฑžๆ€งใ€‚[#10161](https://github.com/ant-design/ant-design/pull/10161) [@jzhangs](https://github.com/jzhangs) +- ๐ŸŒŸ ๆ›ดๆ–ฐ `rc-cascader` ๅˆฐ 1.13.0 ๆฅๆ”ฏๆŒ็ป„ไปถ `Cascader` ็š„ `filedNames` ๅฑžๆ€งใ€‚[react-component/cascader#23](https://github.com/react-component/cascader/pull/23) [@405go](https://github.com/405go) +- ๐ŸŒŸ ็ป„ไปถ `Notification` ๆ”ฏๆŒ้€š่ฟ‡ key ๆ›ดๆ–ฐ้€š็Ÿฅๅฑžๆ€งใ€‚ [react-component/notification#40](https://github.com/react-component/notification/pull/40) [@yevhen-hryhorevskyi](https://github.com/yevhen-hryhorevskyi) +- ๐ŸŒŸ ็ป„ไปถ `List` ๆ”ฏๆŒๅ†…็ฝฎ็š„็ฟป้กตๅŠŸ่ƒฝใ€‚[#10135](https://github.com/ant-design/ant-design/pull/10135) +- Table + - ๐ŸŒŸ ๆ–ฐๅขž `sortOrder` ๅ‚ๆ•ฐไผ ้€’็ป™ๅˆ—้…็ฝฎไธญ็š„ `sorter` ๆ–นๆณ•ใ€‚[#10306](https://github.com/ant-design/ant-design/pull/10306) [@kumarashwin](https://github.com/kumarashwin) + - ๐Ÿž ไฟฎๅคๅคด้ƒจๅ•ๅ…ƒๆ ผ็š„่พนๆก†ๆ ทๅผ้—ฎ้ข˜ใ€‚[#10359](https://github.com/ant-design/ant-design/issues/10359) + - ๐Ÿž ไฟฎๅคๅฝ“ๆ•ฐๆฎๅ˜ๅŒ–ๆ—ถ็”จๆˆท้€‰ๆ‹ฉ้กนไธขๅคฑ็š„้—ฎ้ข˜ใ€‚[#10332](https://github.com/ant-design/ant-design/pull/10332) [@chrvadala](https://github.com/chrvadala) +- `Menu` ๅ‡็บง `rc-menu` ๅˆฐ `7.x` [#10305](https://github.com/ant-design/ant-design/pull/10305) + - ๐ŸŒŸ ๆ›ดๅฅฝ็š„ aria-* ๅฑžๆ€งๆ”ฏๆŒใ€‚[react-component/menu#137](https://github.com/react-component/menu/pull/137) + - ๐ŸŒŸ ไธ€ไบ›ๅ†…้ƒจไผ˜ๅŒ–ๆๅ‡็ป„ไปถๆ€ง่ƒฝใ€‚[react-component/menu#133](https://github.com/react-component/menu/pull/133) + - ๐ŸŒŸ ๆ”ฏๆŒๅฐ†ๅฑžๆ€งไผ ้€’ๅˆฐ่œๅ•้กนไธญใ€‚[react-component/menu#135](https://github.com/react-component/menu/pull/135) + - ๐Ÿž ไฟฎๅคไธ€ไบ›ๅฟซๆท้”ฎ็š„้—ฎ้ข˜ใ€‚[react-component/menu#132](https://github.com/react-component/menu/pull/132) +- Collapse + - ๐ŸŒŸ ๆ›ดๆ–ฐ `rc-collapse` ๅˆฐ 1.9.0 ไผ˜ๅŒ–้”ฎ็›˜ๆ”ฏๆŒใ€‚[react-component/collapse#84](https://github.com/react-component/collapse/pull/84/) [@kossel](https://github.com/kossel) + - ๐ŸŒŸ ๆ”ฏๆŒ้€š่ฟ‡ less ๅฎšไน‰็ป„ไปถ `Collapse` ็š„ๆ ทๅผใ€‚[#9943](https://github.com/ant-design/ant-design/pull/9943) [@davidhatten](https://github.com/davidhatten) +- Select + - ๐Ÿž ไฟฎๅค `placeholder` ็š„ ts ็ฑปๅž‹้—ฎ้ข˜ใ€‚[#10282](https://github.com/ant-design/ant-design/pull/10282) [@thomasthiebaud](https://github.com/thomasthiebaud) + - ๐Ÿž ไฟฎๅคไธๆ˜พ็คบ็ฎญๅคดๆ—ถๅคšไฝ™็š„็ฉบ็™ฝใ€‚[#10296](https://github.com/ant-design/ant-design/pull/10296) + - ๐Ÿž ไฟฎๅคๅฑžๆ€ง `value` ็š„ typescript ็ฑปๅž‹้”™่ฏฏใ€‚[#10336](https://github.com/ant-design/ant-design/pull/10336) [@paranoidjk](https://github.com/paranoidjk) +- Input + - ๐Ÿž ไฟฎๅค `Input.Search` ๅฝ“ disabled ไธบ true ๆ—ถๆŒ‰้’ฎๆฒกๆœ‰่ขซ็ฆ็”จ็š„้—ฎ้ข˜ใ€‚[#10040](https://github.com/ant-design/ant-design/issues/10040) + - ๐Ÿž ไฟฎๅค `Input.Group` ๅœจ่กจๅ•ไธญๅฏน้ฝ็š„้—ฎ้ข˜ใ€‚[#10281](https://github.com/ant-design/ant-design/issues/10281) +- Form + - ๐Ÿž ไฟฎๅค `Form.onValuesChange` ็š„ ts ็ฑปๅž‹้”™่ฏฏใ€‚[#10231](https://github.com/ant-design/ant-design/pull/10231) [@whtsky](https://github.com/whtsky) + - ๐Ÿž ไฟฎๅค `ComponentDecorator` typescript ๅฎšไน‰็š„้”™่ฏฏใ€‚[#10324](https://github.com/ant-design/ant-design/pull/10324) [@paranoidjk](https://github.com/paranoidjk) +- ๐Ÿž ไฟฎๅค `Divider` ไธบ dashed ๆ—ถ็š„ๆ ทๅผ้—ฎ้ข˜ใ€‚[#10216](https://github.com/ant-design/ant-design/issues/10216) +- ๐Ÿž ไฟฎๅค `Spin` ่ฆ†็›–ๅฑ‚็š„ๅฑ•็คบ้—ฎ้ข˜ใ€‚[#10227](https://github.com/ant-design/ant-design/issues/10227) +- ๐Ÿž ไฟฎๅค `Notification` ้ผ ๆ ‡ hover ๆ˜ฏๅ›พๆ ‡็š„้ขœ่‰ฒ้—ฎ้ข˜ใ€‚[#10272](https://github.com/ant-design/ant-design/issues/10272) +- ๐Ÿž ไฟฎๅค `Upload` ็ป„ไปถๅฑžๆ€ง `lastModifiedDate` ็š„ๆ‹ผๅ†™้”™่ฏฏใ€‚[#10315](https://github.com/ant-design/ant-design/pull/10315) [@danielg2002](https://github.com/danielg2002) +- ๐Ÿž ไฟฎๅค `Button` ็š„ๅฑžๆ€ง็ฑปๅž‹๏ผŒไฝฟ็”จ `React.HTMLProps`ใ€‚[#10229](https://github.com/ant-design/ant-design/pull/10229) [@whtsky](https://github.com/whtsky) +- ๐Ÿž ไฟฎๅค less ๅ‘ฝๅ็บฆๅฎšไธไธ€่‡ด็š„้—ฎ้ข˜ใ€‚ [#10275](https://github.com/ant-design/ant-design/issues/10275) + ## 3.4.5 `2018-05-03` diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index 47320f5374..d8d41508e7 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -3,15 +3,16 @@ exports[`renders ./components/collapse/demo/accordion.md correctly 1`] = `