From d7534812c8199bf1e9faa0279b63e434737d6374 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 16 四月 2021 16:06:27 +0800 Subject: [PATCH] 2021-04-16 --- src/tabviews/custom/components/card/data-card/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/components/card/data-card/index.jsx b/src/tabviews/custom/components/card/data-card/index.jsx index 59935cd..4b857e1 100644 --- a/src/tabviews/custom/components/card/data-card/index.jsx +++ b/src/tabviews/custom/components/card/data-card/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { connect } from 'react-redux' -import { Spin, Empty, notification, Col, Pagination } from 'antd' +import { Spin, Empty, notification, Row, Col, Pagination } from 'antd' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -554,13 +554,13 @@ } <div className={`data-zoom ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}> {switchable ? <div className={'prev-page ' + (pageIndex === 1 ? 'disabled' : '')} onClick={this.prevPage}><div><div><img src={preImg} alt=""/></div></div></div> : null} - {data && data.length > 0 ? <div className="card-row-list"> + {data && data.length > 0 ? <Row className="card-row-list"> {data.map((item, index) => ( <Col className={(activeKey === index ? 'active' : (selectKeys.indexOf(index) > -1 ? 'selected' : '')) + (card.setting.click ? ' pointer' : '')} key={index} span={card.setting.width} offset={!index ? offset : 0} onClick={() => {this.changeCard(index, item)}}> <CardItem card={card} cards={config} data={item}/> </Col> ))} - </div> : null} + </Row> : null} {switchable ? <div className={'prev-page ' + (total <= _total ? 'disabled' : '')} onClick={this.nextPage}><div><div><img src={nextImg} alt=""/></div></div></div> : null} {!data || data.length === 0 ? <Empty description={false}/> : null} </div> -- Gitblit v1.8.0