From f5e92db99917bf9d5a52fa82538ea942d54cb11f Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 27 Jun 2016 19:34:35 +0800 Subject: [PATCH 1/4] Update ISSUE_TEMPLATE.md --- .github/ISSUE_TEMPLATE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index d6ea86d75c..e89747d8d6 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -2,7 +2,7 @@ -## 本地环境 +### 本地环境 @@ -10,11 +10,11 @@ - 操作系统及其版本: - 浏览器及其版本: -## 你做了什么? +### 你做了什么? -## 你期待的结果是: +### 你期待的结果是: @@ -22,6 +22,6 @@ -## 可重现的在线演示 +### 可重现的在线演示 From 706ae5a5b89381b68aa5cfadc6251ca647f42ae8 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 28 Jun 2016 16:16:27 +0800 Subject: [PATCH 2/4] Fix tag animation --- components/alert/index.jsx | 2 +- components/tag/index.jsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/alert/index.jsx b/components/alert/index.jsx index c87fbc31e7..5035e8f7d3 100644 --- a/components/alert/index.jsx +++ b/components/alert/index.jsx @@ -29,7 +29,7 @@ export default class Alert extends React.Component { this.setState({ closing: false, }); - this.props.onClose.call(this, e); + this.props.onClose(e); } animationEnd = () => { this.setState({ diff --git a/components/tag/index.jsx b/components/tag/index.jsx index 229b821c49..7f54f403f1 100644 --- a/components/tag/index.jsx +++ b/components/tag/index.jsx @@ -25,10 +25,9 @@ export default class Tag extends React.Component { this.props.onClose(e); if (e.defaultPrevented) return; const dom = ReactDOM.findDOMNode(this); - const domWidth = dom.getBoundingClientRect().width; - dom.style.width = `${domWidth}px`; + dom.style.width = `${dom.getBoundingClientRect().width}px`; // It's Magic Code, don't know why - dom.style.width = `${domWidth}px`; + dom.style.width = `${dom.getBoundingClientRect().width}px`; this.setState({ closing: true, }); From 78ec439675001614f626fb7edfdf4f8a0e135df4 Mon Sep 17 00:00:00 2001 From: Shawn Sit Date: Tue, 28 Jun 2016 17:18:20 +0800 Subject: [PATCH 3/4] bugfixs: should use className's value not 'className'. (#2202) --- components/dropdown/dropdown-button.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dropdown/dropdown-button.jsx b/components/dropdown/dropdown-button.jsx index e5b330d956..da0cd98e3f 100644 --- a/components/dropdown/dropdown-button.jsx +++ b/components/dropdown/dropdown-button.jsx @@ -23,7 +23,7 @@ export default class DropdownButton extends React.Component { const { type, overlay, trigger, align, children, className, onClick, ...restProps } = this.props; const cls = classNames({ 'ant-dropdown-button': true, - className: !!className, + [className]: !!className, }); return ( From 4a403995227e7ad254c0293ef02adc33bfb933e5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 28 Jun 2016 18:32:03 +0800 Subject: [PATCH 4/4] fix feedback position --- components/form/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index a075a67d9e..78b9907751 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -274,7 +274,7 @@ form { visibility: visible; font-family: "anticon" !important; .square(@input-height-lg); - line-height: @input-height-lg + 2; + line-height: @input-height-lg; text-align: center; font-size: 14px; animation: zoomIn .3s @ease-out-back;