Merge branch 'master' into antd-3.0

This commit is contained in:
afc163 2017-09-27 20:13:44 +08:00
commit a3c7d6611c
3 changed files with 8 additions and 10 deletions

View File

@ -52,7 +52,7 @@ export default class AutoComplete extends React.Component<AutoCompleteProps, any
const element = children && React.isValidElement(children) && children.type !== Option ?
React.Children.only(this.props.children) : <Input />;
return (
<InputElement {...element.props}>{element}</InputElement>
<InputElement>{element}</InputElement>
);
}

View File

@ -35,6 +35,12 @@
.@{input-prefix-cls} {
background: transparent;
border-width: @border-width-base;
line-height: @line-height-base;
&:focus,
&:hover {
.hover;
}
}
&-lg {
@ -54,13 +60,5 @@
.input-sm();
}
}
.@{input-prefix-cls} {
border-width: @border-width-base;
&:focus,
&:hover {
.hover;
}
}
}
}

View File

@ -461,7 +461,7 @@
}
&-item > label + span {
padding: 0;
padding-right: 0;
}
&-sub {