Browse Source

Merge branch 'master' into antd-3.0

pull/7759/head
afc163 7 years ago
parent
commit
a3c7d6611c
  1. 2
      components/auto-complete/index.tsx
  2. 14
      components/auto-complete/style/index.less
  3. 2
      components/table/style/index.less

2
components/auto-complete/index.tsx

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

14
components/auto-complete/style/index.less

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

2
components/table/style/index.less

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

Loading…
Cancel
Save