| | |
| | | style = { opacity: 0.3} |
| | | } |
| | | let col = ' ant-col ant-col-' + (card.width || 24) |
| | | if (card.type === 'navbar') { |
| | | col = '' |
| | | } else if (card.type === 'login') { |
| | | if (card.type === 'login') { |
| | | let height = '' |
| | | if (card.wrap && card.wrap.height) { |
| | | // scaleview |
| | |
| | | return (<NormalLogin card={card} updateConfig={updateConfig} deletecomponent={delCard}/>) |
| | | } |
| | | } |
| | | return ( |
| | | <div className={`mk-component-card ${col}`} ref={node => drag(drop(node))} style={style}> |
| | | {getCardComponent()} |
| | | </div> |
| | | ) |
| | | |
| | | if (card.type === 'navbar') { |
| | | return getCardComponent() |
| | | } else { |
| | | return ( |
| | | <div className={`mk-component-card ${col}`} ref={node => drag(drop(node))} style={style}> |
| | | {getCardComponent()} |
| | | </div> |
| | | ) |
| | | } |
| | | } |
| | | export default Card |