| | |
| | | } |
| | | |
| | | let _label = card.label |
| | | let colon = !!card.label |
| | | if (card.tooltip) { |
| | | _label = <span><QuestionCircleOutlined className="mk-form-tip" />{card.label}</span> |
| | | } |
| | | if (card.type === 'brafteditor' && card.hidelabel === 'true') { |
| | | _label = null |
| | | colon = false |
| | | } else if (card.type === 'hint') { |
| | | _label = _label || ' ' |
| | | } |
| | | |
| | | return ( |
| | |
| | | <div ref={node => drag(drop(node))} onDoubleClick={edit}> |
| | | {card.type === 'split' ? formItem : <Form.Item |
| | | className={className} |
| | | colon={!!_label} |
| | | colon={colon} |
| | | label={_label} |
| | | required={card.required === 'true'} |
| | | extra={card.extra || null} |