mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
af53f393bf
12
CHANGELOG.md
12
CHANGELOG.md
@ -4,6 +4,18 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 0.12.15
|
||||||
|
|
||||||
|
- 升级 rc-collapse 修复一个性能问题。
|
||||||
|
- 修复一个 Collapse 内嵌 Tabs 的选中项样式问题。[#1451](https://github.com/ant-design/ant-design/issues/1451)
|
||||||
|
- 修复 Input 组件服务端渲染报错的问题。[#1321](https://github.com/ant-design/ant-design/issues/1321)
|
||||||
|
- 修复 Tag 组件调用了两次 afterClose 的问题。[#1435](https://github.com/ant-design/ant-design/issues/1435)
|
||||||
|
- 修复一个 Table 控制模式的问题。[#1434](https://github.com/ant-design/ant-design/issues/1434)
|
||||||
|
- 修复一个 Tabs 相互嵌套的样式问题。[#1435](https://github.com/ant-design/ant-design/issues/1435)
|
||||||
|
- 修复 Dropdown.Button 点击右边也触发 onClick 的问题。
|
||||||
|
- 修复 Radio.Button 在 IE8 下无法选择的问题。[#1459](https://github.com/ant-design/ant-design/issues/1459)
|
||||||
|
- 优化了 Button 点击后仍然有 focus 效果的问题。
|
||||||
|
|
||||||
## 0.12.14
|
## 0.12.14
|
||||||
|
|
||||||
`2016-04-13`
|
`2016-04-13`
|
||||||
|
@ -39,6 +39,13 @@ export default class Button extends React.Component {
|
|||||||
|
|
||||||
this.props.onClick(...args);
|
this.props.onClick(...args);
|
||||||
}
|
}
|
||||||
|
// Handle auto focus when click button in Chrome
|
||||||
|
handleMouseUp(e) {
|
||||||
|
findDOMNode(this).blur();
|
||||||
|
if (this.props.onMouseUp) {
|
||||||
|
this.props.onMouseUp(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
render() {
|
render() {
|
||||||
const props = this.props;
|
const props = this.props;
|
||||||
const { type, shape, size, className, htmlType, children, ...others } = props;
|
const { type, shape, size, className, htmlType, children, ...others } = props;
|
||||||
@ -65,6 +72,7 @@ export default class Button extends React.Component {
|
|||||||
<button {...others}
|
<button {...others}
|
||||||
type={htmlType || 'button'}
|
type={htmlType || 'button'}
|
||||||
className={classes}
|
className={classes}
|
||||||
|
onMouseUp={this.handleMouseUp.bind(this)}
|
||||||
onClick={this.handleClick.bind(this)}>
|
onClick={this.handleClick.bind(this)}>
|
||||||
{kids}
|
{kids}
|
||||||
</button>
|
</button>
|
||||||
|
@ -3,7 +3,7 @@ import assign from 'object-assign';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
function ieGT9() {
|
function ieGT9() {
|
||||||
if (typeof document === undefined) {
|
if (typeof document === 'undefined') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const documentMode = document.documentMode || 0;
|
const documentMode = document.documentMode || 0;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
| filterOption | 是否根据输入项进行筛选,可为一个函数,返回满足要求的 option 即可 | boolean or function(inputValue, option) | true |
|
| filterOption | 是否根据输入项进行筛选,可为一个函数,返回满足要求的 option 即可 | boolean or function(inputValue, option) | true |
|
||||||
| tags | 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配 | boolean |false |
|
| tags | 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配 | boolean |false |
|
||||||
| onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | 无 |
|
| onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | 无 |
|
||||||
| onDeselect | 取消选中时调用,参数为选中项的 option value 值,仅在 multiple 或 tags 模式下生效 | function(value, option) | 无 |
|
| onDeselect | 取消选中时调用,参数为选中项的 option value 值,仅在 multiple 或 tags 模式下生效 | function(value) | 无 |
|
||||||
| onChange | 选中option,或input的value变化(combobox 模式下)时,调用此函数 | function(value, label) | 无 |
|
| onChange | 选中option,或input的value变化(combobox 模式下)时,调用此函数 | function(value, label) | 无 |
|
||||||
| onSearch | 文本框值变化时回调 | function(value: String) | |
|
| onSearch | 文本框值变化时回调 | function(value: String) | |
|
||||||
| placeholder | 选择框默认文字 | string | 无 |
|
| placeholder | 选择框默认文字 | string | 无 |
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "antd",
|
"name": "antd",
|
||||||
"version": "0.12.14",
|
"version": "0.12.15",
|
||||||
"title": "Ant Design",
|
"title": "Ant Design",
|
||||||
"description": "一个 UI 设计语言",
|
"description": "一个 UI 设计语言",
|
||||||
"homepage": "http://ant.design/",
|
"homepage": "http://ant.design/",
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"array-tree-filter": "~1.0.0",
|
"array-tree-filter": "~1.0.0",
|
||||||
"classnames": "~2.2.0",
|
"classnames": "~2.2.0",
|
||||||
"css-animation": "~1.1.0",
|
"css-animation": "~1.2.3",
|
||||||
"gregorian-calendar": "~4.1.0",
|
"gregorian-calendar": "~4.1.0",
|
||||||
"gregorian-calendar-format": "~4.1.0",
|
"gregorian-calendar-format": "~4.1.0",
|
||||||
"object-assign": "~4.0.1",
|
"object-assign": "~4.0.1",
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"rc-calendar": "~5.4.0",
|
"rc-calendar": "~5.4.0",
|
||||||
"rc-cascader": "~0.9.0",
|
"rc-cascader": "~0.9.0",
|
||||||
"rc-checkbox": "~1.3.0",
|
"rc-checkbox": "~1.3.0",
|
||||||
"rc-collapse": "~1.4.4",
|
"rc-collapse": "~1.6.0",
|
||||||
"rc-dialog": "~5.4.0",
|
"rc-dialog": "~5.4.0",
|
||||||
"rc-dropdown": "~1.4.3",
|
"rc-dropdown": "~1.4.3",
|
||||||
"rc-form": "~0.14.0",
|
"rc-form": "~0.14.0",
|
||||||
|
@ -49,19 +49,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-content {
|
&-content {
|
||||||
display: none;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
transition: height .2s @ease-out;
|
||||||
|
|
||||||
& > &-box {
|
& > &-box {
|
||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-active {
|
&-inactive {
|
||||||
display: block;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,10 @@
|
|||||||
z-index: @zindex-dropdown;
|
z-index: @zindex-dropdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-submenu-vertical {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
&-submenu-vertical > & {
|
&-submenu-vertical > & {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
|
@ -123,7 +123,9 @@ span.@{radio-prefix-cls} + * {
|
|||||||
|
|
||||||
> span.@{radio-prefix-cls}-button {
|
> span.@{radio-prefix-cls}-button {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
display: none;
|
display: block;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{radio-group-prefix-cls}-large & {
|
.@{radio-group-prefix-cls}-large & {
|
||||||
|
Loading…
Reference in New Issue
Block a user