Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
william-yz committed Mar 23, 2017
1 parent 50e5cd3 commit 231a5c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion components/form/demo/validate-static.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ We provide properties like `validateStatus` `help` `hasFeedback` to customize yo
3. `help`: display validate message.

````jsx
import { Form, Input, DatePicker, Col } from 'antd';
import { Form, Input, DatePicker, Col, Icon } from 'antd';
const FormItem = Form.Item;

const formItemLayout = {
Expand Down Expand Up @@ -93,6 +93,19 @@ ReactDOM.render(
<Input placeholder="unavailable choice" id="error" />
</FormItem>

<FormItem
{...formItemLayout}
label="Fail"
hasFeedback
validateStatus="error"
help="Should be combination of numbers & alphabets"
>
<Input
prefix={<Icon type="user" style={{ fontSize: 13 }} />}
placeholder="input prefix icon with feed icon" id="error"
/>
</FormItem>

<FormItem
label="inline"
labelCol={{
Expand Down
1 change: 1 addition & 0 deletions components/form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ form {
font-size: @font-size-lg;
animation: zoomIn .3s @ease-out-back;
.iconfont-font("");
z-index: 2;
}
}

Expand Down

0 comments on commit 231a5c1

Please sign in to comment.