| | |
| | | class CardCellComponent extends Component { |
| | | static propTpyes = { |
| | | BID: PropTypes.any, // 上级ID |
| | | seq: PropTypes.any, // 序号 |
| | | cards: PropTypes.object, // 菜单配置信息 |
| | | cardCell: PropTypes.object, |
| | | data: PropTypes.object, |
| | |
| | | } |
| | | |
| | | getContent = (card) => { |
| | | const { data, BID, cards } = this.props |
| | | const { data, BID, cards, seq } = this.props |
| | | |
| | | if (card.eleType === 'text') { |
| | | if (card.eleType === 'sequence') { |
| | | return ( |
| | | <Col key={card.uuid} span={card.width}> |
| | | <div style={card.style}> |
| | | <div className={'ant-mk-text'}>{seq}</div> |
| | | </div> |
| | | </Col> |
| | | ) |
| | | } else if (card.eleType === 'text') { |
| | | let val = '' |
| | | |
| | | if (card.datatype === 'static') { |