| | |
| | | const { card, side } = this.state |
| | | |
| | | let _style = null |
| | | let options = ['height', 'background', 'border', 'padding', 'margin', 'shadow'] |
| | | let options = ['height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear'] |
| | | if (side === 'front') { |
| | | _style = card.style ? fromJS(card.style).toJS() : {} |
| | | } else if (side === 'back') { |
| | |
| | | tablerole = ' mk-table-header' |
| | | } |
| | | |
| | | let _style_ = null |
| | | |
| | | if (card.style.clear === 'left') { |
| | | _style_ = {clear: 'left'} |
| | | } else if (card.style.clear === 'right') { |
| | | _style_ = {float: 'right'} |
| | | } |
| | | |
| | | return ( |
| | | <Col span={card.setting.width || 6}> |
| | | <Col span={card.setting.width || 6} style={_style_}> |
| | | <div className={'card-item ' + (card.setting.btnControl || '') + checkAll + tablerole} style={_style} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}> |
| | | <span className="circle-select"></span> |
| | | <CardCellComponent cards={cards} cardCell={card} side={side} elements={elements} updateElement={this.updateCard}/> |