Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix demolint
  • Loading branch information
ddcat1115 authored and benjycui committed Sep 20, 2016
1 parent 69cdf22 commit 3958eb4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
28 changes: 14 additions & 14 deletions components/form/demo/validate-customized.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,20 @@ let Demo = React.createClass({
<Row type="flex" align="middle">
<Col span={12}>
<FormItem label="Confirm">
{getFieldDecorator('rePass', {
rules: [{
required: true,
whitespace: true,
message: 'Please confirm your password',
}, {
validator: this.checkPass2,
}],
})(
<Input type="password"
onContextMenu={noop} onPaste={noop} onCopy={noop} onCut={noop}
autoComplete="off" id="rePass"
/>
)}
{getFieldDecorator('rePass', {
rules: [{
required: true,
whitespace: true,
message: 'Please confirm your password',
}, {
validator: this.checkPass2,
}],
})(
<Input type="password"
onContextMenu={noop} onPaste={noop} onCopy={noop} onCut={noop}
autoComplete="off" id="rePass"
/>
)}
</FormItem>
</Col>
<Col span={12}>
Expand Down
4 changes: 4 additions & 0 deletions components/input/style/search-input.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
width: 100%;
}

&.@{ant-prefix}-input-group .@{ant-prefix}-input:first-child {
padding-right: 36px;
}

.@{ant-prefix}-search-btn {
.btn-default;
border-radius: 0 @border-radius-base - 1 @border-radius-base - 1 0;
Expand Down
2 changes: 1 addition & 1 deletion components/tabs/demo/custom-add-trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Demo = React.createClass({
type="editable-card"
onEdit={this.onEdit}
>
{this.state.panes.map(pane => <TabPane tab={pane.title} key={pane.key}>{pane.content}</TabPane>)}
{this.state.panes.map(pane => <TabPane tab={pane.title} key={pane.key}>{pane.content}</TabPane>)}
</Tabs>
</div>
);
Expand Down

0 comments on commit 3958eb4

Please sign in to comment.