()
| 137 | } |
| 138 | |
| 139 | renderControls () { |
| 140 | const { data } = this.state; |
| 141 | const { hintType, controls, disabled, layout } = this.props; |
| 142 | |
| 143 | return clone(controls).map((control, i) => { |
| 144 | if (typeof control !== 'object') { |
| 145 | return control; |
| 146 | } else { |
| 147 | control.key = control.key || control.name || hashcode(control); |
| 148 | control.hintType = control.hintType || hintType; |
| 149 | control.readOnly = control.readOnly || disabled; |
| 150 | control.layout = layout; |
| 151 | control.itemBind = this.itemBind; |
| 152 | control.itemUnbind = this.itemUnbind; |
| 153 | control.itemChange = this.itemChange; |
| 154 | control.formData = data; |
| 155 | return <FormControl { ...control } />; |
| 156 | } |
| 157 | }); |
| 158 | } |
| 159 | |
| 160 | renderChildren (children) { |
| 161 | let { data } = this.state; |
no test coverage detected