From 657c707a7906986e0ba443ae11fc04e27bc83e5c Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 5 Jan 2017 16:57:41 +0800 Subject: [PATCH] Hide useless prop Form[horizontal] --- components/form/demo/advanced-search.md | 3 +-- components/form/demo/dynamic-form-item.md | 2 +- components/form/demo/register.md | 2 +- components/form/demo/time-related-controls.md | 2 +- components/form/demo/validate-static.md | 2 +- components/form/demo/without-form-create.md | 2 +- components/form/index.en-US.md | 5 ++-- components/form/index.zh-CN.md | 5 ++-- components/form/style/index.less | 23 ------------------- 9 files changed, 10 insertions(+), 36 deletions(-) diff --git a/components/form/demo/advanced-search.md b/components/form/demo/advanced-search.md index b6aeb0e172..ff1250021f 100644 --- a/components/form/demo/advanced-search.md +++ b/components/form/demo/advanced-search.md @@ -68,7 +68,6 @@ class AdvancedSearchForm extends React.Component { const shownCount = expand ? children.length : 6; return (
@@ -111,7 +110,7 @@ ReactDOM.render( ```` diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 81ec3116ad..5719471347 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -12,7 +12,7 @@ title: Form 我们为 `form` 提供了以下两种排列方式: -- 水平排列:标签和表单控件水平排列; +- 水平排列:标签和表单控件水平排列;(默认) - 水质排列:标签和表单控件上下垂直排列; - 行内排列:表单项水平行内排列。 @@ -40,7 +40,6 @@ title: Form |-----------|------------------------------------------|------------|-------| | form | 经 `Form.create()` 包装过的组件会自带 `this.props.form` 属性,直接传给 Form 即可。1.7.0 之后无需设置 | object | 无 | | vertical | 垂直排列布局 | boolean | false | -| horizontal | 水平排列布局 | boolean | false | | inline | 行内排列布局 | boolean | false | | onSubmit | 数据验证成功后回调事件 | Function(e:Event) | | @@ -119,7 +118,7 @@ CustomizedForm = Form.create({})(CustomizedForm); | hasFeedback | 配合 validateStatus 属性使用,展示校验状态图标,建议只配合 Input 组件使用 | boolean | false | diff --git a/components/form/style/index.less b/components/form/style/index.less index 3c625a0198..f129995869 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -235,19 +235,6 @@ form { } } -// Form layout -//== Horizontal Form -.@{form-prefix-cls}-horizontal { - .@{form-prefix-cls}-item { - .make-row; - } - - .@{ant-prefix}-radio-inline, - .@{ant-prefix}-checkbox-inline { - vertical-align: baseline; - } -} - // Form layout //== Vertical Form .@{form-prefix-cls}-vertical { @@ -293,16 +280,6 @@ form { } } -.@{form-prefix-cls}-horizontal, -.@{form-prefix-cls}-inline { - label { - > input[type="radio"], - > input[type="checkbox"] { - margin-right: 4px; - } - } -} - // Validation state .has-success, .has-warning,