Skip to content

Commit

Permalink
doc: Correct the remove method parameters in document (ant-design#6059)
Browse files Browse the repository at this point in the history
Co-authored-by: Shan Jiang <shan.jiang@shopee.com>
  • Loading branch information
NicoNicoNicoNico and Shan Jiang authored Oct 12, 2022
1 parent 2efda58 commit 00c0455
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/form/src/components/Group/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ return (
* @name custom action button
*
* @example delete button
* actionRender:(field,action)=><a onClick={()=>action.remove(field.key)}>remove</a>
* actionRender:(field,action)=><a onClick={()=>action.remove(field.name)}>remove</a>
* @example can only add up to three new lines
* actionRender:(f,action,_,count)=><a onClick={()=>
* count>2?alert("Up to three lines!"):action.add({id:"xx"})}>delete
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/components/Group/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ return (
* @name 自定义操作按钮
*
* @example 删除按钮
* actionRender:(field,action)=><a onClick={()=>action.remove(field.key)}>删除</a>
* actionRender:(field,action)=><a onClick={()=>action.remove(field.name)}>删除</a>
* @example 最多只能新增三行
* actionRender:(f,action,_,count)=><a onClick={()=>
* count>2?alert("最多三行!"):action.add({id:"xx"})}>删除
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/components/List/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export type ProFromListCommonProps = {
* @name 自定义操作按钮
*
* @example 删除按钮
* actionRender:(field,action)=><a onClick={()=>action.remove(field.key)}>删除</a>
* actionRender:(field,action)=><a onClick={()=>action.remove(field.name)}>删除</a>
* @example 最多只能新增三行
* actionRender:(f,action,_,count)=><a onClick={()=>
* count>2?alert("最多三行!"):action.add({id:"xx"})}>删除
Expand Down

0 comments on commit 00c0455

Please sign in to comment.