| | |
| | | _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin'] |
| | | } else if (type === 'fileupload') { |
| | | _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength'] |
| | | } else if (type === 'text' || type === 'textarea') { |
| | | } else if (type === 'textarea') { |
| | | _options = [..._options, 'fieldlength'] |
| | | } else if (type === 'text') { |
| | | _options = [..._options, 'fieldlength', 'regular'] |
| | | } |
| | | |
| | | if (type === 'select') { |
| | |
| | | _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin'] |
| | | } else if (value === 'fileupload') { |
| | | _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength'] |
| | | } else if (value === 'text' || value === 'textarea') { |
| | | } else if (value === 'textarea') { |
| | | _options = [..._options, 'fieldlength'] |
| | | } else if (value === 'text') { |
| | | _options = [..._options, 'fieldlength', 'regular'] |
| | | } |
| | | |
| | | if (value === 'select') { |
| | |
| | | } |
| | | fields.push( |
| | | <Col span={12} key={index}> |
| | | <Form.Item label={item.label}> |
| | | <Form.Item label={item.tooltip ? |
| | | <Tooltip placement="topLeft" title={item.tooltip}> |
| | | <Icon type="question-circle" /> |
| | | {item.label} |
| | | </Tooltip> : item.label |
| | | }> |
| | | {getFieldDecorator(item.key, { |
| | | initialValue: item.initVal || '', |
| | | rules: [ |