From 5bcb23dd27e5cb4be467bd417a126e2d955dca65 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 10 May 2016 11:55:58 +0800 Subject: [PATCH] Fix feedback in form control, close #1619 --- components/cascader/style/index.less | 1 - components/form/demo/mix.md | 24 +++++++++++++++++++++++- components/form/style/index.less | 12 ++---------- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index f262c0295c..a3b5d7d7b5 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -6,7 +6,6 @@ .@{cascader-prefix-cls} { font-size: @font-size-base; &-input { - width: 172px; display: block; cursor: pointer; } diff --git a/components/form/demo/mix.md b/components/form/demo/mix.md index de7b1738ec..728a3d89ca 100644 --- a/components/form/demo/mix.md +++ b/components/form/demo/mix.md @@ -7,12 +7,25 @@ title: 表单组合 ````jsx import { Form, Select, InputNumber, DatePicker, TimePicker, Switch, Radio, - Slider, Button, Col, Upload, Icon } from 'antd'; + Cascader, Slider, Button, Col, Upload, Icon } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; +const areaData = [{ + value: 'shanghai', + label: '上海', + children: [{ + value: 'shanghaishi', + label: '上海市', + children: [{ + value: 'pudongxinqu', + label: '浦东新区', + }], + }], +}]; + let Demo = React.createClass({ handleSubmit(e) { e.preventDefault(); @@ -79,6 +92,15 @@ let Demo = React.createClass({ + + + +