| | |
| | | } else if (card.type === 'linkMain') { |
| | | formItem = (<Input style={{marginTop: '4px'}} />) |
| | | } else if (card.type === 'switch') { |
| | | formItem = (<Switch style={{marginTop: '8px'}} checked={card.initval}/>) |
| | | formItem = (<Switch checkedChildren={card.openText || ''} unCheckedChildren={card.closeText || ''} style={{marginTop: '8px'}} checked={card.initval}/>) |
| | | } else if (card.type === 'radio') { |
| | | formItem = card.options && card.options.length > 0 ? (<Radio.Group value={card.initval}> |
| | | {card.options.map(cell => <Radio key={cell.key} value={cell.Value}>{cell.Text}</Radio>)} |