From f724c64b419f148985c0bd5a1153e3fc7d84b9e6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 12 七月 2023 17:03:27 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/custom/components/card/double-data-card/index.jsx | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/tabviews/custom/components/card/double-data-card/index.jsx b/src/tabviews/custom/components/card/double-data-card/index.jsx index 1fe03f6..08f6dd9 100644 --- a/src/tabviews/custom/components/card/double-data-card/index.jsx +++ b/src/tabviews/custom/components/card/double-data-card/index.jsx @@ -93,6 +93,14 @@ } } + if (item.style.clear === 'left') { + item.wStyle = {clear: 'left'} + } else if (item.style.clear === 'right') { + item.wStyle = {float: 'right'} + } + + delete item.style.clear + if (item.$cardType !== 'extendCard') { _card = item } else if (!_card) { @@ -320,10 +328,6 @@ }) } else { this.loadData(id) - } - - if (position === 'popclose') { // 鎵ц鍚姩寮圭獥鐨勬寜閽墍閫夋嫨鐨勫埛鏂伴」 - btn.$tabId && MKEmitter.emit('refreshPopButton', btn.$tabId) } } @@ -1042,7 +1046,7 @@ <div className={`data-zoom ${config.wrap.wrapClass}`} style={config.wrap.minWidth ? {minWidth: config.wrap.minWidth} : null}> <Row className={'card-row-list '}> {precards.map((item, index) => ( - <Col key={'pre' + index} className="extend-card" span={item.setting.width || 6}> + <Col key={'pre' + index} className="extend-card" style={item.wStyle} span={item.setting.width || 6}> {item.setting.cardRole === 'header' ? <TableHeader card={item} data={extendData} refresh={this.refreshByHeader}> {item.setting.checkAll === 'show' ? <span onClick={this.checkAll} className={'circle-select' + checkAll}></span> : null} </TableHeader> : <CardItem card={item} cards={config} data={extendData}> @@ -1074,7 +1078,7 @@ } return ( - <Col key={index} span={card.setting.width}> + <Col key={index} span={card.setting.width} style={card.wStyle}> <div className={className} style={wrapStyle}> <CardItem card={card} cards={config} data={item} onDoubleClick={() => this.onDoubleClick(index, subClass)} onClick={() => {this.changeCard(index, item, subClass)}}> <span className="circle-select"></span> @@ -1091,7 +1095,7 @@ ) })} {nextcards.map((item, index) => ( - <Col key={'next' + index} className="extend-card" span={item.setting.width || 6}> + <Col key={'next' + index} className="extend-card" style={item.wStyle} span={item.setting.width || 6}> {item.setting.cardRole === 'header' ? <TableHeader card={item} data={extendData} refresh={this.refreshByHeader}> {item.setting.checkAll === 'show' ? <span onClick={this.checkAll} className={'circle-select' + checkAll}></span> : null} </TableHeader> : <CardItem card={item} cards={config} data={extendData}> -- Gitblit v1.8.0