Skip to content

Commit

Permalink
fix(bee-form): 修改说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liushzh committed Dec 12, 2017
1 parent cb5320a commit 5c1d53e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -129,16 +129,13 @@ export default Demo1;

### 自定义组件说明
- 需要有`onChange`方法,并且参数为改变后的值
- 默认值为`defaultValue`
- 需要有`type='customer'`属性,来标识此组件为自定义组件


### 其它说明
- ~Form`的子元素中如果有`Button`并且此`Button``isSubmit=true`,则可以作为提交按钮
- `Form`的子元素中如果有`Button`并且此`Button``isSubmit=true`,则可以作为提交按钮
- `Form`整体校验时,会触发`FormItem`的校验
- `FormItem`的子元素,`name`必须存在且不能重复
- 组件初期,`FormItem`子元素只能存在一个,可以使用 `FormControl` 或者 `Select`
- 尽量不要再`FormItem`的子元素增加`onBlur``onChange`方法。如必须写,这两个方法的参数为子元素的值
- `FormItem`子元素只能存在一个

#### 开发调试

Expand Down
5 changes: 1 addition & 4 deletions docs/api.md
Expand Up @@ -69,13 +69,10 @@

### 自定义组件说明
- 需要有`onChange`方法,并且参数为改变后的值
- 默认值为`defaultValue`
- 需要有`type='customer'`属性,来标识此组件为自定义组件


### 其它说明
- `Form`的子元素中如果有`Button`并且此`Button``isSubmit=true`,则可以作为提交按钮
- `Form`整体校验时,会触发`FormItem`的校验
- `FormItem`的子元素,`name`必须存在且不能重复
- 组件初期,`FormItem`子元素只能存在一个,可以使用 `FormControl` 或者 `Select`
- 尽量不要再`FormItem`的子元素增加`onBlur``onChange`方法。如必须写,这两个方法的参数为子元素的值
- `FormItem`子元素只能存在一个
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bee-form",
"version": "1.1.1",
"version": "1.1.2",
"description": "Form ui component for react",
"keywords": [
"react",
Expand Down

0 comments on commit 5c1d53e

Please sign in to comment.