| | |
| | | }) |
| | | |
| | | let _class = '' |
| | | if (card.type === 'title') { |
| | | if (card.bold === 'true') { |
| | | _class = 'ant-card-meta-title' |
| | | } else { |
| | | _class = 'ant-card-meta-description' |
| | | } |
| | | |
| | | if (card.width) { |
| | | _class += ' ' + card.width |
| | | } |
| | | if (card.align) { |
| | | _class += ' ' + card.align |
| | | } |
| | | |
| | | return ( |
| | | <div ref={node => drag(drop(node))} className={_class} style={{ opacity: opacity}}> |
| | | <div className="content">{card.content}</div> |
| | | <div className="content" title={card.content}>{card.content}</div> |
| | | <Icon className="edit" title="编辑" type="edit" onClick={() => editCard(card)} /> |
| | | <Icon className="edit close" title="删除" type="close" onClick={() => delCard(card)} /> |
| | | </div> |