Skip to content

Commit

Permalink
docs(Field): add api addArrayValue/deleteArrayValue
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed Dec 16, 2019
1 parent 714c9dc commit 989e13a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/field/index.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ The api interface provided by the object after `new` (eg `myfield.getValues()`)
|getState | Judge check status | Function(name: String)| 'error' 'success' 'loading' '' | '' |
| getNames | Get the key of all components | Function()| ||
|remove | Delete the data of a certain control or a group of controls. After deletion, the validate/value associated with it will be cleared. | Function(name: String/String[])|
| spliceArray | delete data of name like name.{index} | Function(keyMatch: String, index: Number)| | |
| addArrayValue | add data of name like name.{index} | Function(key: String, index: Number, value1, value2, ...)| | |
| deleteArrayValue | delete data of name like name.{index} | Function(key: String, index: Number, howmany)| | |

#### init
```
Expand Down
3 changes: 2 additions & 1 deletion docs/field/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ let myfield = Field.useField([options]); // 要求 react 版本 > 16.8
| getState | 判断校验状态 | Function(name: String)| 'error' 'success' 'loading' '' | '' |
| getNames | 获取所有组件的key | Function()| | |
| remove | 删除某一个或者一组控件的数据,删除后与之相关的validate/value都会被清空 | Function(name: String/String[])| | |
| spliceArray | 删除 name 是数组格式的数据, 并且自动处理其他 name 的数组错位问题 | Function(keyMatch: String, index: Number)| | |
| addArrayValue | 添加 name 是数组格式的数据, 并且自动处理其他 name 的数组错位问题 | Function(key: String, index: Number, value1, value2, ...)| | |
| deleteArrayValue | 删除 name 是数组格式的数据, 并且自动处理其他 name 的数组错位问题 | Function(key: String, index: Number, howmany)| | |

#### init
```
Expand Down

0 comments on commit 989e13a

Please sign in to comment.