diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 2840ca4e14..531275511a 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -15,7 +15,7 @@ ## 可重现的在线演示 -(请修复并 Fork http://codepen.io/anon/pen/wGOWGW?editors=001) +(请修改并 Fork http://codepen.io/anon/pen/wGOWGW?editors=001) ## 本地环境信息 diff --git a/CHANGELOG.md b/CHANGELOG.md index a5be270546..5946f3201a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ timeline: true --- +## 1.6.2 + +`2016-06-27` + +- 修复 Table、Transfer 的样式错位问题。 +- 修复 DatePicker 的一个样式问题。[#2182](https://github.com/ant-design/ant-design/issues/2182) +- 优化 Menu 的 hover 样式响应性能。 + ## 1.6.1 `2016-06-24` diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 532ec5b6d6..b15c615417 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -161,9 +161,10 @@ .@{checkbox-prefix-cls}-wrapper { cursor: pointer; font-size: @font-size-base; - margin-bottom: 8px; - margin-right: 8px; display: inline-block; + & + & { + margin-left: 8px; + } } .@{checkbox-prefix-cls}-wrapper + span, diff --git a/components/form/style/index.less b/components/form/style/index.less index 351b69433a..a075a67d9e 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -161,6 +161,11 @@ form { display: block; } + .ant-checkbox-vertical + .ant-checkbox-vertical, + .ant-radio-vertical + .ant-radio-vertical { + margin-left: 0; + } + .ant-input-number { margin-top: -1px; margin-right: 8px; diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less index fe1f49bd65..24bb74bf9c 100644 --- a/components/modal/style/modal.less +++ b/components/modal/style/modal.less @@ -102,7 +102,7 @@ &.zoom-enter, &.zoom-appear { - animation-duration: .2s; + animation-duration: .3s; transform: none; // reset scale avoid mousePosition bug opacity: 0; } diff --git a/components/radio/radio.tsx b/components/radio/radio.tsx index 5722f39f93..625dbfa07f 100644 --- a/components/radio/radio.tsx +++ b/components/radio/radio.tsx @@ -12,15 +12,20 @@ export default class Radio extends React.Component { } render() { const { prefixCls, children, checked, disabled, className, style } = this.props; + const wrapperClassString = classNames({ + [`${prefixCls}-wrapper`]: true, + [`${prefixCls}-wrapper-checked`]: checked, + [`${prefixCls}-wrapper-disabled`]: disabled, + [className]: !!className, + }); const classString = classNames({ [`${prefixCls}`]: true, [`${prefixCls}-checked`]: checked, [`${prefixCls}-disabled`]: disabled, - [className]: !!className, }); return ( -