From 00de865d827da6687928b10f031482628a5144c8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 06 十一月 2020 18:39:16 +0800 Subject: [PATCH] 2020-11-06 --- src/tabviews/custom/components/card/cardcellList/index.jsx | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx index 2c2a41c..a77d793 100644 --- a/src/tabviews/custom/components/card/cardcellList/index.jsx +++ b/src/tabviews/custom/components/card/cardcellList/index.jsx @@ -21,6 +21,7 @@ class CardCellComponent extends Component { static propTpyes = { BID: PropTypes.any, // 涓婄骇ID + seq: PropTypes.any, // 搴忓彿 cards: PropTypes.object, // 鑿滃崟閰嶇疆淇℃伅 cardCell: PropTypes.object, data: PropTypes.object, @@ -89,9 +90,17 @@ } 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') { -- Gitblit v1.8.0