File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,11 @@ export default {
434
434
decoratorChildren ( vnodes ) {
435
435
const { FormProps } = this ;
436
436
const getFieldDecorator = FormProps . form . getFieldDecorator ;
437
- vnodes . forEach ( ( vnode , index ) => {
437
+ for ( let i = 0 , len = vnodes . length ; i < len ; i ++ ) {
438
+ const vnode = vnodes [ i ] ;
439
+ if ( getSlotOptions ( vnode ) . __ANT_FORM_ITEM ) {
440
+ break ;
441
+ }
438
442
if ( vnode . children ) {
439
443
vnode . children = this . decoratorChildren ( cloneVNodes ( vnode . children ) ) ;
440
444
} else if ( vnode . componentOptions && vnode . componentOptions . children ) {
@@ -444,9 +448,9 @@ export default {
444
448
}
445
449
const option = this . decoratorOption ( vnode ) ;
446
450
if ( option && option [ 0 ] ) {
447
- vnodes [ index ] = getFieldDecorator ( option [ 0 ] , option [ 1 ] ) ( vnode ) ;
451
+ vnodes [ i ] = getFieldDecorator ( option [ 0 ] , option [ 1 ] ) ( vnode ) ;
448
452
}
449
- } ) ;
453
+ }
450
454
return vnodes ;
451
455
} ,
452
456
} ,
You can’t perform that action at this time.
0 commit comments