| | |
| | | } |
| | | } |
| | | |
| | | let extendData = {$$BID: BID, $$BData: BData, $$selectedData: selectedData, $$type: 'extendCard'} |
| | | |
| | | if (data && data[0]) { |
| | | extendData = {...extendData, ...data[0]} |
| | | } |
| | | |
| | | return ( |
| | | <div className="custom-data-card-box" style={config.style}> |
| | | {loading ? |
| | |
| | | {offset ? <Col span={offset} style={{height: '10px'}}> </Col> : null} |
| | | {precards.map((item, index) => ( |
| | | <Col key={'pre' + index} className="extend-card" span={item.setting.width || 6}> |
| | | <CardItem card={item} cards={config} data={{$$BID: BID, $$BData: BData, $$selectedData: selectedData, $$type: 'extendCard'}}/> |
| | | <CardItem card={item} cards={config} data={extendData}/> |
| | | </Col> |
| | | ))} |
| | | {data && data.map((item, index) => { |
| | |
| | | })} |
| | | {nextcards.map((item, index) => ( |
| | | <Col key={'next' + index} className="extend-card" span={item.setting.width || 6}> |
| | | <CardItem card={item} cards={config} data={{$$BID: BID, $$BData: BData, $$selectedData: selectedData, $$type: 'extendCard'}}/> |
| | | <CardItem card={item} cards={config} data={extendData}/> |
| | | </Col> |
| | | ))} |
| | | </Row> |