From 745b6d3be29f35e5afca512b3c9b7b7d429fe8d9 Mon Sep 17 00:00:00 2001 From: SimaQ Date: Mon, 20 Jul 2015 20:35:48 +0800 Subject: [PATCH] form demo update: change radio checkbox select to ant-radio ant-checkbox ant-select --- components/form/demo/disabled.md | 31 ++-- components/form/demo/form-controls.md | 132 ++++++++--------- components/form/demo/horizontal-form.md | 66 +++++---- components/form/demo/inline-form.md | 37 ++--- components/form/demo/input-size.md | 1 - components/form/demo/inputs.md | 2 +- components/form/demo/mix.md | 188 +++++++++--------------- style/components/form.less | 1 + 8 files changed, 198 insertions(+), 260 deletions(-) diff --git a/components/form/demo/disabled.md b/components/form/demo/disabled.md index fa300c3c57..58d34df96f 100644 --- a/components/form/demo/disabled.md +++ b/components/form/demo/disabled.md @@ -30,30 +30,21 @@ ````html
-
- -
- -
-
-
- -
- -
-
-
- + +
+

大眼萌 minion

+
+
+
+ +
+
-
- +
+
diff --git a/components/form/demo/form-controls.md b/components/form/demo/form-controls.md index e94b00f80c..999c40dfc4 100644 --- a/components/form/demo/form-controls.md +++ b/components/form/demo/form-controls.md @@ -8,92 +8,88 @@ --- -````html - -
- -
- +````jsx +var Select = antd.Select; +var Option = Select.Option; +var Checkbox = antd.Checkbox; +var Radio = antd.Radio; +var RadioGroup = antd.RadioGroup; + +function handleSelectChange(value) { + console.log('selected ' + value); +} + +React.render( + +
+ +
+
-
- -
- +
+ +
+
-
- -
- +
+ +
+
-
- -
-