diff --git a/docs/field/index.en-us.md b/docs/field/index.en-us.md index f4c53239f6..4346c7868f 100644 --- a/docs/field/index.en-us.md +++ b/docs/field/index.en-us.md @@ -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 ``` diff --git a/docs/field/index.md b/docs/field/index.md index fa8f2ff943..65b9a782cd 100644 --- a/docs/field/index.md +++ b/docs/field/index.md @@ -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 ```