(hints, children)
| 122 | } |
| 123 | |
| 124 | setChildrenHint (hints, children) { |
| 125 | Children.toArray(children).forEach((child) => { |
| 126 | if (child.type && child.type.displayName === 'FormItem') { |
| 127 | let hint = this.getHint(child.props); |
| 128 | if (hint) { |
| 129 | hints.push(hint); |
| 130 | } |
| 131 | } else if (child.children) { |
| 132 | this.setChildrenHint(hints, children); |
| 133 | } |
| 134 | }); |
| 135 | } |
| 136 | |
| 137 | setItems (props) { |
| 138 | let { label, layout, items, children, ...otherProps} = props; |