Browse Source

fix search-input style of large size

pull/1437/head
afc163 9 years ago
parent
commit
cbfb910973
  1. 4
      components/form/demo/search-input.md
  2. 3
      style/components/form.less

4
components/form/demo/search-input.md

@ -16,7 +16,7 @@ const SearchInput = React.createClass({
getInitialState() {
return {
value: '',
focus: false
focus: false,
};
},
handleInputChange(e) {
@ -48,7 +48,7 @@ const SearchInput = React.createClass({
<Input {...this.props} value={this.state.value} onChange={this.handleInputChange}
onFocus={this.handleFocusBlur} onBlur={this.handleFocusBlur} />
<div className="ant-input-group-wrap">
<Button className={btnCls} onClick={this.handleSearch}>
<Button className={btnCls} size={this.props.size} onClick={this.handleSearch}>
<Icon type="search" />
</Button>
</div>

3
style/components/form.less

@ -204,7 +204,8 @@ form {
.ant-search-btn {
.btn-default;
border-radius: 0 @border-radius-base - 1 @border-radius-base - 1 0;
margin-left: -30px;
margin-left: -100%;
left: -1px;
position: relative;
border-width: 0 0 0 1px;
z-index: 2;

Loading…
Cancel
Save