| | |
| | | } |
| | | |
| | | if (display !== 'picture') { |
| | | if (!options || options.length === 0) { |
| | | return <Col span={width}> |
| | | <div className="card-cell"> |
| | | {fields ? fields.map(col => { |
| | | return <span key={col.key} style={{color: col.color, fontSize: col.fontSize + 'px', height: col.fontSize * 1.5 + 'px', textAlign: col.align}}>{col.field}</span> |
| | | }) : null} |
| | | {!fields || fields.length === 0 ? <span style={{color: '#000000', fontSize: '14px', height: '21px'}}>示例</span> : null} |
| | | </div> |
| | | </Col> |
| | | } |
| | | return options.map(item => { |
| | | return <Col span={width} key={item.key}> |
| | | <div className="card-cell"> |
| | |
| | | </Col> |
| | | }) |
| | | } else { |
| | | if (!options || options.length === 0) { |
| | | return <Col span={width}> |
| | | <div className="card-pic-cell" style={{paddingTop, background: '#91d5ff'}}> |
| | | </div> |
| | | </Col> |
| | | } |
| | | return options.map(item => { |
| | | return <Col span={width} key={item.key}> |
| | | <div className="card-pic-cell" style={{paddingTop, backgroundImage: `url(${item.$url})`}}> |