@@ -21,11 +21,11 @@ const List = createWithIntl({moduleName: "FormInfo", importMessages})(({
2121 ...props
2222 } ) => {
2323 const { formatMessage} = useIntl ( { moduleName : "FormInfo" } ) ;
24- return < SubList { ...props } listRender = { ( { list, title, id, allowRemove, onRemove} ) => {
24+ return < SubList { ...props } listRender = { ( { list, title, id, allowRemove, onRemove, ... others } ) => {
2525 return < div key = { id } className = { classnames ( style [ "list-item" ] , {
2626 [ style [ "is-important" ] ] : important ,
2727 } ) } >
28- < FormInfo title = { title } list = { list } className = { style [ "list-item-part" ] } gap = { 16 }
28+ < FormInfo { ... others } title = { title } list = { list } className = { style [ "list-item-part" ] } gap = { 16 }
2929 extra = { < FormattedMessage id = "delText" moduleName = "FormInfo" >
3030 { ( text ) => allowRemove ? ( < ConfirmButton
3131 danger
@@ -47,7 +47,11 @@ const List = createWithIntl({moduleName: "FormInfo", importMessages})(({
4747 </ div >
4848 } } > { ( children , { allowAdd, onAdd} ) => {
4949 return cloneElement ( outer , {
50- title, addText, className : classnames ( className , style [ "list-part" ] ) , allowAdd, add : ( ) => onAdd ( { isUnshift :false } ) ,
50+ title,
51+ addText,
52+ className : classnames ( className , style [ "list-part" ] ) ,
53+ allowAdd,
54+ add : ( ) => onAdd ( { isUnshift : false } ) ,
5155 } , renderChildren ( children ) ) ;
5256 } } </ SubList >
5357} ) ;
0 commit comments