({ fieldComponent: FieldComponent, group: FieldGroup, ...props })
| 4 | import { C } from 'xadmin-ui' |
| 5 | |
| 6 | const FieldWrapComponent = ({ fieldComponent: FieldComponent, group: FieldGroup, ...props }) => { |
| 7 | return FieldComponent.withGroup ? ( |
| 8 | <FieldComponent {...props} group={FieldGroup} /> |
| 9 | ) : ( |
| 10 | <FieldGroup {...props} > |
| 11 | <FieldComponent {...props} group={FieldGroup} /> |
| 12 | </FieldGroup> |
| 13 | ) |
| 14 | } |
| 15 | |
| 16 | const defaultUIRender = (fields, option) => { |
| 17 | return fields.map(field => fieldBuilder(field, option)) |
nothing calls this directly
no outgoing calls
no test coverage detected