-
+, document.getElementById('components-form-demo-input-size'));
````
diff --git a/components/form/demo/inputs.md b/components/form/demo/inputs.md
index 7162ca44c9..51c2542d18 100644
--- a/components/form/demo/inputs.md
+++ b/components/form/demo/inputs.md
@@ -6,34 +6,31 @@
````jsx
var Form = antd.Form;
-var Input = Form.Input;
-var FormItem = Form.Item;
-var InputGroup = Input.Group;
var Select = antd.Select;
var Option = Select.Option;
-React.render(
+ReactDOM.render(
+
-
-
-
+
+
-
-
-
+
+
-
-
+
+
-
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
, document.getElementById('components-form-demo-inputs'));
diff --git a/components/form/demo/mix.md b/components/form/demo/mix.md
index 90673f3100..4c2aacae32 100644
--- a/components/form/demo/mix.md
+++ b/components/form/demo/mix.md
@@ -8,9 +8,6 @@
````jsx
var Form = antd.Form;
-var Input = Form.Input;
-var FormItem = Form.Item;
-var InputGroup = Input.Group;
var Select = antd.Select;
var Option = Select.Option;
var InputNumber = antd.InputNumber;
@@ -20,112 +17,106 @@ var Menu = antd.Menu;
var Dropdown = antd.Dropdown;
var Slider = antd.Slider;
var Icon = antd.Icon;
+var Button = antd.Button;
-var menu =
;
+var Demo = React.createClass({
+ mixins: [Form.ValueMixin],
-function handleSelectChange(value) {
- console.log('selected ' + value);
-}
+ getInitialState() {
+ return {
+ formData: {
+ inputNumber: undefined,
+ static: "唧唧复唧唧木兰当户织呀",
+ switch: undefined,
+ slider: undefined,
+ select: undefined,
+ startDate: undefined,
+ endDate: undefined,
+ }
+ };
+ },
-function onInputNumberChange(v){
- console.log('changed',v);
-}
+ handleSubmit(e) {
+ e.preventDefault();
+ console.log(this.state.formData);
+ },
-React.render(
-
+
+ 台机器
+
-
- 唧唧复唧唧木兰当户织呀
-
- 链接文字
-
-
+
+
+
+ 链接文字
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ );
+ }
+});
-
-
-
-
-
-
-
-
-
-
-
-, document.getElementById('components-form-demo-mix'));
+ReactDOM.render(
, document.getElementById('components-form-demo-mix'));
````
diff --git a/components/form/demo/validate.md b/components/form/demo/validate.md
index 6f678b4f9b..43f423f0c4 100644
--- a/components/form/demo/validate.md
+++ b/components/form/demo/validate.md
@@ -2,79 +2,94 @@
- order: 4
-我们为表单控件的校验状态定义了样式,共有三种校验状态类:
+我们为表单控件定义了三种校验状态,为 `
` 定义 `validateStatus` 属性即可。
-`.has-success` `.has-error` `.has-warning`, 分别代表校验成功、校验失败、有警告。
+validateStatus: ['success', 'warning', 'error', 'validating']。
-将以上三种校验状态类添加到这些控件的父级元素即可。
+另外为输入框添加反馈图标,设置 `` 的 `hasFeedback` 属性值为 `true` 即可。
-另外为输入框添加反馈图标,可以更好地反馈当前的校验状态,使用 `.has-feedback` 类包裹 input 输入框即可,在这里校验状态类就要和 `.has-feedback` 类同级。
-
-**注意**: 反馈图标只能使用在文本输入框 `` 元素上。
+**注意**: 反馈图标只对 `` 有效。
---
````jsx
var Form = antd.Form;
-var Input = Form.Input;
-var FormItem = Form.Item;
-var InputGroup = Input.Group;
+var Datepicker = antd.Datepicker;
-React.render(
+ReactDOM.render(
+
-
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
-
+
+
+
+
-
-
+
+
-
-
-
+ validateStatus="error">
+
+
+
+
+
+
+
+
+
, document.getElementById('components-form-demo-validate'));
````