diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f1a5c06394..8f75ffc19f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,7 +6,7 @@ Please makes sure that these form are filled before submitting your pull request [[中文版模板 / Chinese template](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] -### This is a ... +### 🤔 This is a ... - [ ] New feature - [ ] Bug fix @@ -18,36 +18,29 @@ Please makes sure that these form are filled before submitting your pull request - [ ] Branch merge - [ ] Other (about what?) -### What's the background? +### 👻 What's the background? -> 1. Describe the source of requirement. -> 2. Resolve what problem. -> 3. Related issue link. +1. Describe the source of requirement, like related issue link. -### API Realization (Optional if not new feature) +2. Describe the problem and the scenario. -> 1. Basic thought of solution and other optional proposal. -> 2. List final API realization and usage sample. -> 3. GIF or snapshot should be provided if includes UI/interactive modification. +### 💡 Solution -### What's the effect? (Optional if not new feature) +1. How to fix the problem, and list final API implementation and usage sample if that is an new feature. -> 1. Does this PR affect user? Which part will be affected? -> 2. What will say in changelog? -> 3. Does this PR contains potential break change or other risk? +2. GIF or snapshot should be provided if includes UI/interactive modification. -### Changelog description (Optional if not new feature) +### 📝 Changelog description -> 1. English description -> 2. Chinese description (optional) +> Describe changes from user side, and list all potential break changes or other risks. -### Self Check before Merge +1. English description + +2. Chinese description (optional) + +### ☑️ Self Check before Merge - [ ] Doc is updated/provided or not needed - [ ] Demo is updated/provided or not needed - [ ] TypeScript definition is updated/provided or not needed - [ ] Changelog is provided or not needed - -### Additional Plan? (Optional if not new feature) - -> If this PR related with other PR or following info. You can type here. diff --git a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md index 1f22631551..806feaa92b 100644 --- a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md +++ b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md @@ -1,4 +1,4 @@ -首先,感谢你的贡献! 😄 +首先,感谢你的贡献!😄 新特性请提交至 feature 分支,其余可提交至 master 分支。 在一个维护者审核通过后合并。 @@ -6,7 +6,7 @@ [[English Template / 英文模板](?expand=1)] -### 这个变动的性质是 +### 🤔 这个变动的性质是? - [ ] 新特性提交 - [ ] 日常 bug 修复 @@ -18,35 +18,29 @@ - [ ] 分支合并 - [ ] 其他改动(是关于什么的改动?) -### 需求背景 +### 👻 需求背景 -> 1. 描述相关需求的来源。 -> 2. 要解决的问题。 -> 3. 相关的 issue 讨论链接。 +1. 描述相关需求的来源,如相关的 issue 讨论链接。 -### 实现方案和 API(非新功能可选) +2. 要解决的具体问题。 -> 1. 基本的解决思路和其他可选方案。 -> 2. 列出最终的 API 实现和用法。 -> 3. 涉及UI/交互变动需要有截图或 GIF。 +### 💡 解决方案和最终实现是? -### 对用户的影响和可能的风险(非新功能可选) +1. 列出最终的 API 实现和用法。 -> 1. 这个改动对用户端是否有影响?影响的方面有哪些? -> 2. 是否有可能隐含的 break change 和其他风险? +2. 涉及UI/交互变动需要有截图或 GIF。 -### Changelog 描述(非新功能可选) +### 📝 更新日志怎么写? -> 1. 英文描述 -> 2. 中文描述(可选) +> 从用户角度描述具体变化,以及可能的 breaking change 和其他风险? -### 请求合并前的自查清单 +1. 英文描述 + +2. 中文描述(可选) + +### ☑️ 请求合并前的自查清单 - [ ] 文档已补充或无须补充 - [ ] 代码演示已提供或无须提供 - [ ] TypeScript 定义已补充或无须补充 - [ ] Changelog 已提供或无须提供 - -### 后续计划(非新功能可选) - -> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。 diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 76d9038132..df617e762c 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -14,13 +14,23 @@ timeline: true * Major version release is not included in this schedule for breaking change and new features. --- + +## 3.14.1 + +`2019-03-04` + +- 🌟 PageHeader support `className` prop. [#15159](https://github.com/ant-design/ant-design/pull/15159) +- 🐞 Fix Form warning with unique key & additional attributes. [#15160](https://github.com/ant-design/ant-design/pull/15160) +- 🐞 Fix `getPopupContainer` of ConfigProvider not work with DatePicker. [#15156](https://github.com/ant-design/ant-design/pull/15156) +- 🐞 Fix Collapse `extra` node style missing. [#15176](https://github.com/ant-design/ant-design/pull/15176) + ## 3.14.0 `2019-03-02` - Two new components added this month: - - 🔥🔥🔥[Typography](https://github.com/ant-design/ant-design/pull/14250) provides basic formatting and common operations for text. - - 🔥🔥🔥[PageHeader](https://github.com/ant-design/ant-design/pull/13637) can be used to declare the page theme, display important information about the page that the user is interested in, and host the relevant page. Action item. + - 🔥🔥🔥[Typography](https://ant.design/components/typography/) provides basic formatting and common operations for text. + - 🔥🔥🔥[PageHeader](https://ant.design/components/page-header/) can be used to declare the page theme, display important information about the page that the user is interested in, and host the relevant page. Action item. - 🌟 TimePicker provides `clearIcon` prop for customizing clear icon. [#14556](https://github.com/ant-design/ant-design/pull/14556) - 🌟 Statistic.Countdown supports `onFinish` prop. [#14791](https://github.com/ant-design/ant-design/pull/14791) - 🌟 Collapse.Panel support `extra` prop. [62e65d](https://github.com/ant-design/ant-design/commit/62e65d955065b1862240f9f30d84de44349a0cf9) @@ -33,10 +43,15 @@ timeline: true - 🐞 Fix Spin `wrapperClassName` setting `padding` icon is not centered. [#15056](https://github.com/ant-design/ant-design/pull/15056) - 🐞 Fix Calendar won't trigger `onPanelChange` correctly in some cases. [#15063](https://github.com/ant-design/ant-design/pull/15063) - 🌟 Select supports `showArrow` in multi-select mode. [#15091](https://github.com/ant-design/ant-design/pull/15091) +- 🐞 Fix closable Drawer hiding without transition. [#15147](https://github.com/ant-design/ant-design/pull/15147) +- 🌟 Two less variables `@drawer-header-padding` and `@drawer-body-padding` have been added to control Drawer padding. [#15120](https://github.com/ant-design/ant-design/pull/15120) +- 🐞 Fix Cascader should tab twice to exist. [#15117](https://github.com/ant-design/ant-design/pull/15117) +- 🐞 The `onChange` of InputNumber will return `null` instead of `undefined` to fix the problem that the value of the control cannot be properly collected and emptied. [#14960](https://github.com/ant-design/ant-design/pull/14960) - 🌟 Adjusted multiple TypeScript types - 🐞 Fixed a problem with the `onPanelChange` TypeScript declaration missing. [#15043](https://github.com/ant-design/ant-design/pull/15043) - 🐞 Fix the TypeScript type problem for Table `Column Filter`. [#15056](https://github.com/ant-design/ant-design/pull/15056) - - 🌟 Support goto button in Pagination. [#14819](https://github.com/ant-design/ant-design/pull/14819) + - 🌟 Support goto button in Pagination. [#14819](https://github.com/ant-design/ant-design/pull/14819) + - 🐞 Fix the problem that Carousel response prop TypeScript declaration is missing. [#15071](https://github.com/ant-design/ant-design/pull/15071) ## 3.13.6 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 99e9548d12..c4425fca4f 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -14,16 +14,24 @@ timeline: true * 主版本号:含有破坏性更新和新特性,不在发布周期内。 --- +## 3.14.1 + +`2019-03-04` + +- 🌟 PageHeader 支持 `className` prop。 [#15159](https://github.com/ant-design/ant-design/pull/15159) +- 🐞 修复 Form 输出警告信息的问题。 [#15160](https://github.com/ant-design/ant-design/pull/15160) +- 🐞 修复 ConfigProvider 中 getPopupContainer 对于 DatePicker 无效的问题。[#15156](https://github.com/ant-design/ant-design/pull/15156) +- 🐞 修复 Collapse `extra` 位置错误的问题。[#15176](https://github.com/ant-design/ant-design/pull/15176) ## 3.14.0 `2019-03-02` - 本月新增了两个组件: - - 🔥🔥🔥 [Typography](https://github.com/ant-design/ant-design/pull/14250) 提供了文本的基本格式及常见操作。 - - 🔥🔥🔥 [PageHeader](https://github.com/ant-design/ant-design/pull/13637) 可用于声明页面主题、展示用户所关注的页面重要信息,以及承载与当前页相关的操作项。 + - 🔥🔥🔥 [Typography](https://ant.design/components/typography-cn/) 提供了文本的基本格式及常见操作。 + - 🔥🔥🔥 [PageHeader](https://ant.design/components/page-header-cn/) 可用于声明页面主题、展示用户所关注的页面重要信息,以及承载与当前页相关的操作项。 - 🌟 TimePicker 新增了 `clearIcon` prop,用于自定义清除图标。[#14556](https://github.com/ant-design/ant-design/pull/14556) -- 🌟Statistic.Countdown 支持 `onFinish` prop。[#14791](https://github.com/ant-design/ant-design/pull/14791) +- 🌟 Statistic.Countdown 支持 `onFinish` prop。[#14791](https://github.com/ant-design/ant-design/pull/14791) - 🌟 Collapse.Panel 新增了 `extra`。[62e65d](https://github.com/ant-design/ant-design/commit/62e65d955065b1862240f9f30d84de44349a0cf9) - DatePicker - 🐞 修复 `name` prop 无效的问题。[#15029](https://github.com/ant-design/ant-design/pull/15029) @@ -34,10 +42,15 @@ timeline: true - 🐞 修复 Spin `wrapperClassName` 设置 `padding` 图标不居中的问题。[#15056](https://github.com/ant-design/ant-design/pull/15056) - 🐞 修复 Calendar `onPanelChange` 在某些情况下不会触发的问题。[#15063](https://github.com/ant-design/ant-design/pull/15063) - 🌟 Select 在多选模式下支持 `showArrow`。[#15091](https://github.com/ant-design/ant-design/pull/15091) +- 🐞 修复关闭抽屉时浮层阴影没有缓动消失的细节。[#15147](https://github.com/ant-design/ant-design/pull/15147) +- 🌟 增加了两个 less 变量 `@drawer-header-padding` 和 `@drawer-body-padding` 以控制 Drawer 的 padding。[#15120](https://github.com/ant-design/ant-design/pull/15120) +- 🐞 修复 Cascader 需要按 Tab 两次切换聚焦的问题。[#15117](https://github.com/ant-design/ant-design/pull/15117) +- 🐞 InputNumber 的 `onChange` 将会返回 `null` 而不是 `undefined`,以修复组件的值无法正确收集和清空的问题。[#14960](https://github.com/ant-design/ant-design/pull/14960) - 🐞 调整了多处 TypeScript 的类型 - - 🐞 修复 `onPanelChange` TypeScript 声明缺失的问题。[#15043](https://github.com/ant-design/ant-design/pull/15043) + - 🐞 修复 `onPanelChange` TypeScript 声明缺失的问题。[#15043](https://github.com/ant-design/ant-design/pull/15043) - 🐞 订正了 Table `column filter` 的 TypeScript 类型问题。[#14777](https://github.com/ant-design/ant-design/issues/14777) - - 🌟 Pagination 支持添加分页跳转按钮。 [#14819](https://github.com/ant-design/ant-design/pull/14819) + - 🌟 Pagination 支持添加分页跳转按钮。[#14819](https://github.com/ant-design/ant-design/pull/14819) + - 🐞 修复 Carousel 的 responsive prop TypeScript 声明缺失的问题。[#15071](https://github.com/ant-design/ant-design/pull/15071) ## 3.13.6 diff --git a/README.md b/README.md index 9ba636ebfc..149972c10c 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ English | [简体中文](./README-zh_CN.md) ## 📦 Install ```bash -npm install antd --save +npm install antd ``` ```bash diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index 9edd8d5256..a73ef31b50 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -438,6 +438,185 @@ exports[`renders ./components/collapse/demo/custom.md correctly 1`] = ` `; +exports[`renders ./components/collapse/demo/extra.md correctly 1`] = ` +